CN106228191A - A kind of control text overlength detection device and method - Google Patents

A kind of control text overlength detection device and method Download PDF

Info

Publication number
CN106228191A
CN106228191A CN201610606464.6A CN201610606464A CN106228191A CN 106228191 A CN106228191 A CN 106228191A CN 201610606464 A CN201610606464 A CN 201610606464A CN 106228191 A CN106228191 A CN 106228191A
Authority
CN
China
Prior art keywords
text
detected
control
overlength
display
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
CN201610606464.6A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610606464.6A priority Critical patent/CN106228191A/en
Publication of CN106228191A publication Critical patent/CN106228191A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a kind of control text overlength detection device and method, by obtaining the control to be detected text under current language form to be detected, and determine, according to the text display mode of control to be detected, the preferable viewing area that the text is required under currently displaying dimension, then the preferable viewing area determined is mated with the actual available display area provided, when mating unsuccessful, it is determined that text overlength under currently displaying dimension of the current language form to be detected of control to be detected.It provides the benefit that: directly compare according to the objective size of " preferable viewing area " with " available display area ", thus obtain testing result, need not be carried out according to the display picture of terminal by human eye the judgement of subjectivity, therefore avoid the problem that Detection accuracy that human eye subjectivity brings is low.On the other hand, it is not necessary to human eye carries out judging to also reduce the consumption to human resources, reduces the burden of relevant staff, optimizes resource distribution.

Description

A kind of control text overlength detection device and method
Technical field
The present invention relates to communication technical field, more particularly, it relates to a kind of control text overlength detection device and method.
Background technology
Generally, developing a application program is not to carry out, so working as application program for particular terminal, specific user After exploitation completes, may dissimilar, different system environment, different language environment terminal on run, such as, from fortune For the angle of row equipment, application program may be at panel computer, smart mobile phone or PDA is (Personal Digital Assistant, palm PC) upper use;For the language environment used, the display interface of an application program Need to support to show with Chinese, German, English, French isotype, in order to for using the user of different language to provide service; And for standing in the angle of system environments, different users the font of application program Chinese version, font size are had different preferences with Demand, such as female user, it may be more desirable to content of text seems delicate and pretty or more lovely, but gentle relative to meaningful show For about, it is powerful effectively that male user may more prefer to font;Similarly, due to the problem of vision, older user May want to the text font size on application program can be slightly larger, is so easy to it and reads display on each interface of application program Word message.
In the exploitation early stage of application program, being limited to the professional of language translation, application developer the most only can be in journey Adding values/strings.xml string resource table by default in sequence resource folder, this string resource list is usual It is the form of standard English, alternatively, can additionally add the language that application developer is familiar with, the mother tongue of such as its location Under string resource table (string resource table as corresponding in simplified form of Chinese Character is values-zh-rCN/strings.xml) conduct Later stage translation reference.In development late stage, can be by the translator of specialty by the Chinese text in each control in application program Holding translates under other language, then forms the string resource table of corresponding language and adds to application program, e.g., In Android application program, German correspondence string resource table is " values-de/strings.xml ".
The when of it is easily understood that developer develops, carry out on the basis of a kind of language, exploit person The size of the control of member's design should be mated with the size text under this language, but translator is by the text under this language After translating to other language, the length of text can occur huge change.After those are translated text size no change or Person's length changes, but for the situation that simply text shortens, substantially without there is big problem, but after translating for those For the situation that text size is elongated, text is likely to show completely, thus text can be caused cannot to provide at control In region normally, intactly show, Consumer's Experience is had influence on.
In the prior art, in order to solve the problems referred to above, can be by string resource corresponding for different language in development late stage Table adds to application program, makes the text in control be able to different language type and shows;Then sentenced by naked eyes Whether the text in disconnected control is in different language type, can completely show under different font size size, different fonts patterns.But This very inconvenient by the way of human eye is investigated: on the one hand, the workload of investigation is relatively big, and the requirement to human resources is compared High;On the other hand, the investigation speed of human eye investigation is relatively slow, and the accuracy rate investigated also has the biggest with the subjectivity of staff Relation.
To sum up, proposition one detection application program is needed now badly at dissimilar, different system environment, different language environment Terminal on the scheme of text whether overlength when running.
Summary of the invention
The technical problem to be solved in the present invention is: solve to detect application program in difference by human eye in prior art Type, different system environment, different language environment terminal on when running, the scheme of text corresponding to control whether overlength is to people The technical problem that power resource cost is big, Detection accuracy is low, for this technical problem, it is provided that a kind of control text overlength detection dress Put and method.
For solving above-mentioned technical problem, the present invention provides a kind of control text overlength detection method, including:
Obtain the control to be detected text under current language form to be detected;
Attribute information according to control to be detected determines the preferable display that described text is required under currently displaying dimension Region, described attribute information at least includes the text display mode of described control to be detected;
The available display area of described preferable viewing area offer actual with described control to be detected is mated;
When mating unsuccessful, it is determined that the text of the current language form to be detected of described control to be detected is in currently displaying dimension Lower overlength.
Further, the available display area of described preferable viewing area offer actual with described control to be detected is carried out Coupling includes:
The most described preferable viewing area and the size of described available display area;
When described preferable viewing area is less than or equal to described available display area, then judge that the match is successful, otherwise judgement Join unsuccessful.
Further, it is determined that the text of the current language form to be detected of described control to be detected is super under currently displaying dimension Also include after length: the overlength for described text proposes alarm.
Further, the overlength proposition alarm for described text includes:
The attribute information of the described text of overlength and the display dimension of correspondence and described control to be detected is added to accusing In alert form;
To application developer and/or text translator, described alarm form is shown;
Or,
The described text of prominent overlength and the display dimension of correspondence thereof and described control to be detected in testing result table Attribute information, described testing result table is for recording the text of each language form of each control to be detected under each display dimension Testing result;
To application developer and/or text translator, described testing result table is shown.
Further, obtain the control to be detected text under current language form to be detected to include:
The string resource table of correspondence is got according to current language form to be detected;
The resource identification number utilizing described control to be detected finds the text of correspondence from described string resource table.
Further, according to the attribute information of control to be detected determine described text under currently displaying dimension required Preferable viewing area includes:
Text display mode according to described control to be detected and the ideal of the currently displaying dimension described content of text of calculating Viewing area, described display dimension includes that font size that the equipment independent pixel of display device, display device use, display device make Font at least one.
Further, the available display area of described preferable viewing area offer actual with described control to be detected is carried out Also include before coupling:
Obtain the attribute information of described control to be detected, described attribute information also include described control to be detected size, The marginal value of described control to be detected;
It is calculated described control to be detected under described text display mode actual according to described size and described marginal value The available display area provided.
Present invention also offers a kind of control text overlength detection device, described control text overlength detection device includes:
Acquisition module, for obtaining the control to be detected text under current language form to be detected;
Determine module, needed for determining that described text is under currently displaying dimension according to the attribute information of control to be detected The preferable viewing area wanted, described attribute information at least includes the text display mode of described control to be detected;
Matching module, for the available display area by described preferable viewing area with the actual offer of described control to be detected Mate;
Determination module, when being used for mating unsuccessful, it is determined that the text of the current language form to be detected of described control to be detected Overlength under currently displaying dimension.
Further, described acquisition module for getting the string resource of correspondence according to current language form to be detected Table, and utilize the resource identification number of described control to be detected to find the text of correspondence from described string resource table.
Further, described determine that module is for the text display mode according to described control to be detected and currently displaying dimension Degree calculates the preferable viewing area of described content of text, and described display dimension includes the equipment independent pixel of display device, display At least one in the font that the font size of equipment use, display device use.
The embodiment of the present invention also provides for a kind of computer-readable storage medium, and in described computer-readable storage medium, storage has computer Executable instruction, described computer executable instructions is for performing the control text overlength detection method of aforesaid any one.
Beneficial effect:
Control text overlength detection device, method and the computer-readable storage medium that the embodiment of the present invention provides, by obtaining The control to be detected text under current language form to be detected, and determine this according to the text display mode of control to be detected The preferable viewing area that text is required under currently displaying dimension, then by the preferable viewing area determined and observing and controlling to be checked The available display area of the actual offer of part is mated, when mating unsuccessful, it is determined that the current language to be detected of control to be detected The text of type is overlength under currently displaying dimension.This detection mode is directly according to " preferable viewing area " and " available display Region " the objective size in the two region compares, thus obtains testing result, it is not necessary to by human eye according to the display of terminal Picture carries out the judgement of subjectivity, therefore avoids the problem that Detection accuracy that human eye subjectivity brings is low.On the other hand, it is not required to Want human eye to carry out judging to also reduce the consumption to human resources, reduce the burden of relevant staff, optimize resource and join Put.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
The control text overlength detection method one flow chart that Fig. 1 provides for the embodiment of the present invention one;
A kind of structural representation of the control to be detected that Fig. 2 provides for the embodiment of the present invention one;
The control text overlength detection method one flow chart that Fig. 3 provides for the embodiment of the present invention two;
A kind of structural representation of the control text overlength detection device that Fig. 4 provides for the embodiment of the present invention three;
The another kind of structural representation of the control text overlength detection device that Fig. 5 provides for the embodiment of the present invention three;
Fig. 6 is the hardware architecture diagram realizing each one optional mobile terminal of embodiment of the present invention.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Embodiment one:
In the presence of solving prior art is investigated by human eye and detecting the scheme of control text whether overlength Human resources expends greatly, investigates accuracy rate problem low, inefficient, and the present embodiment provides a kind of control text overlength detection side Method, refers to Fig. 1:
S102, obtain the control to be detected text under current language form to be detected.
The text that one control to be detected is corresponding can be expressed by different language form, but at different languages Go out to be meant that certain expressed by under speech type, such as, in order to express the implication of " beginning ", under Chinese, can make With " beginning ", " start " or " begin " can be used under English mode, and in the middle of Korean, then can useUnder Russian pattern, corresponding content of text should be " н а ч а т ь ".
In the middle of the present embodiment, illustrate as a example by the exploitation basis of application program using Chinese.At application program Development late stage, the work completed required for translator is exactly by under Chinese vocabulary translation to other language.Such as, if should In addition to Chinese user, Korea S user is also included, then translator just should be by this application program with the user of program The Chinese text that each control is corresponding translates into Korean text, after translation, by developer by each Korean text with control as base Plinth adds to the Korean characters string resource table of this application program.The corresponding different string resource table of different language, but In the middle of different string resource tables, same control has identical resource identification number.So, judging whether text surpasses Time long, the text after translation can be obtained according to the resource identification number of control.
Giving an example, under the application program of Chinese edition, the text on one of them control is " beginning ", now, right Text after the translation of this control detects, it is judged that under other language environments, the text of this control can normally show.Will This control, as control to be detected, " starts " according to content of text and the Chinese edition string resource table of application program is permissible Determine the resource identification number that this control is corresponding, for example, " A-11 ".If being currently needed for detecting under German situation, observing and controlling to be checked Can the content of text of part normally show, then after getting " A-11 ", can look for according to current language form to be detected To corresponding string resource table, such as values-de/strings.xml, the resource identification number got before then utilizing " A-11 " finds the text under current language German to be detected from values-de/strings.xml “beginnen”。
S104, attribute information according to control to be detected determine the preferable display that text is required under currently displaying dimension Region.
The word that display dimension generally comprises the equipment independent pixel of application program place display device, display device uses Number, at least one or multiple combination in the font that uses of display device.
Equipment independent pixel (DIP, device-independent pixel) be independently of equipment for weighing in logic The unit of amount pixel, it is closely related with " picture element density ".So, what is first explained is picture element density: assume have one Portion's mobile phone, the physical size of its screen is 1.5 inches × 2 inches, and screen resolution is 240 × 320, then can calculate at this On the screen of portion's mobile phone, the quantity of the pixel that per inch comprises is 240/1.5=160dpi (laterally) or 320/2=160dpi (longitudinally), 160dpi is exactly the picture element density of this mobile phone, and unit dpi of picture element density is the abbreviation of Dots Per Inch, i.e. Per inch pixel quantity.This horizontal and vertical value is all identical, and reason is that major part mobile phone screen uses foursquare Pixel.
Different mobile phone/flat boards is likely to be of different picture element densities, such as, be all 4 cun of mobile phones, have 480 × 320 to differentiate Rate also have 800 × 480 resolution, the former picture element density just ratio is relatively low.It is close that android system defines four kinds of pixels Degree: low (120dpi), in (160dpi), high (240dpi) and superelevation (320dpi), the coefficient of dp to the px of they correspondences is distinguished Being 0.75,1,1.5 and 2, it is exactly pixel count that this coefficient is multiplied by dp length.Such as there is one a length of " 100dp " on interface Picture, then its actual displayed on the mobile phone of 240dpi is 80 × 1.5=120px, actual displayed on the mobile phone of 320dpi It is 80 × 2=160px.
Calculating preferable viewing area when, it is also possible to consider the text display mode of control to be detected, example further As, the text in control to be detected is that single file shows pattern, or multirow display pattern, is that horse race lamp shows pattern, or solid Surely show that pattern, the size of control to be detected can be fixing, it is also possible to carry out self adaptation along with the change of size text Change.The text display mode of control to be detected derives from the attribute information of control to be detected.
Assuming that determine that the text in control to be detected belongs to fixing display pattern according to the attribute information of control to be detected, only Can be shown by single file, and the size of control can not carry out self-adaptative adjustment along with the size of text;Current display dimension Degree can calculate the size of the viewing area shared by each character, then determines according to the quantity of character in cypher text Go out under current language form to be detected, the text of control to be detected normally show required for the preferable viewing area that takies.
S106, the available display area of preferable viewing area offer actual with control to be detected is mated.
After calculating the preferable viewing area taken required for text shows, this ideal viewing area can be treated with this The available display area of the detection actual offer of control is mated.The real process of coupling be exactly preferable viewing area size with The size of available display area compares, in the present embodiment, area size all referring to region area.When preferable viewing area When territory is less than or equal to available display area, illustrate that the available display area that control to be detected provides can normally show the literary composition of correspondence This, therefore, it is determined that the match is successful;Otherwise, when preferable viewing area is more than available display area, illustrate that control to be detected is actual The viewing area required is more than the viewing area provided for it, and therefore, corresponding cypher text cannot normally show, it is determined that Mate unsuccessful.
It should be appreciated that the attribute information of control to be detected also should be obtained before mating, attribute here Information also includes the size of control to be detected, the marginal value of control to be detected.Then according to the size got and marginal value meter Calculation obtains under text display pattern, the available display area of the actual offer of control to be detected.
In the present embodiment, marginal value includes Margin (outer back gauge) marginal value and Padding (inset spacing) marginal value, Margin writes a Chinese character in simplified form attribute and arranges all current in a statement or specify distance attribute outside element, and this attribute can have 1~4 Individual value.Space between Padding attribute definition element frame and element content.Padding writes a Chinese character in simplified form attribute in a statement Arranging all inset spacing attributes, arrange all current or specify element inset spacing attribute, this attribute equally has 1~4 Value.
As in figure 2 it is shown, in control 20 to be detected, the visible region of user is 201, the Margin marginal value of control to be detected It is 2, the constituted region of Margin marginal value 202;The Padding marginal value of control to be detected is 3, and Padding marginal value is constituted Region 203.On technology realizes, whole the constituted region of Margin marginal value 202 broadly falls into control 20 to be detected, therefore, treats The size of detection control 20 calculates according to Margin marginal value and gets, and the region 203 that Padding marginal value is constituted belongs to The actual region that can show text, namely the available display area of this control 20 to be detected.Obtaining control 20 to be detected After length and width size and its marginal value, the size of its viewing area can be calculated.
S108, when mating unsuccessful, it is determined that the text of the current language form to be detected of control to be detected is in currently displaying dimension The lower overlength of degree.
In time mating unsuccessful, it is possible to determine that the text of the current language form to be detected of control to be detected is current aobvious Show overlength under dimension.But this be not illustrate this cypher text the most all can overlength because text overlength is also with aobvious Show that dimension has the biggest relation, such as, in the case of the font size of system is less, the text of overlength may not exist originally The situation of overlength.
Obtain the text of a control to be detected after a kind of language form, a kind of testing result shown under dimension, Type and/or the display dimension that also should change language to be detected re-start detection, in order to detect that this control to be detected exists Text under different language type, different display dimension displays whether to exist the situation of text overlength.During actually detected, Can first select a display dimension, then obtain under this display dimension, after the display situation of the cypher text of each language form, It is switched to a new display dimension duplicate detection job again.Can also first select a kind of language form, and detect this class of languages The cypher text under type display situation under different display dimension such as different font size, fonts etc., switches language form the most again and obtains To new cypher text, and carry out the detection work of text whether overlength in the same fashion.Due to different language type Cypher text when detecting, need first to get from string resource table according to the resource identification number of control to be detected Corresponding cypher text, so, obtain in order to avoid being repeated several times the when that the cypher text of a kind of language form being detected Taking the process of cypher text, the present embodiment can detect in the way of using described in the second way.
Judge that the text of the current language form to be detected of control to be detected after overlength, can propose under currently displaying dimension Alarm.The object of alarm can be application developer and/or text translator, after the program personnel of opening receive alarm, The size of the attribute of control to be detected, such as its length and width or its text display mode can be adjusted, when text is translated After personnel receive alarm, cypher text can be simplified, to reduce the number of character to be shown.
The opportunity proposing alarm can be when determining the text overlength of the current language form to be detected of control to be detected, also It can be the detection under various different display dimensions of the cypher text under obtaining the various language form of control to be detected Alarm is reintroduced after result, same, it is also possible to the testing result at an all of control to be detected of application program is all obtained Just alert after getting.
The control text overlength detection method detection efficiency proposed due to the present embodiment is high, and detection speed is fast, therefore, it can Alarm is sent again after the testing result of all controls to be detected of the program of being applied.In the present embodiment, the mode of alarm have with Lower two kinds:
The first is to add the attribute information of the text of overlength and the display dimension of correspondence and control to be detected to accusing In alert form, then this form being shown to application developer or text translator, in alarm form, record is all Be testing result be text and the information of association thereof of overlength.
The second is the text of prominent overlength in testing result table and the display dimension of correspondence thereof and control to be detected Attribute information, and to application developer and/or text translator, described testing result table is shown, testing result table is used for remembering Record the text of each language form of each control to be detected testing result under each display dimension, the most not only include testing result For text and the related information thereof of overlength, also include that testing result is normal text and related information thereof, pass mentioned here Connection information includes display dimension and the attribute information of control to be detected that text is corresponding.
It should be appreciated that, in the middle of an application program, the number of the control to be detected comprising text may be the most, Therefore, in order to application developer is after receiving alarm, it is possible to location is the literary composition of which control to be detected rapidly actually This display is abnormal, it is also possible to be also added to by the host interface of each control to be detected in testing result table or alarm form.
The mode highlighted by be highlighted the information needing alarm, or can be carried out overstriking and show, The most underlined mode is carried out.
The present embodiment provide control text overlength detection method, by control to be detected under different language type Text normally shows that the available display area of required preferable viewing area offer actual with control to be detected is mated, when When preferable viewing area is less than or equal to available display area, decide that the text of the current language form to be detected of control to be detected exists Under currently displaying dimension normally, its overlength is otherwise judged.By this detection mode, the consumption to human resources can be reduced, Reduce the burden of relevant staff, optimize allocation of resources.
It addition, after testing result shows the control to be detected text overlength under different language type, can pass through The mode highlighted proposes alarm to application developer and/or text translator, makes application developer according to alarm The attribute information of control to be detected is adjusted, allows text translator according to warning information, cypher text be simplified, So that the text in control to be detected normally shows, user is allowed can normally to get the information provided in control to be detected, Ensure Consumer's Experience.
Embodiment two:
The control text overlength detection method that the present invention is provided by the present embodiment with a concrete example illustrates, please In conjunction with Fig. 3:
S301, traversal obtain the attribute information of each control to be detected in destination application.
Resolve the control in each interface of destination application, (will be inherited from as in Android containing text display class TextView's) control list queue to be detected in, from the .Xml file of program code and application program, obtain team to be detected The attribute information of each control to be detected in row, in the present embodiment, attribute information includes: the ID of control to be detected, class name, literary composition Host interface belonging to this font size, length and width size, control to be detected, and the size of control to be detected whether self adaptation, to be checked Whether the text of observing and controlling part displays whether it is single line mode, is horse race lamp pattern etc..
S302, obtain cypher text according to the ID of control to be detected.
Determine according to detection demand and be currently needed for the text of which kind of language form is detected, and get corresponding text Under string resource table.Then the control to be detected character string money under this language form is inquired about according to the ID of control to be detected Source list, it is thus achieved that cypher text.
S303, calculate the available display area of the actual offer of control to be detected.
Length and width size according to control to be detected and the marginal value such as Margin, Padding, calculate current control to be detected It is actually available to show available display area Rect-real of text.
The preferable viewing area that S304, calculating cypher text are required under currently displaying dimension.
According to current display dimension (including the display font size of current text, font, equipment independent pixel etc.) and to be checked The attribute information of observing and controlling part (include the text font size (distinguishing dp/sp) of control to be detected, wide high size, size whether self adaptation, Whether it is single line mode, whether is horse race lamp pattern etc.), in conjunction with parameters such as character-serial first trip tail spacing, character pitches, calculate The cypher text of current control to be detected completely shows required preferable viewing area Rect-ideal.
S305, more satisfactory viewing area and the size of available display area.
If Rect-ideal > Rect-real, then record the display dimension of current cypher text and correspondence thereof, observing and controlling to be checked The attribute information of part, the content of cypher text and the superscale etc. of text size.
S306, to application developer and/or text translator propose alarm.
When in control queue to be detected, each control to be detected cypher text under each language form was carried out After detection, with form output detections results such as forms, in the way of being highlighted, highlight overlength in the table simultaneously The display dimension of cypher text and correspondence thereof, the attribute information of control to be detected, the content of cypher text and text size Superscale etc..
Especially, if the attribute information of control to be detected includes that control size self adaptation, control text are with multirow mould Formula carries out showing, control text show with horse race lamp pattern at least one time, the cypher text overlength shadow to vision Ring less, the form output early warning of with another comparing mitigation optional to this part supertext, represent this part text Translation can postpone amendment.
In testing result, the control text overlength detection method that the present embodiment provides, shows that control to be detected is at different language After text overlength under type, can be with form output detections results such as forms, simultaneously in the table with the side being highlighted Formula highlight the cypher text of overlength and the display dimension of correspondence thereof, the attribute information of control to be detected, cypher text interior Hold and the superscale etc. of text size, facilitate follow-up text translator to carry out translation and simplify or application developer's adjustment The attribute of corresponding control to be detected, thus ensure the overall display effect of application program.
Embodiment three:
The present embodiment provides a kind of control text overlength detection device, and as shown in Figure 4, embodiment one and embodiment two provide Control text overlength detection method can the present embodiment provide control text overlength detection device 40 on implement:
Control text overlength detection device 40 includes acquisition module 402, determines module 404, matching module 406 and judge Module 408.Acquisition module 402 is for obtaining the control to be detected text under current language form to be detected;Determine module 404 For determining, according to the attribute information of control to be detected, the preferable viewing area that text is required under currently displaying dimension;Coupling Module 406 is for mating the available display area of preferable viewing area offer actual with control to be detected;And judge mould Block 408 is then for when matching module 406 mates unsuccessful, it is determined that the text of the current language form to be detected of control to be detected exists Overlength under currently displaying dimension.
The text that one control to be detected is corresponding can be expressed by different language form, but at different languages Go out to be meant that certain expressed by under speech type, such as, in order to express the implication of " beginning ", under Chinese, can make With " beginning ", " start " or " begin " can be used under English mode, and in the middle of Korean, then can useUnder Russian pattern, corresponding content of text should be " н а ч а т ь ".
In the middle of the present embodiment, illustrate as a example by the exploitation basis of application program using Chinese.At application program Development late stage, the work completed required for translator is exactly by under Chinese vocabulary translation to other language.Such as, if should In addition to Chinese user, Korea S user is also included, then translator just should be by this application program with the user of program The Chinese text that each control is corresponding translates into Korean text, after translation, by developer by each Korean text with control as base Plinth adds to the Korean characters string resource table of this application program.The corresponding different string resource table of different language, but In the middle of different string resource tables, same control has identical resource identification number.So, control text overlength detects Device 40, when judging text whether overlength, can obtain the text after translation according to the resource identification number of control.
Giving an example, under the application program of Chinese edition, the text on one of them control is " beginning ", now, control Text after this control to be translated by text overlength detection device 40 detects, it is judged that under other language environments, this control The text of part can normally show.First acquisition module 402 using this control as control to be detected, according to content of text " start " the Chinese edition string resource table with application program and can determine that the resource identification number that this control is corresponding, for example, “A-11”.If being currently needed for detecting under German situation, can the content of text of control to be detected normally show, then obtains mould Block 402, after getting " A-11 ", can find the string resource table of correspondence according to current language form to be detected, as Values-de/strings.xml, the resource identification number " A-11 " got before then utilizing is from values-de/ Strings.xml finds the text " beginnen " under current language German to be detected.
Determine that module 404 determines, according to the attribute information of control to be detected, the reason that text is required under currently displaying dimension Think viewing area.Display dimension generally comprises the equipment independent pixel of application program place display device, display device uses At least one in the font that font size, display device use or multiple combination.
Equipment independent pixel (DIP, device-independent pixel) be independently of equipment for weighing in logic The unit of amount pixel, it is closely related with " picture element density ".So, what is first explained is picture element density: assume have one Portion's mobile phone, the physical size of its screen is 1.5 inches × 2 inches, and screen resolution is 240 × 320, then can calculate at this On the screen of portion's mobile phone, the quantity of the pixel that per inch comprises is 240/1.5=160dpi (laterally) or 320/2=160dpi (longitudinally), 160dpi is exactly the picture element density of this mobile phone, and unit dpi of picture element density is the abbreviation of Dots Per Inch, i.e. Per inch pixel quantity.This horizontal and vertical value is all identical, and reason is that major part mobile phone screen uses foursquare Pixel.
Different mobile phone/flat boards is likely to be of different picture element densities, such as, be all 4 cun of mobile phones, have 480 × 320 to differentiate Rate also have 800 × 480 resolution, the former picture element density just ratio is relatively low.It is close that android system defines four kinds of pixels Degree: low (120dpi), in (160dpi), high (240dpi) and superelevation (320dpi), the coefficient of dp to the px of they correspondences is distinguished Being 0.75,1,1.5 and 2, it is exactly pixel count that this coefficient is multiplied by dp length.Such as there is one a length of " 100dp " on interface Picture, then its actual displayed on the mobile phone of 240dpi is 80 × 1.5=120px, actual displayed on the mobile phone of 320dpi It is 80 × 2=160px.
Determining that module 404 calculates preferable viewing area when, it is also possible to consider the text of control to be detected further Display pattern, such as, the text in control to be detected is that single file shows pattern, or multirow display pattern, is that horse race lamp shows Pattern, or fixing display pattern, the size of control to be detected can be fixing, it is also possible to along with size text change and Carry out adaptive change.The text display mode of control to be detected derives from the attribute information of control to be detected.
Assuming that determine according to the attribute information of control to be detected, module 404 determines that the text in control to be detected belongs to fixing Display pattern, can only be shown by single file, and the size of control can not carry out self-adaptative adjustment along with the size of text;When Front display dimension can calculate the size of the viewing area shared by each character, it is then determined that module 404 is according to turning over Translation in this quantity of character determine under current language form to be detected, the text of control to be detected normally show required for account for Preferable viewing area.
The available display area of preferable viewing area offer actual with control to be detected is mated by matching module 406. When determining that module 404 determines text required for showing behind the preferable viewing area that takies, matching module 406 can be by this ideal The available display area of viewing area offer actual with this control to be detected is mated.The actual mistake of matching module 406 coupling Journey is exactly that the preferable size of viewing area compares with the size of available display area, and in the present embodiment, area size is all The region area referred to.When matching module 406 compares preferable viewing area less than or equal to available display area, illustrate to be checked The available display area that observing and controlling part provides can normally show the text of correspondence, therefore, it is determined that the match is successful;Otherwise, show when ideal Show when region is more than available display area, illustrate that the viewing area of control actual requirement to be detected is more than the viewing area provided for it Territory, therefore, corresponding cypher text cannot normally show, it is determined that mate unsuccessful.
It should be appreciated that before matching module 406 mates, determine that module 404 also should obtain observing and controlling to be checked The attribute information of part, attribute information here also includes the size of control to be detected, the marginal value of control to be detected.It is then determined that Module 404 is calculated under text display pattern according to the size got and marginal value, the actual offer of control to be detected Available display area.
In the present embodiment, marginal value includes Margin (outer back gauge) marginal value and Padding (inset spacing) marginal value, Margin writes a Chinese character in simplified form attribute and arranges all current in a statement or specify distance attribute outside element, and this attribute can have 1~4 Individual value.Space between Padding attribute definition element frame and element content.Padding writes a Chinese character in simplified form attribute in a statement Arranging all inset spacing attributes, arrange all current or specify element inset spacing attribute, this attribute equally has 1~4 Value.
When matching module 406 mates unsuccessful time, it is determined that module 408 can be determined that control to be detected is the most to be detected The text of language form is overlength under currently displaying dimension.But this is not to illustrate that this cypher text the most all can surpass Long, because text overlength also has the biggest relation with display dimension, such as in the case of the font size of system is less, overlength originally Text may there is not the situation of overlength.
Obtain the text of a control to be detected after a kind of language form, a kind of testing result shown under dimension, Control text overlength detection device 40 also should change the type of language to be detected and/or show that dimension re-starts detection, with Just detect that this control to be detected text under different language type, different display dimension displays whether to there is text overlength Situation.During actually detected, can first select a display dimension, then obtain under this display dimension, each language form Cypher text display situation after, then be switched to the work of new display dimension duplicate detection.Can also first select one Language form, and detect the display feelings under different display dimension such as different font size, fonts etc. of the cypher text under this language form Condition, switches language form the most again and obtains new cypher text, and carries out the detection of text whether overlength in the same fashion Work.Time owing to the cypher text of different language type being detected, need the resource identification first according to control to be detected From string resource table, number get the cypher text of correspondence, so, in order to avoid the cypher text to a kind of language form The process that obtain cypher text is repeated several times the when of detection, and the present embodiment can be in the way of using described in the second way Detect.
In the middle of the another kind of control text overlength detection device 40 that the present embodiment proposes, as it is shown in figure 5, it includes obtaining Module 402, determine beyond module 404, matching module 406 and determination module 408, also include alarm module 410.
Determination module 408 judges text overlength under currently displaying dimension of the current language form to be detected of control to be detected After, alarm module 410 can propose alarm.The alarm object of alarm module 410 can be application developer and/or text turns over Translate personnel, after the program personnel of opening receive alarm, can to the size of the attribute of control to be detected, such as its length and width or Its text display mode is adjusted, and after text translator receives alarm, can simplify cypher text, to subtract Wait a little while,please and show the number of character.
The opportunity that alarm module 410 proposes to alert can be at the literary composition determining the current language form to be detected of control to be detected During this overlength, it is also possible to be that the cypher text under obtaining the various language form of control to be detected is in various different display dimensions Alarm is reintroduced after testing result under Du, same, it is also possible in the detection of an all of control to be detected of application program Result is all acquired and the most just alerts.
The control text overlength detection method detection efficiency proposed due to the present embodiment is high, and detection speed is fast, therefore, and alarm Module 410 can send alarm after the testing result of all controls to be detected of the program of being applied again.In the present embodiment, alarm The mode of module 410 alarm has a following two:
The first, the attribute of the text of overlength and the display dimension of correspondence and control to be detected is believed by alarm module 410 Breath adds to alarm form, and then this form is shown to application developer or text translator, alerts form Middle record be all testing result be text and the information of association thereof of overlength.
The second, alarm module 410 highlights the text of overlength and the display dimension of correspondence thereof in testing result table and treats The attribute information of detection control, and to application developer and/or text translator, testing result table, testing result table are shown For recording the text of each language form of each control to be detected testing result under each display dimension, the most not only include inspection Survey text and related information thereof that result is overlength, also include that testing result is normal text and related information thereof, institute here The related information said includes display dimension and the attribute information of control to be detected that text is corresponding.
It should be appreciated that, in the middle of an application program, the number of the control to be detected comprising text may be the most, Therefore, in order to application developer is after receiving alarm, it is possible to location is the literary composition of which control to be detected rapidly actually This display is abnormal, alarm module 410 host interface of each control to be detected can also be also added to testing result table or In alarm form.
The mode highlighted by be highlighted the information needing alarm, or can be carried out overstriking and show, The most underlined mode is carried out.
The control text overlength detection device 40 that the present embodiment provides can be deployed in terminal, the end described in the present invention End can include such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), The mobile terminal of PAD (panel computer), PMP (portable media player), guider etc. and such as numeral TV, platform The fixed terminal of formula computer etc..The terminal provided the present embodiment below in conjunction with Fig. 6 is introduced, and Fig. 6 is for realizing this The hardware architecture diagram of each one optional terminal of embodiment bright:
Terminal 60 can include output unit 610, memorizer 620, controller 630 etc..Fig. 6 shows have various groups The terminal of part, it should be understood that be not required for implementing all assemblies illustrated.Can alternatively implement more or less of Assembly, will be discussed in more detail below the element of terminal.
Output unit 610 is configured to provide output signal (such as, audio frequency letter with vision, audio frequency and/or tactile manner Number, video signal, alarm signal, vibration signal etc.).Output unit 610 can include that display module 611, audio frequency export mould Block 612, alarm modules 613 etc..
Display module 611 may be displayed on the information processed in terminal 60.Such as, it is in telephone calling model when terminal 60 Time, display module 611 can show and call or other communicate (such as, text messaging, multimedia file download etc.) Relevant user interface (UI) or graphic user interface (GUI).When terminal 60 is in video calling pattern or image capturing mould During formula, display module 611 can show image and/or the image of reception of capture, illustrate video or image and correlation function UI or GUI etc..
Meanwhile, when display module 611 and touch pad the most superposed on one another with formed touch screen time, display module 611 can serve as input equipment and output device.Display module 611 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least A kind of.Some in these display may be constructed such that transparence is watched from outside with permission user, and this is properly termed as transparent Display, typical transparent display can for example, TOLED (transparent organic light emitting diode) display etc..According to specific The embodiment wanted, terminal 60 can include two or more display modules (or other display device), such as, mobile terminal Outside display module (not shown) and internal display module (not shown) can be included.Touch screen can be used for detecting touch input pressure Power and touch input position and touch input area.
Dio Output Modules 612 can mobile terminal be in call signal receive pattern, call mode, logging mode, Time under the isotype such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or at memorizer 620 The voice data transducing audio signal of middle storage and be output as sound.And, dio Output Modules 612 can provide and terminal The audio frequency output (such as, call signal receives sound, message sink sound etc.) that 60 specific functions performed are relevant.Audio frequency is defeated Go out module 612 and can include speaker, buzzer etc..
Alarm modules 613 can provide output to notify event to terminal 60.Typical event can include Calling reception, message sink, key signals input, touch input etc..In addition to audio or video exports, alarm modules 613 Can provide in a different manner and export the generation with notification event.Such as, alarm modules 613 can provide with the form of vibration Output, when receiving calling, message or some other entrance communication (incoming communication), alarm modules 613 can provide sense of touch output (that is, vibration) to notify to user.By provide such sense of touch export, even if with When the mobile phone at family is in the pocket of user, user also is able to identify the generation of various event.Alarm modules 613 also may be used To provide the output of the generation of notification event via display module 611 or dio Output Modules 612.
Memorizer 620 can store the process performed by controller 630 and the software program controlling operation etc., or can Temporarily to store the data (such as, telephone directory, message, still image, video etc.) that oneself maybe will export through output.And And, memorizer 620 can with storage about when touch be applied to touch screen time the vibration of various modes of output and audio signal Data.
Memorizer 620 can include that the storage medium of at least one type, described storage medium include flash memory, hard disk, many Media card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access store Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, terminal 60 can be connected execution memorizer 620 with by network The network storage device cooperation of storage function.
Controller 630 generally controls the overall operation of terminal.Such as, controller 630 performs to lead to voice call, data Control that letter, video calling etc. are relevant and process.
Various embodiment described herein can be to use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implementing for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Program gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 630. Software is implemented, the embodiment of such as process or function can with allow to perform the single of at least one function or operation Software module is implemented.Software code can be come by the software application (or program) write with any suitable programming language Implementing, software code can be stored in memorizer 620 and be performed by controller 630.
In the present embodiment, the word that the code of application program, the .xml file of application program and various language form are corresponding Symbol string resource table can be stored in the middle of memorizer 620.Acquisition module 402, determine module 404, matching module 406 and sentence The function of cover half block 408 can be realized by the controller 630 in terminal 60: controller 630 is from being stored in memorizer 620 In string resource table in get the control to be detected text under current language form to be detected, then according to be detected The attribute information of control determines the preferable viewing area that text is required under currently displaying dimension, and according to control to be detected Attribute information calculates the available display area of reality, is then mated with available display area ideal viewing area, when When mating unsuccessful, controller 630 judges that the text of the current language form to be detected of control to be detected is under currently displaying dimension Overlength.
The function of the alarm module 410 in the present embodiment can be realized by output unit 610, when alarm is by aobvious When the mode shown is carried out, the text of the prominent overlength in testing result table of the display module 611 in output unit 610 and correspondence thereof Display dimension and the attribute information of control to be detected, and to application developer and/or text translator illustrate detection knot Really table.It is understood that in some scenarios, showing that testing result is while alerting by display module 611 Prompt tone can also be sent by dio Output Modules 612 or alarm modules 613 or vibrations alert.
The present embodiment provide control text overlength detection device 40, by control to be detected under different language type Text normally show that the available display area of required preferable viewing area offer actual with control to be detected is mated, When preferable viewing area is less than or equal to available display area, decide that the text of the current language form to be detected of control to be detected Under currently displaying dimension normally, its overlength is otherwise judged.By this detection mode, can reduce and human resources is disappeared Consumption, reduces the burden of relevant staff, optimizes allocation of resources.
It addition, after testing result characterizes the control to be detected text overlength under different language type, alarm module 410 can propose alarm to application developer and/or text translator by the way of highlighting, and make program development people The attribute information of control to be detected is adjusted by member according to alarm, allows text translator according to warning information to cypher text Simplify, so that the text in control to be detected normally shows, user can normally be got in control to be detected and carries The information of confession, it is ensured that Consumer's Experience.
It should be noted that in this article, term " includes ", " comprising " or its any other variant are intended to non-row Comprising of his property, so that include that the process of a series of key element, method, article or device not only include those key elements, and And also include other key elements being not expressly set out, or also include intrinsic for this process, method, article or device Key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that including this The process of key element, method, article or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-described embodiment side Method can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, but a lot of in the case of The former is more preferably embodiment.Based on such understanding, prior art is done by technical scheme the most in other words The part going out contribution can embody with the form of software product, and this computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, take Business device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
Above in conjunction with accompanying drawing, embodiments of the invention are described, but the invention is not limited in above-mentioned concrete Embodiment, above-mentioned detailed description of the invention is only schematic rather than restrictive, those of ordinary skill in the art Under the enlightenment of the present invention, in the case of without departing from present inventive concept and scope of the claimed protection, it may also be made that a lot Form, within these belong to the protection of the present invention.

Claims (10)

1. a control text overlength detection device, it is characterised in that including:
Acquisition module, for obtaining the control to be detected text under current language form to be detected;
Determine module, for according to the attribute information of control to be detected determine described text under currently displaying dimension required Preferable viewing area, described attribute information at least includes the text display mode of described control to be detected;
Matching module, for carrying out the available display area of described preferable viewing area offer actual with described control to be detected Coupling;
Determination module, when being used for mating unsuccessful, it is determined that the text of the current language form to be detected of described control to be detected is being worked as Overlength under front display dimension.
2. control text overlength detection device as claimed in claim 1, it is characterised in that described acquisition module is for according to working as Front language form to be detected gets the string resource table of correspondence, and utilizes the resource identification number of described control to be detected from institute State the text finding correspondence in string resource table.
3. control text overlength detection device as claimed in claim 1 or 2, it is characterised in that described determine that module is for root Text display mode and the preferable viewing area of the currently displaying dimension described content of text of calculating, institute according to described control to be detected State in the font of font size that display dimension includes that the equipment independent pixel of display device, display device use, display device use At least one.
4. a control text overlength detection method, including:
Obtain the control to be detected text under current language form to be detected;
Attribute information according to control to be detected determines the preferable viewing area that described text is required under currently displaying dimension, Described attribute information at least includes the text display mode of described control to be detected;
The available display area of described preferable viewing area offer actual with described control to be detected is mated;
When mating unsuccessful, it is determined that the text of the current language form to be detected of described control to be detected is super under currently displaying dimension Long.
5. control text overlength detection method as claimed in claim 4, it is characterised in that by described preferable viewing area and institute State the available display area of the actual offer of control to be detected to carry out coupling and include:
The most described preferable viewing area and the size of described available display area;
When described preferable viewing area is less than or equal to described available display area, then judge that the match is successful, otherwise judges coupling not Success.
6. control text overlength detection method as claimed in claim 4, it is characterised in that judge that described control to be detected is current The text of language form to be detected also includes after overlength under currently displaying dimension: the overlength for described text proposes alarm.
7. control text overlength detection method as claimed in claim 6, it is characterised in that the overlength for described text proposes Alarm includes:
The attribute information of the described text of overlength and the display dimension of correspondence and described control to be detected is added to warning watch In lattice;
And show described alarm form;
Or,
The described text of prominent overlength and the display dimension of correspondence thereof and the attribute of described control to be detected in testing result table Information, described testing result table is used for the text recording each language form of each control to be detected detection under each display dimension Result;
And show described testing result table.
8. the control text overlength detection method as described in any one of claim 4-7, it is characterised in that obtain control to be detected Text under current language form to be detected includes:
The string resource table of correspondence is got according to current language form to be detected;
The resource identification number utilizing described control to be detected finds the text of correspondence from described string resource table.
9. the control text overlength detection method as described in any one of claim 4-7, it is characterised in that according to control to be detected Attribute information determine that the preferable viewing area required under currently displaying dimension of described text includes:
Text display mode and currently displaying dimension according to described control to be detected calculate the preferable of described content of text and show Region, described display dimension includes that font size that the equipment independent pixel of display device, display device use, display device use At least one in font.
10. the control text overlength detection method as described in any one of claim 4-7, it is characterised in that described ideal is shown Show that the available display area of region offer actual with described control to be detected also includes before mating:
Obtaining the attribute information of described control to be detected, described attribute information also includes the size of described control to be detected, described The marginal value of control to be detected;
It is calculated the actual offer of described control to be detected under described text display mode according to described size and described marginal value Available display area.
CN201610606464.6A 2016-07-28 2016-07-28 A kind of control text overlength detection device and method Pending CN106228191A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610606464.6A CN106228191A (en) 2016-07-28 2016-07-28 A kind of control text overlength detection device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610606464.6A CN106228191A (en) 2016-07-28 2016-07-28 A kind of control text overlength detection device and method

Publications (1)

Publication Number Publication Date
CN106228191A true CN106228191A (en) 2016-12-14

Family

ID=57533977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610606464.6A Pending CN106228191A (en) 2016-07-28 2016-07-28 A kind of control text overlength detection device and method

Country Status (1)

Country Link
CN (1) CN106228191A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107393494A (en) * 2017-08-17 2017-11-24 福建星网锐捷通讯股份有限公司 A kind of font dot matrix display methods and storage device based on LCDs
CN110688037A (en) * 2019-09-11 2020-01-14 深圳康佳电子科技有限公司 Control display method, storage medium and mobile terminal
CN111142988A (en) * 2019-12-03 2020-05-12 东软集团股份有限公司 Page testing method and device, storage medium and electronic equipment
CN113177389A (en) * 2021-04-23 2021-07-27 网易(杭州)网络有限公司 Text processing method and device, electronic equipment and storage medium
CN116943232A (en) * 2023-06-26 2023-10-27 广州三七极耀网络科技有限公司 Globalization processing method and globalization processing equipment for application program

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101276277A (en) * 2007-03-29 2008-10-01 日立软件工程株式会社 Source code generating device
CN101697127A (en) * 2009-10-30 2010-04-21 南京中兴软创科技股份有限公司 Method for internationalizing software system
CN102004647A (en) * 2010-12-24 2011-04-06 青岛海信信芯科技有限公司 Implementation method and device for on-screen display (OSD) application framework as well as multimedia terminal
CN102214454A (en) * 2011-05-27 2011-10-12 苏州阔地网络科技有限公司 Control arrangement display method, system and client
CN102830958A (en) * 2011-06-16 2012-12-19 奇智软件(北京)有限公司 Method and system for obtaining interface control information
CN103389968A (en) * 2013-07-10 2013-11-13 福州博远无线网络科技有限公司 Method and system for realizing rich text display
CN103699632A (en) * 2013-12-23 2014-04-02 深圳市开立科技有限公司 UI (user interface) text detection method and device
US20150378965A1 (en) * 2012-06-27 2015-12-31 Zte Corporation Method And Device For Text Input And Display Of Intelligent Terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101276277A (en) * 2007-03-29 2008-10-01 日立软件工程株式会社 Source code generating device
CN101697127A (en) * 2009-10-30 2010-04-21 南京中兴软创科技股份有限公司 Method for internationalizing software system
CN102004647A (en) * 2010-12-24 2011-04-06 青岛海信信芯科技有限公司 Implementation method and device for on-screen display (OSD) application framework as well as multimedia terminal
CN102214454A (en) * 2011-05-27 2011-10-12 苏州阔地网络科技有限公司 Control arrangement display method, system and client
CN102830958A (en) * 2011-06-16 2012-12-19 奇智软件(北京)有限公司 Method and system for obtaining interface control information
US20150378965A1 (en) * 2012-06-27 2015-12-31 Zte Corporation Method And Device For Text Input And Display Of Intelligent Terminal
CN103389968A (en) * 2013-07-10 2013-11-13 福州博远无线网络科技有限公司 Method and system for realizing rich text display
CN103699632A (en) * 2013-12-23 2014-04-02 深圳市开立科技有限公司 UI (user interface) text detection method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107393494A (en) * 2017-08-17 2017-11-24 福建星网锐捷通讯股份有限公司 A kind of font dot matrix display methods and storage device based on LCDs
CN110688037A (en) * 2019-09-11 2020-01-14 深圳康佳电子科技有限公司 Control display method, storage medium and mobile terminal
CN111142988A (en) * 2019-12-03 2020-05-12 东软集团股份有限公司 Page testing method and device, storage medium and electronic equipment
CN111142988B (en) * 2019-12-03 2023-08-29 东软集团股份有限公司 Page test method and device, storage medium and electronic equipment
CN113177389A (en) * 2021-04-23 2021-07-27 网易(杭州)网络有限公司 Text processing method and device, electronic equipment and storage medium
CN116943232A (en) * 2023-06-26 2023-10-27 广州三七极耀网络科技有限公司 Globalization processing method and globalization processing equipment for application program

Similar Documents

Publication Publication Date Title
US10614172B2 (en) Method, apparatus, and system for providing translated content
KR102010221B1 (en) Smartphone-based methods and systems
CN106228191A (en) A kind of control text overlength detection device and method
CN109005283B (en) Method, device, terminal and storage medium for displaying notification message
US10691402B2 (en) Multimedia data processing method of electronic device and electronic device thereof
CN111241340B (en) Video tag determining method, device, terminal and storage medium
CN108961157B (en) Picture processing method, picture processing device and terminal equipment
EP3115912A2 (en) Method for displaying web content and electronic device supporting the same
US20170249934A1 (en) Electronic device and method for operating the same
US20150185969A1 (en) Screen display method and electronic device supporting same
KR20160016860A (en) Search recommendation method and apparatus
CN107025174A (en) For the method for the user interface abnormality test of equipment, device and readable storage media
CN111767554A (en) Screen sharing method and device, storage medium and electronic equipment
KR101821982B1 (en) Evaluation of augmented reality skins
US11556605B2 (en) Search method, device and storage medium
CN110191356A (en) Video reviewing method, device and electronic equipment
CN103870121B (en) A kind of information processing method and electronic equipment
KR102365160B1 (en) Method, apparatus and system for providing translated contents
CN114647412A (en) Content display method and terminal equipment
CN116343350A (en) Living body detection method and device, storage medium and electronic equipment
KR102341970B1 (en) Electronic device and method for processing information the electronic device
US10482151B2 (en) Method for providing alternative service and electronic device thereof
CN114968960A (en) Log processing method and device, computer equipment and storage medium
CN107424002A (en) Methods of exhibiting, equipment and the computer-readable recording medium of picture search result
KR20150120123A (en) Method And Apparatus For Offering Information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161214