CN109284481A - A prompt text processing method, device and computer-readable storage medium - Google Patents
A prompt text processing method, device and computer-readable storage medium Download PDFInfo
- Publication number
- CN109284481A CN109284481A CN201811042800.4A CN201811042800A CN109284481A CN 109284481 A CN109284481 A CN 109284481A CN 201811042800 A CN201811042800 A CN 201811042800A CN 109284481 A CN109284481 A CN 109284481A
- Authority
- CN
- China
- Prior art keywords
- line
- line feed
- display line
- feed position
- stem
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Document Processing Apparatus (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiment of the invention discloses a kind of prompt text handling methods, comprising: receives text hint instructions, first line feed position of the text hint instructions for positioning indicating text;Line feed is executed on the first line feed position of prompt text according to text hint instructions, obtains stem display line;If the first pixel wide of stem display line is greater than presetted pixel width, the first line feed position of stem display line end is shifted to an earlier date, the second line feed position is obtained;Line feed is executed on the second line feed position of prompt text.The embodiment of the invention also discloses a kind of prompt text processing apparatus and computer readable storage mediums.The embodiment of the present invention ensure that the pixel wide of each display line within the scope of preset, improve the integrity degree of display result.
Description
Technical field
The present invention relates to text-processing field more particularly to a kind of prompt text handling methods, device and computer-readable
Storage medium.
Background technique
Text prompt attribute include title (title) attribute and hypertext reference (alter, alt) attribute, wherein
Title attribute provides the additional information about object element, these additional informations would generally be when mouse moves on on object element
Show one section of prompt text, alt attribute regulation shows substitution prompt text when picture can not be presented.
During page development, it is frequently encountered text information and shows that incomplete or display plenary session destroys page layout
Situation just usually requires the text prompt attribute using the page at this time, shows whole text informations in prompt text, but
It is, when text information is too long, to show that the text in prompt text will appear and show infull situation.
For above-mentioned situation, current most of ways are: the number of characters of limitation prompt text, when prompt text reaches
After certain number of characters, text and additional newline are just intercepted, enforceable to allow wrapping text, the solution that this method can be certain
Certainly show that the text in prompt text will appear the infull problem that shows, but when Chinese character, letter and symbol displaying
Occupied pixel wide is simultaneously different, and the pixel wide according to the character string line feed after the character number interception of text is different
It causes, results in the display incomplete problem of result.
Summary of the invention
The embodiment of the invention provides a kind of prompt text handling method, device and computer readable storage mediums, guarantee
The pixel wide of each display line improves the accuracy of display result within the scope of preset.
The first aspect of the present invention provides a kind of prompt text handling method, comprising:
Receive text hint instructions, first line feed position of the text hint instructions for positioning indicating text;
Line feed is executed on the first line feed position of the prompt text according to text hint instructions, stem is obtained and shows
Row;
If the first pixel wide of the stem display line is greater than presetted pixel width, by the of the stem display line end
One line feed position shifts to an earlier date, and obtains the second line feed position;
Line feed is executed on the second line feed position of the prompt text.
In a kind of possible design of first aspect, this first is changed according to text hint instructions in this of the prompt text
Line position, which is set, executes line feed, obtains stem display line and includes:
N number of first line feed position in the prompt text is determined according to text hint instructions;
Line feed is executed on N number of first line feed position of the prompt text, obtains the N number of first preliminary display line and one
The prompt text character number of tail portion display line, each first preliminary display line is the first number of characters, which mentions
Show that text character number is the second number of characters, which is not less than second number of characters, which is the integer greater than 1.
In a kind of possible design of first aspect, before N number of first line feed position in the determination prompt text also
Include:
The third pixel wide and presetted pixel width of prompt text are obtained, and determines that the third pixel wide is default with this
The ratio of pixel wide is interception line number;
The second number of characters for obtaining the prompt text determines the first number of characters according to second number of characters, first character
Number tail is in the preset range of second number of characters and the ratio of the interception line number.
In a kind of possible design of first aspect, if the first pixel wide for being somebody's turn to do stem display line is wide greater than presetted pixel
Degree then shifts to an earlier date the first line feed position of the stem display line end, and obtaining the second line feed position includes:
Determine the first pixel wide of each stem display line in N number of stem display line;
Each first pixel wide is successively greater than to the first line feed position of the stem display line end of the presetted pixel width
It sets in advance, obtains N number of second line feed position.
In a kind of possible design of first aspect, each 4th pixel wide is successively greater than the presetted pixel width by this
The first line feed position of stem display line end shift to an earlier date, after obtaining the second line feed position further include:
If the third number of characters of the tail portion display line is greater than first number of characters and the 4th pixel of the tail portion display line is wide
Degree is greater than the presetted pixel width, it is determined that the M third line feed position of the tail portion display line;
Line feed is executed on M of tail portion display line third line feed positions, M+1 the first tail portion is obtained and shows
Row, wherein the 5th pixel wide of each sub- display line in first tail portion is not more than the presetted pixel width, the M be greater than or
Integer equal to 1;
Correspondingly, should execution line feed include: on the second line feed position of prompt text
Line feed is executed in N number of second line feed position of the prompt text and M third line feed positions.
In a kind of possible design of first aspect, each 4th pixel wide is successively greater than the presetted pixel width by this
The first line feed position of stem display line end shift to an earlier date, after obtaining the second line feed position further include:
If the third number of characters of the tail portion display line is no more than the 4th pixel of first number of characters and the tail portion display line
Width is greater than the presetted pixel width, it is determined that the 4th line feed position of the tail portion display line;
Line feed is executed on the 4th line feed position of the tail portion display line, obtains the sub- display line of the first stem and the second tail portion
Sub- display line, wherein the 5th pixel wide of the sub- display line of the first stem and the 6th pixel wide being somebody's turn to do are no more than the default picture
Plain width;
Correspondingly, should execution line feed include: on the second line feed position of prompt text
Line feed is executed in N number of second line feed position of the prompt text and the 4th line feed position.
In a kind of possible design of first aspect, if the first pixel wide for being somebody's turn to do stem display line is wide greater than presetted pixel
Degree then shifts to an earlier date the first line feed position of the stem display line end, and obtaining the second line feed position includes:
It circuits sequentially and executes first circulation line feed strategy and second circulation line feed strategy, until the second of the stem display line
Pixel wide is wide no more than the presetted pixel no more than the 7th pixel wide of the presetted pixel width and the tail portion display line
Degree;
First circulation line feed strategy is configured as:
If the first pixel wide of the stem display line is greater than the presetted pixel width, by the stem display line end
First line feed position shifts to an earlier date, and obtains the second line feed position, so that the second pixel wide of the stem display line is no more than default
Pixel wide;
Second circulation line feed strategy is configured as:
When the 7th pixel wide is greater than the presetted pixel width, held on the 5th line feed position of the tail portion display line
Row line feed obtains the sub- display line of the second stem and the sub- display line in third tail portion, which is updated to the head
Portion's display line, by the third tail portion, sub- display line is updated to the tail portion display line;
Correspondingly, should execution line feed include: on the second line feed position of prompt text
Line feed is executed on second line feed position and the 5th line feed position of the prompt text.
The second aspect of the present invention provides a kind of prompt text processing apparatus, comprising:
Receiving module, for receiving text hint instructions, text hint instructions are changed for the first of positioning indicating text
Line position is set;
First processing module, for according to the received text hint instructions of receiving module the prompt text this first
Line feed executes line feed on position, obtains stem display line;
Second processing module, if the first pixel wide of the stem display line obtained for the first processing module be greater than it is pre-
If pixel wide, then the first line feed position of the stem display line end is shifted to an earlier date, obtain the second line feed position;
Third processing module, for the Second processing module in the prompt text obtain second line feed position on execute
Line feed.
In a kind of possible design of second aspect, which is used for:
N number of first line feed position in the prompt text is determined according to the received text hint instructions of receiving module;
Line feed is executed on N number of first line feed position of the prompt text, obtains the N number of first preliminary display line and one
The prompt text character number of tail portion display line, each first preliminary display line is the first number of characters, which mentions
Show that text character number is the second number of characters, which is not less than second number of characters, which is the integer greater than 1.
In a kind of possible design of second aspect, which further includes obtaining module;
Module is obtained, for obtaining the third pixel wide and presetted pixel width of prompt text, and determines the third picture
The ratio of plain width and the presetted pixel width is interception line number;
The second number of characters for obtaining the prompt text determines the first number of characters according to second number of characters, first character
Number tail is in the preset range of second number of characters and the ratio of the interception line number.
In a kind of possible design of second aspect, Second processing module is specifically used for determining in N number of stem display line
First pixel wide of each stem display line;
Each first pixel wide is successively greater than to the first line feed position of the stem display line end of the presetted pixel width
It sets in advance, obtains N number of second line feed position.
In a kind of possible design of second aspect, which further includes fourth processing module;
Fourth processing module is specifically used for: if the third number of characters of the tail portion display line is greater than first number of characters and the tail
4th pixel wide of portion's display line is greater than the presetted pixel width, it is determined that the M third line feed position of the tail portion display line;
Line feed is executed on M of tail portion display line third line feed positions, M+1 the first tail portion is obtained and shows
Row, wherein the 5th pixel wide of each sub- display line in first tail portion is not more than the presetted pixel width, the M be greater than or
Integer equal to 1.
Correspondingly, third processing module is specifically used for: N number of second line feed position of the prompt text and M this
Three line feed positions execute line feed.
In a kind of possible design of second aspect, which further includes fourth processing module;
If the third number of characters that fourth processing module is specifically used for the tail portion display line is greater than first number of characters and the tail
4th pixel wide of portion's display line is greater than the presetted pixel width, it is determined that the M third line feed position of the tail portion display line;
Line feed is executed on M of tail portion display line third line feed positions, M+1 the first tail portion is obtained and shows
Row, wherein the 5th pixel wide of each sub- display line in first tail portion is not more than the presetted pixel width, the M be greater than or
Integer equal to 1.
Correspondingly, third processing module is specifically used for: N number of second line feed position of the prompt text and M this
Three line feed positions execute line feed.
In a kind of possible design of second aspect, which further includes fourth processing module;
If third number of characters of the fourth processing module for the tail portion display line is not more than first number of characters and the tail portion
4th pixel wide of display line is greater than the presetted pixel width, it is determined that the 4th line feed position of the tail portion display line;
Line feed is executed on the 4th line feed position of the tail portion display line, obtains the sub- display line of the first stem and the second tail portion
Sub- display line, wherein the 5th pixel wide of the sub- display line of the first stem and the 6th pixel wide being somebody's turn to do are no more than the default picture
Plain width;
Correspondingly, third processing module is specifically used for: being changed in N number of second line feed position and the 4th of the prompt text
Line position, which is set, executes line feed.
In a kind of possible design of second aspect, first processing module, specifically for circuiting sequentially execution first circulation
Line feed strategy and second circulation line feed strategy, until the second pixel wide of the stem display line is not more than the presetted pixel width
And the 7th pixel wide of the tail portion display line is not more than the presetted pixel width;
First circulation line feed strategy is configured as:
If the first pixel wide of the stem display line is greater than the presetted pixel width, by the stem display line end
First line feed position shifts to an earlier date, and obtains the second line feed position, so that the second pixel wide of the stem display line is no more than default
Pixel wide;
Second circulation line feed strategy is configured as:
When the 7th pixel wide is greater than the presetted pixel width, held on the 5th line feed position of the tail portion display line
Row line feed obtains the sub- display line of the second stem and the sub- display line in third tail portion, which is updated to the head
Portion's display line, by the third tail portion, sub- display line is updated to the tail portion display line;
Correspondingly, the fourth processing module is specifically used for: being changed in the second line feed position and the 5th of the prompt text
Line position, which is set, executes line feed.
The third aspect of the present invention provides a kind of computer readable storage medium, deposits in the computer readable storage medium
Instruction is contained, when run on a computer, so that computer executes the method that above-mentioned various aspects are somebody's turn to do.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the embodiment of the present invention, a kind of prompt text handling method is provided, first reception text hint instructions, the text
First line feed position of the hint instructions for positioning indicating text;Being somebody's turn to do in the prompt text according to text hint instructions later
Line feed is executed on first line feed position, obtains stem display line;If the first pixel wide of the stem display line is greater than default picture
First line feed position of the stem display line end is then shifted to an earlier date, obtains the second line feed position by plain width;Finally in prompt text
Line feed is executed on this second line feed position.By the above-mentioned means, being executed when showing prompt text in the first line feed position
On the basis of line feed, it is adjusted by the way that pixel wide to be greater than to the line feed position of display line end of presetted pixel width, it can
So that the pixel wide of each preliminary display line is not more than presetted pixel width, it ensure that the pixel wide of stem display line exists
Within the scope of preset, the integrity degree of display result is improved.
Detailed description of the invention
Fig. 1 is that text handling method one embodiment schematic diagram is prompted in the embodiment of the present invention;
Fig. 2 is one embodiment schematic diagram that text processing apparatus is prompted in the embodiment of the present invention;
Fig. 3 is another embodiment schematic diagram that text processing apparatus is prompted in the embodiment of the present invention;
Fig. 4 is another embodiment schematic diagram that text processing apparatus is prompted in the embodiment of the present invention;
Fig. 5 is the flow diagram that text-processing is prompted in application scenarios of the present invention;
Fig. 6 is the flow diagram that text-processing is prompted in application scenarios of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of prompt text handling method, device and computer readable storage mediums, guarantee
The pixel wide of display line improves the integrality of display result within the scope of preset.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein for example can be to remove
Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any
Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production
Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this
A little process, methods, the other step or units of product or equipment inherently.
Refering to fig. 1, one embodiment of prompt text handling method includes: in the embodiment of the present invention
101, text hint instructions, first line feed position of the text hint instructions for positioning indicating text are received.
In the embodiment of the present application, text hint instructions can be input equipment transmission, and wherein input equipment may include
But one of it is not limited to trace ball, mouse, operating stick etc. or a variety of, text hint instructions can carry the position of object element
Confidence breath, wherein object element has text prompt attribute, and object element can be web page interlinkage or text key word etc..
By taking input equipment is mouse as an example, when near the position that the position of mouse is moved to object element, it is equivalent to and has received text
This hint instructions at this time can be in object element since object element has text prompt attribute (title attribute or alt attribute)
The predeterminable area of surrounding shows preset title value, is known as preset title primary system to prompt text below.
In the embodiment of the present application, prompt the physical length of text or pixel wide may be very long, if without line feed
Processing is directly being shown in predeterminable area display reminding text, due to going back on the limited length of display area or display area
Have other display contents, it is possible to will appear prompt text show it is incomplete, block that other displays are interior and perhaps shown by other in
The case where holding covering.If intercepting text and additional newline, the enforceable text that allows after preset character in prompt text
This line feed, this method can solve the above problems to a certain extent, but since Chinese character, number and symbol are when showing
Pixel wide it is different, therefore each line character string pixel wide difference that will appear after line feed is very big, and the result of display is irregular not
Neat display interface is unfriendly.In the embodiment of the present application, to mentioning before the predeterminable area display reminding text around object element
Show that the line feed strategy of text is improved.Specifically, line feed strategy can be deployed in interim subregion (division, div)
The inside can be used literal translation formula scripting language (javascript, js) to create an interim div, and be loaded into document pair
As being mentioned receiving the text for carrying object element location information in model (document object model, DOM) tree
After showing instruction, the prompt text shown in title can will be needed to be inserted into div.
In the embodiment of the present application, after the prompt text that will need to show in title is inserted into div, it has been equivalent to
It, later can the first line feed position in div in positioning indicating text at the preparation of prompt text.Wherein, first
Line feed position can be the line feed position obtained after carrying out initial decision, for example, it may be will be prompted to the center character of text
Position is as the first line feed position or according to the actual situation using the position after preset number of characters as the first line feed position.
102, line feed is executed on the first line feed position of prompt text according to text hint instructions, obtains stem and shows
Row.
In the embodiment of the present application, behind the first line feed position of positioning indicating text, prompted according to text hint instructions
Line feed is executed on first line feed position of text, it is to be understood that executes line feed on the first line feed position of prompt text
Available stem display line and tail portion display line afterwards, wherein stem epideictic behaviour since prompt text first character to
Text between first line feed position, tail portion epideictic behaviour is from the first line feed position to the text a last character.With
For prompt text is " link can jump directly to the live streaming interface in ABC net ", when the first of positioning indicating text
After position enter a new line as the 8th character, i.e., when " jumping " between " turning ", line feed is executed on the first line feed position of prompt text,
Obtain stem display line " link can be jumped directly " and tail portion display line " going to the live streaming interface in ABC net ".
If 103, the first pixel wide of stem display line is greater than presetted pixel width, by the of stem display line end
One line feed position shifts to an earlier date, and obtains the second line feed position.
In the embodiment of the present application, line feed is executed on the first line feed position of prompt text, after obtaining stem display line, is needed
Will the pixel wide to stem display line whether meet the requirement of display interface and judge, specifically, can be aobvious by stem
Show whether the first capable pixel wide is greater than presetted pixel width to judge whether the pixel wide of stem display line meets display
The requirement at interface, it is to be understood that when the first pixel wide of stem display line is excessive, it is likely that can block or be shown boundary
Other real-world objects in face are covered, or make to prompt the display content of text endless more than the indication range of display interface
It is whole, further, if the first pixel wide of stem display line is greater than presetted pixel width, it is determined that enter a new line obtained stem in advance
Display line does not meet the requirement of display interface, presetted pixel width can be user in conjunction with display interface displaying target arrangement with
And the indication range determination of display interface, it is also possible to computer and arranges and show boundary according to the displaying target of display interface
The optimal value that the indication range in face is calculated when practical application, can select on demand presetted pixel width to determine method, this
In without limitation.
In the embodiment of the present application, when the first pixel wide of stem display line is greater than presetted pixel width, it is determined that change in advance
The stem display line that row obtains does not meet the requirement of display interface, and the pixel wide to stem display line is needed to be adjusted, this
Apply in embodiment, the first line feed position of stem display line end is shifted to an earlier date, it should be noted that stem display line end
First line feed position is interpreted as rear end or tail portion display line first character positioned at stem display line last character
Front end.It in advance can be a certain number of to move forward the first line feed position by the first line feed position of stem display line end
Character obtains the second line feed position until the first pixel wide of stem display line is greater than presetted pixel width.It is mentioned with working as
For showing text for " link can jump directly to the live streaming interface in ABC net ", obtained by above-mentioned pre- branch's step
Stem display line " link can be jumped directly " and tail portion display line " going to the live streaming interface in ABC net ", if presetted pixel
Width is 5 characters, and stem display line includes 8 characters at this time, i.e., the first pixel wide of stem display line is greater than default
Pixel wide, then head can just be guaranteed by needing the first line feed position of stem display line end at least to shift to an earlier date at least three character
First pixel wide of portion's display line is not more than 5 characters.It should be noted that the number of characters that the first line feed position shifts to an earlier date needs
In the light of actual conditions select, if number of characters in advance is too small, the first pixel wide of stem display line is still very wide, if
Number of characters in advance is excessive, then stem display line can be made to cross section, will affect the beauty of display interface instead and prompts text
It is readable.Optionally, the first line feed position can successively shift to an earlier date 1 number of characters, be often once judged as successively stem in advance and show
Whether the first capable pixel wide is equal to presetted pixel width or is slightly less than presetted pixel width, until the first of stem display line
When pixel wide is equal to presetted pixel width or is slightly less than presetted pixel width, stop Forward.
104, line feed is executed on the second line feed position of prompt text.
In the embodiment of the present application, the first line feed position of stem display line end is shifted to an earlier date, the second line feed position, phase are obtained
When then needing prompting later in the line feed position for the interface display pixel wide condition for having obtained can satisfy stem display line
Line feed is executed on second line feed position of text, the head for meeting the interface display pixel wide condition of stem display line can be obtained
Portion's display line.
In the embodiment of the present application, reception text hint instructions first, text hint instructions for positioning indicating text the
One line feed position;Line feed is executed on the first line feed position of prompt text according to text hint instructions later, it is aobvious to obtain stem
Show row;If the first pixel wide of stem display line is greater than presetted pixel width, by the first line feed of stem display line end
Position shifts to an earlier date, and obtains the second line feed position;Finally line feed is executed on the second line feed position of prompt text.Pass through above-mentioned side
Formula, when showing prompt text, on the basis of the first line feed position executes line feed, by the way that pixel wide is greater than presetted pixel
The line feed position of the display line end of width is adjusted, and the pixel wide of preliminary display line can be made no more than presetted pixel
Width ensure that the pixel wide of stem display line within the scope of preset, improve the complete of display result to a certain extent
Whole property.
Optionally, on the basis of above-mentioned Fig. 1 corresponding one embodiment, prompt text provided in an embodiment of the present invention
In second alternative embodiment of processing method, is executed and changed on the first line feed position of prompt text according to text hint instructions
Row, obtaining stem display line may include:
N number of first line feed position in prompt text is determined according to text hint instructions;
Line feed is executed on N number of first line feed position of prompt text, obtains the N number of first preliminary display line and a tail portion
Display line, the prompt text character number of each first preliminary display line are the first number of characters, the prompt text word of tail portion display line
Symbol number is the second number of characters, and the first number of characters is not less than the second number of characters, and N is the integer greater than 1.
In the embodiment of the present application, be described in detail the first line feed position be it is multiple when, each stem display line and tail portion are shown
Capable branch's situation, it is to be understood that when the pixel wide of prompt text is too long, pass through one first single line feed position
It sets to enter a new line to prompt text and can only guarantee that the first pixel wide of stem display line is met the requirements, do not ensure that tail portion is aobvious
Show capable display requirement, be based on this, it needs to be determined that multiple first branch locations during preliminary branch, so that in prompt text
Pixel wide it is too long when can further shorten the pixel wide of each display line.
In the embodiment of the present application, specifically, line feed is executed on N number of first line feed position of prompt text, about N number of first
The positioning method of line feed position can be user or computer displaying target arrangement and display circle based on current display interface
The first number of characters that the display width in face determines, wherein the first number of characters is about that the every a line of current display interface estimates preferred appearance
The number of characters received, specifically, the validation testing about the first number of characters, may include: to obtain to prompt the third pixel of text wide
Degree and presetted pixel width, and determine that the ratio of third pixel wide and presetted pixel width is interception line number;Obtain prompt text
This second number of characters determines the first number of characters according to the second number of characters, and the first number of characters tail is in the second number of characters and interception row
In the preset range of several ratio, for example, when total pixel wide of prompt text is totalwidth, at this time around object element
Available display width be requiredwidth, calculate the multiple num1 of totalwidth/requiredwidth, wherein num1
For the line number that prompt text probably needs to intercept, the number of characters length of text is prompted, calculates the every row needs of text according to this
The number of characters length/num1=num2 of interception.Text is tentatively intercepted in the preset range of num2 later, specifically, can be with
It is all to intercept one in the interception position often with first character interval num2 number of characters since the first character of prompt text
Secondary prompt text, each interception position are N number of first line feed position.For example, to be that " link can be jumped directly when prompt text
Go to the live streaming interface in ABCD net " for, if the pixel overall width totalwidth of prompt text is 1440px, show at this time
It is 360px that the pixel wide requiredwidth that prompt text is shown can be carried out in interface, calculates prompt text and probably needs
The line number num1=1440/360=4 of interception, prompting total number of characters of text is length21, calculates text needs according to this
The number of characters num2=length/num1=21/4=5.25 of interception, determine with 5.25 relatively 5 be the first number of characters,
After the first line feed position is located in " with ", " arriving ", " net " and " boundary " four characters respectively later.It is changed by above-mentioned N number of first
The positioning that line position is set positions the preferred line feed position of estimating of prompt text, can be convenient subsequent carry out further
Enter a new line position adjustment.It should be noted that if the first line feed position has been located in full name in English, if in the first line feed position
Line feed, then can dismantle English word, influence whether the accuracy of display result, therefore, we can will be located at full name in English
The first line feed position afterwards is advanced to before full name in English.It should be noted that the positioning step of above-mentioned first line feed position is only
For a kind of signal, the first line feed position can be determined according to actual requirements during practicing.
In the embodiment of the present application, after completing the positioning of N number of first line feed position, so that it may N number of the of prompt text
Line feed is executed on one line feed position, obtains the N number of first preliminary display line and a tail portion display line, wherein each first is preliminary aobvious
Show that capable prompt text character number is the first number of characters, the prompt text character number of tail portion display line is the second number of characters, can be with
Understand, when by it is above-mentioned using the first number of characters be interval carries out branch operation after, for guarantee can tail portion be shown
Capable pixel wide is smaller, needs to guarantee the first number of characters not less than the second number of characters.
In the embodiment of the present application, the quantity of the first line feed position is multiple, between each first line feed position number of characters
For the first number of characters, and the first number of characters is not less than the second number of characters of tail portion display line, will estimate the number of preferred line feed position
Quantitative change is multiple, it is ensured that when the pixel wide for prompting text is too long, reduces the pixel wide of tail portion display line.
Optionally, on the basis of above-mentioned Fig. 1 corresponding second embodiment, prompt text provided in an embodiment of the present invention
It, will be first if the first pixel wide of stem display line is greater than presetted pixel width in processing method third alternative embodiment
First line feed position of portion display line end shifts to an earlier date, and obtaining the second line feed position may include:
Determine the first pixel wide of each stem display line in N number of stem display line;
Each first pixel wide is successively greater than to the first line feed position of the stem display line end of presetted pixel width
In advance, the second line feed position is obtained, so that the second pixel wide of N number of stem display line is not more than presetted pixel width.
In the embodiment of the present application, when the pixel wide of prompt text is too long, determined during preliminary branch multiple
First branch location allows and further shortens the pixel wide of each display line when the pixel wide for prompting text is too long,
N number of stem display line and a tail portion display line are obtained, each display for next needing to obtain preliminary branch's process is advanced
The adjustment of row pixel wide is required with meeting the pixel wide display of display interface.It should be noted that in N number of stem display line
Include identical number of characters --- the first number of characters, but the pixel wide of each number of characters pair is different, therefore even if stem
The number of characters of display line is identical, but its pixel wide may be different, and then will appear in N number of stem display line one
The pixel wide display for dividing the pixel wide of display line to meet display interface requires, and another part is unsatisfactory for the pixel of display interface
Width shows the case where requiring.
In the embodiment of the present application, it is first determined the first pixel wide of each stem display line in N number of stem display line, it
Successively the first line feed position of the stem display line end that each first pixel wide is greater than presetted pixel width is shifted to an earlier date afterwards, is obtained
To the second line feed position.Specifically, each stem display line can be successively traversed according to the tandem of prompt text, when traversing
When first the first pixel wide is greater than the stem display line of presetted pixel width, the first line feed position of its end is shifted to an earlier date.
Optionally, the first line feed position can successively shift to an earlier date 1 number of characters, often once be judged as the first of successively stem display line in advance
Whether pixel wide is equal to presetted pixel width or is slightly less than presetted pixel width, until the first pixel wide of stem display line
When equal to presetted pixel width or being slightly less than presetted pixel width, stop Forward.It is preset when first the first pixel wide is greater than
After first line feed position adjustment of the stem display line end of pixel wide is completed, correspondingly, the head of completion pixel adjustment
The number of characters of next stem display line of portion's display line can be increase accordingly, if next stem after number of characters increase is shown
The first capable pixel wide is not more than presetted pixel width, then the first line feed position of next stem display line end does not need
Adjustment, directly traverses next stem display line, if the first picture of next stem display line after number of characters increase
Plain width is greater than presetted pixel width, then the first line feed position of next stem display line end needs to adjust, the first line feed
The specific method of adjustment of position can refer to that above-mentioned to traverse first the first pixel wide aobvious greater than the stem of presetted pixel width
Show method of adjustment when row, details are not described herein again.It is shown in the stem that each first pixel wide is greater than presetted pixel width
After first line feed position of row end all shifts to an earlier date, N number of second line feed position is obtained, it should be noted that N number of second line feed position
In some with original first enter a new line position it is identical, some with original first enter a new line position it is not identical.
In the embodiment of the present application, when showing prompt text, on the basis of N number of first line feed position executes line feed, lead to
It crosses and is adjusted the line feed position for the display line end that pixel wide is greater than presetted pixel width, can make N number of preliminary aobvious
Show that capable pixel wide is all not more than presetted pixel width, ensure that the pixel wide of stem display line preset range it
It is interior, the integrality of display result is improved to a certain extent.
Optionally, on the basis of above-mentioned Fig. 1 corresponding third embodiment, prompt text provided in an embodiment of the present invention
In the 4th alternative embodiment of processing method, each 4th pixel wide is successively greater than to the stem display line of presetted pixel width
First line feed position of end shifts to an earlier date, after obtaining the second line feed position further include:
If the third number of characters of tail portion display line is greater than the first number of characters and the 4th pixel wide of tail portion display line is greater than
Presetted pixel width, it is determined that the M third line feed position of tail portion display line;
Line feed is executed on the M third line feed position of tail portion display line, obtains the M+1 sub- display lines in the first tail portion,
In, the 5th pixel wide of each sub- display line in first tail portion is not more than presetted pixel width, and M is the integer more than or equal to 1;
Correspondingly, execution line feed includes: on the second line feed position of prompt text
Line feed is executed in N number of second line feed position of prompt text and M third line feed position.
In the embodiment of the present application, each first pixel wide is being greater than to the stem display line end of presetted pixel width
After first line feed position all shifts to an earlier date, N number of second line feed position is obtained, prompt text execution is changed on N number of second line feed position
After row, available N number of stem display line for meeting the requirement of display interface pixel wide, it is to be understood that each first picture
The first line feed position that plain width is greater than the stem display line end of presetted pixel width all shifts to an earlier date, when the first pixel wide is greater than
There are many quantity of the stem display line of presetted pixel width, or there are the first pixel wides to be far longer than presetted pixel width
When stem display line, the first display position of the last one stem display line end in N number of stem display line may at this time
Many in advance compared to unadjusted first display position, in turn, the number of characters of tail portion display line is likely to be far longer than
Two number of characters, so that the pixel wide of tail portion display line is far longer than presetted pixel width.
In the embodiment of the present application, it is contemplated that when tail portion, display line is unsatisfactory for processing when interface display pixel wide requires
Strategy, it is to be understood that when the 4th pixel wide of tail portion display line is greater than presetted pixel width, it is believed that tail portion is aobvious
Show that row is unsatisfactory for the requirement of interface display pixel wide, further, when the 4th pixel wide of tail portion display line is greater than default picture
When plain width, it is possible to will appear: 1, the third number of characters of tail portion display line is greater than the first number of characters;2, the of tail portion display line
Three number of characters are less than or equal to the first number of characters both of these case, are next greater than for the third number of characters of tail portion display line
When one number of characters, branch's strategy of tail portion display line is described.
In the embodiment of the present application, if the third number of characters of tail portion display line is greater than the of the first number of characters and tail portion display line
Four pixel wides are greater than presetted pixel width, it is determined that the M third line feed position of tail portion display line, when the of tail portion display line
When three number of characters are greater than the first number of characters, in order to improve line feed efficiency, the M third that can be positioned first in the display line of tail portion is changed
Line position is set, and localization method is referred to the positioning in above-mentioned third alternative embodiment to the first line feed position of stem display line
It puts, details are not described herein again.After the M song third line feed position in prompt text executes line feed, available M+1 the first tails
The sub- display line in portion, wherein the 5th pixel wide of each sub- display line in first tail portion is not more than presetted pixel width.
In the embodiment of the present application, after the branch for completing stem display line, in tail portion, display line is unsatisfactory for display interface
Pixel show when requiring, to the pixel wide tune of tail portion display line further progress branch and the sub- display line in each tail portion
It is whole, it ensure that the pixel wide of stem display line and tail portion display line within the scope of preset, improves aobvious to a certain extent
Show the integrality of result.
Optionally, on the basis of above-mentioned Fig. 1 corresponding third embodiment, prompt text provided in an embodiment of the present invention
In the 5th alternative embodiment of processing method, each 4th pixel wide is successively greater than to the stem display line of presetted pixel width
First line feed position of end shifts to an earlier date, and obtaining the second line feed position can also include: later
If the third number of characters of tail portion display line is big no more than the 4th pixel wide of the first number of characters and tail portion display line
In presetted pixel width, it is determined that the M third line feed position of tail portion display line;
Line feed is executed on the 4th line feed position of tail portion display line, obtains the sub- display line of the first stem and the second tail portion
Display line, wherein the 6th pixel wide of the sub- display line of the 5th pixel wide and the second tail portion of the sub- display line of the first stem is little
In presetted pixel width;
Correspondingly, execution line feed includes: on the second line feed position of prompt text
Line feed is executed in N number of second line feed position of prompt text and the 4th line feed position.
In the embodiment of the present application, each first pixel wide is being greater than to the stem display line end of presetted pixel width
After first line feed position all shifts to an earlier date, N number of second line feed position is obtained, prompt text execution is changed on N number of second line feed position
After row, available N number of stem display line for meeting the requirement of display interface pixel wide, it is to be understood that each first picture
The first line feed position that plain width is greater than the stem display line end of presetted pixel width all shifts to an earlier date, when the first pixel wide is greater than
There are many quantity of the stem display line of presetted pixel width, or there are the first pixel wides to be far longer than presetted pixel width
When stem display line, the first display position of the last one stem display line end in N number of stem display line may at this time
Many in advance compared to unadjusted first display position, in turn, the number of characters of tail portion display line is likely to be far longer than
Two number of characters, so that the pixel wide of tail portion display line is far longer than presetted pixel width.
In the embodiment of the present application, it is contemplated that when tail portion, display line is unsatisfactory for processing when interface display pixel wide requires
Strategy, it is to be understood that when the 4th pixel wide of tail portion display line is greater than presetted pixel width, it is believed that tail portion is aobvious
Show that row is unsatisfactory for the requirement of interface display pixel wide, further, when the 4th pixel wide of tail portion display line is greater than default picture
When plain width, it is possible to will appear: 1, the third number of characters of tail portion display line is greater than the first number of characters;2, the of tail portion display line
Three number of characters be less than or equal to the first number of characters both of these case, next for tail portion display line third number of characters be less than or
When equal to the first number of characters, branch's strategy of tail portion display line is described.
In the embodiment of the present application, if the third number of characters of tail portion display line is less than or equal to the first number of characters and tail portion is shown
The 4th capable pixel wide is greater than presetted pixel width, it is determined that the 4th line feed position of tail portion display line, in tail portion display line
The 4th line feed position on execute line feed, the sub- display line of the sub- display line of the first stem and the second tail portion is obtained, wherein the first stem
6th pixel wide of the sub- display line of the 5th pixel wide and the second tail portion of sub- display line is not more than presetted pixel width.
In the embodiment of the present application, after the branch for completing stem display line, in tail portion, display line is unsatisfactory for display interface
Pixel show when requiring, to after tail portion display line further progress branch and branch the sub- display line of the first stem, the
The pixel wide of the sub- display line of one stem adjusts, and ensure that the pixel wide of stem display line and tail portion display line in preset model
Within enclosing, the integrality of display result is improved to a certain extent.
In order to make it easy to understand, prompt text handling method will be introduced by a detailed process below, please refer to
Fig. 2, Fig. 2 are the flow diagram that text-processing is prompted in application scenarios of the present invention, as shown, specifically:
It is that " title: attribute of an element shows one section of ToolTips text when mouse is moved in element to prompt text
This;Js:javascipt abbreviation is a kind of regime type, weak type, the language based on prototype, built-in support type;Div: page
A kind of tag element in face;Dom: DOM Document Object Model is that the standard of the expansible markup language of processing of W3C Organisation recommendations is compiled
It is illustrated for journey interface ":
201, it when the coordinate points position of mouse is near the object element with text prompt attribute, is created using js
One interim div, and be loaded into dom tree.
202, the prompt text shown in title will be needed to be inserted into div.
203, prompting the pixel overall width totalwidth of text is 3410px, can be prompted in display interface at this time
The pixel wide requiredwidth that text is shown is 320px, calculates the line number num1=that prompt text probably needs to intercept
3410/320=10.65.
204, the total number of characters for prompting text is length=127, calculates the number of characters that text needs to intercept according to this
Num2=length/num1=127/10.65=11.9, determine with 11.9 relatively 11 be the first number of characters, Zhi Houfen
Not by first line feed position be located in " property ", " when ", " sheet ", " i ", " class ", " ", " d ", " label ", " as ", " recommending " and " " 11
After a character.
Due to " i " and " d " by " javascipt " and " div " in two full name in English, if the two first line feed position
Displacement row, then can dismantle English word, influence whether the accuracy of display result, therefore, our being adapted to property by position
The first line feed position after " i " and " d " is advanced to before " javascipt " and " div " the two full name in English, but due to this
In application examples, when before the first line feed position being advanced to javascipt, can obtain ";Js: " display line, will lead to most
Display interface afterwards unsightly, therefore, if part punctuation mark can be deleted in the case where not influencing whole semanteme, or
Meet interface display pixel wide require under, adjustment first line feed position so that part punctuation mark belong to it is previous
In display line, by first line feed position be located in " property ", " when ", ";", " t ", " class ", " ", ";", " label ", " as ", " recommending " and
" " after this 11 characters.
205, prompt text " property ", " when ", " sheet ", ": ", " class ", " ", ";", " label ", " as ", " recommending " and " "
End executes line feed, obtains 11 stem display lines and 1 tail portion display line.
11 stem epideictic behaviours:
Title: attribute of an element
, when mouse is moved in element
Show one section of ToolTips text;
Js:javascipt
Abbreviation, is a kind of dynamic class
Type, weak type, based on prototype
Language, built-in support type;
A kind of div: label in the page
Element;Dom: document object
Model is W3C Organisation recommendations
Processing expansible markup language
1 tail portion epideictic behaviour:
Standard programming interface
206, determine the first pixel wide of each stem display line in 11 stem display lines be respectively as follows: 240px,
345px, 345px, 162px, 282px, 345px, 314px, 324px, 293px, 328px and 345px.
207, each first pixel wide is successively greater than to the first line feed of the stem display line end of presetted pixel width
Position shifts to an earlier date, and obtains the second line feed position, so that the second pixel wide of N number of stem display line is wide no more than presetted pixel
Degree;
It is 320px since the pixel wide requiredwidth that show of prompt text can be carried out, then first appearance the
One pixel wide is greater than the stem display line of presetted pixel width are as follows: ", when mouse is moved in element ", will ", work as mouse
When being moved in element " the first line feed position of end mentions previous character and obtains: ", when mouse is moved in element ", at this time
First pixel wide of the stem display line becomes the second pixel wide, and the second pixel wide is 314, meets the picture of display interface
Element display requires.
Will ", when mouse is moved in element " end the first line feed position mention previous character after, next stem
Display line become " when show one section of ToolTips text;", compared to the first pixel wide before, increase a character pair
The pixel wide answered, at this time will " when show one section of ToolTips text;" end first line feed position mention the first two character, obtain
Arrive: " when show one section of ToolTips ", the first pixel wide of the stem display line becomes the second pixel wide, the second picture at this time
Plain width is 314, and the pixel display for meeting display interface requires.
Will " when show one section of ToolTips text;" end first line feed position mention the first two character after, next
Portion's display line becomes " this;Js:javascipt " increases the corresponding picture of two characters compared to the first pixel wide before
Plain width, the first pixel wide of the stem display line becomes the second pixel wide at this time, and the second pixel wide is 222, still
The pixel display for meeting display interface requires, and does not need to be adjusted the first line feed position.
And so on, each first pixel wide is successively greater than to the first of the stem display line end of presetted pixel width
Line feed position shifts to an earlier date, and obtains the second line feed position, so that the second pixel wide of N number of stem display line is not more than presetted pixel
Width obtains 11 final stem epideictic behaviours:
Title: attribute of an element
, when mouse is moved in element
When show one section of ToolTips text
This;Js:javascipt
Abbreviation, is a kind of dynamic class
Type, is based on prototype at weak type
Language, built-in support type
;A kind of div: mark in the page
Sign element;Dom: document pair
It is W3C tissue as model
The expansible mark of the processing of recommendation
Corresponding tail portion display line becomes:
The standard programming interface of language
The third number of characters of tail portion display line is 9, no more than the 4th pixel wide of the first number of characters and tail portion display line
Less than presetted pixel width, then do not need to be adjusted tail portion display line.
In the embodiment of the present application, after the first line feed position of stem display line end shifts to an earlier date the adjustment of mode, so that
Tail portion display line is increase accordingly, if the third number of characters of tail portion display line is greater than the 4th picture of the first number of characters and tail portion display line
Plain width is greater than presetted pixel width, it is determined that the M third line feed position of tail portion display line;The M of display line the in tail portion
Executes line feed on three line feed positions, obtain a sub- display lines in first tail portion of M+1, wherein the of each sub- display line in first tail portion
Five pixel wides are not more than presetted pixel width, and M is the integer more than or equal to 1;Or
If the third number of characters of tail portion display line is big no more than the 4th pixel wide of the first number of characters and tail portion display line
In presetted pixel width, it is determined that the M third line feed position of tail portion display line;
Line feed is executed on the 4th line feed position of tail portion display line, obtains the sub- display line of the first stem and the second tail portion
Display line, wherein the 6th pixel wide of the sub- display line of the 5th pixel wide and the second tail portion of the sub- display line of the first stem is little
In presetted pixel width.
In the embodiment of the present application, when showing prompt text, on the basis of N number of first line feed position executes line feed, lead to
It crosses and is adjusted the line feed position for the display line end that pixel wide is greater than presetted pixel width, can make N number of preliminary aobvious
Show that capable pixel wide is all not more than presetted pixel width, ensure that the pixel wide of stem display line preset range it
It is interior, the integrality of display result is improved to a certain extent.
Optionally, on the basis of above-mentioned Fig. 1 corresponding one embodiment, prompt text provided in an embodiment of the present invention
It, will be first if the first pixel wide of stem display line is greater than presetted pixel width in the 6th alternative embodiment of processing method
First line feed position of portion display line end shifts to an earlier date, and the second line feed position is obtained, so that the second pixel of stem display line is wide
Degree is not more than presetted pixel width
It circuits sequentially and executes first circulation line feed strategy and second circulation line feed strategy, until the second picture of stem display line
Plain width is not more than presetted pixel width no more than the 7th pixel wide of presetted pixel width and tail portion display line;
First circulation line feed strategy is configured as:
If the first pixel wide of stem display line is greater than presetted pixel width, the first of stem display line end is changed
Line position is set in advance, and the second line feed position is obtained, so that the second pixel wide of stem display line is not more than presetted pixel width;
Second circulation line feed strategy is configured as:
When the 7th pixel wide is greater than presetted pixel width, executes and change on the 5th line feed position of tail portion display line
Row obtains the sub- display line of the second stem and the sub- display line in third tail portion, the sub- display line of the second stem is updated to stem display line,
The sub- display line in third tail portion is updated to tail portion display line;
Correspondingly, execution line feed includes: on the second line feed position of prompt text
Line feed is executed on the second line feed position and the 5th line feed position of prompt text.
In the embodiment of the present application, the positioning strategy of another line feed position is proposed, is not one when executing pre- branch
The positioning of secondary property N number of first line feed position, but behind one first line feed position of every positioning, first carry out the pixel of stem display line
Width adjustment, then carry out the first next line feed position positioning.
In the embodiment of the present application, specifically, being existed in the first line feed position of positioning indicating text according to text hint instructions
Line feed is executed on first line feed position of prompt text, stem display line and tail portion display line is obtained, circuits sequentially execution later
First circulation strategy and second circulation strategy, until stem display line the second pixel wide no more than presetted pixel width and
7th pixel wide of tail portion display line is not more than presetted pixel width.It should be noted that circuit sequentially execution it will be appreciated that
First circulation line feed strategy is first carried out, then executes second circulation line feed strategy, recycles successively execute first circulation line feed later
Strategy, then second circulation line feed strategy is executed, until meeting loop termination condition, end loop.
In the embodiment of the present application, first circulation line feed strategy is configured as: if the first pixel wide of stem display line is big
In presetted pixel width, then the first line feed position of stem display line end is shifted to an earlier date, the second line feed position is obtained, so that first
Second pixel wide of portion's display line is not more than presetted pixel width.
In the embodiment of the present application, if the first pixel wide of stem display line is greater than presetted pixel width, stem is shown
Show that the first line feed position of row end shifts to an earlier date, wherein on how to which the first line feed position of stem display line end can be joined in advance
According to the mode in above-described embodiment, which is not described herein again.It, should after having executed the pixel wide adjustable strategies of stem display line
Stem display line is the display requirement for meeting interface pixel wide, if the pixel wide of tail portion display line meets interface picture at this time
The display requirement of plain width, i.e., the second pixel wide of stem display line is no more than presetted pixel width and tail portion display line
7th pixel wide is not more than presetted pixel width, then circulation terminates, and obtains meeting the display that pixel wide display in interface requires
Row.It is understood that if the pixel wide of tail portion display line is unsatisfactory for the display requirement of interface pixel wide at this time, at this time again
The pixel wide of tail portion display line is adjusted by second circulation line feed strategy.It is understood that executing first circulation
Available the following two kinds result after line feed strategy:
1, the second pixel wide of stem display line is not more than presetted pixel width, and the 7th pixel of tail portion display line is wide
Degree is not more than presetted pixel width;
2, the second pixel wide of stem display line is not more than presetted pixel width, and the 7th pixel of tail portion display line is wide
Degree is greater than presetted pixel width;
If it is above-mentioned the first as a result, the second pixel wide of stem display line is not more than presetted pixel width, and tail portion
7th pixel wide of display line is not more than presetted pixel width, then circulation directly terminates, without continuing to execute second circulation row
Strategy, the available display line for meeting the display of interface pixel wide and requiring.
If above-mentioned second as a result, the second pixel wide of stem display line is not more than presetted pixel width, and tail portion
7th pixel wide of display line is greater than presetted pixel width, then executes second circulation strategy.
In the embodiment of the present application, second circulation line feed strategy is configured as: when the 7th pixel wide is wide greater than presetted pixel
When spending, line feed is executed on the 5th line feed position of tail portion display line, the sub- display line of the second stem is obtained and third tail portion is aobvious
Show row, the sub- display line of the second stem is updated to stem display line, the sub- display line in third tail portion is updated to tail portion display line.This
Apply, when the display that the pixel wide of tail portion display line is unsatisfactory for interface pixel wide requires, needing to tail portion in embodiment
Display line carries out branch, it is to be understood that tail portion display line is after branch, the available new sub- display line of the second stem
With the sub- display line in third tail portion, wherein the pixel wide of the sub- display line of the sub- display line of the second stem and third tail portion is both less than original
The sub- display line of the sub- display line of second stem and third tail portion is determined as new stem display line and tail portion by tail portion display line at this time
Display line, if the pixel wide adjustable strategies of stem display line can be continued to execute, it is to be understood that execute second circulation and change
Available following four kinds of results after row strategy:
1, the second pixel wide of stem display line is not more than presetted pixel width, and the 7th pixel of tail portion display line is wide
Degree is not more than presetted pixel width;
2, the second pixel wide of stem display line is not more than presetted pixel width, and the 7th pixel of tail portion display line is wide
Degree is greater than presetted pixel width;
3, the second pixel wide of stem display line is greater than presetted pixel width, and the 7th pixel wide of tail portion display line
No more than presetted pixel width;
4, the second pixel wide of stem display line is greater than presetted pixel width, and the 7th pixel wide of tail portion display line
Greater than presetted pixel width.
If it is above-mentioned the first as a result, the second pixel wide of stem display line is not more than presetted pixel width, and tail portion
7th pixel wide of display line is not more than presetted pixel width, then circulation directly terminates, without continuing to execute first circulation row
Strategy, the available display line for meeting the display of interface pixel wide and requiring.
If above-mentioned second as a result, the second pixel wide of stem display line is not more than presetted pixel width, and tail portion
7th pixel wide of display line is greater than presetted pixel width, then executes second circulation strategy.
If above-mentioned the third and the 4th kind are as a result, then execute the first line feed strategy.
In the embodiment of the present application, after the branch for completing stem display line, in tail portion, display line is unsatisfactory for display interface
Pixel show when requiring, to tail portion display line further progress branch, tail portion display line is divided into new stem display line
With new tail portion display line, circulation executes first circulation line feed strategy and second circulation line feed strategy, available to meet interface
The display line that pixel wide display requires ensure that the pixel wide of stem display line and tail portion display line in preset range
Within, the integrality of display result is improved to a certain extent.
In order to make it easy to understand, prompt text handling method will be introduced by a detailed process below, please refer to
Fig. 3, Fig. 3 are the flow diagram that text-processing is prompted in application scenarios of the present invention, as shown, specifically:
It is that " title: attribute of an element shows one section of ToolTips text when mouse is moved in element to prompt text
This;Js:javascipt abbreviation is a kind of regime type, weak type, the language based on prototype, built-in support type;Div: page
A kind of tag element in face;Dom: DOM Document Object Model is that the standard of the expansible markup language of processing of W3C Organisation recommendations is compiled
It is illustrated for journey interface ":
301, it when the coordinate points position of mouse is near the object element with text prompt attribute, is created using js
One interim div, and be loaded into dom tree.
302, the prompt text shown in title will be needed to be inserted into div.
303, prompting the pixel overall width totalwidth of text is 3410px, can be prompted in display interface at this time
The pixel wide requiredwidth that text is shown is 320px, calculates the line number num1=that prompt text probably needs to intercept
3410/320=10.65.
304, the total number of characters for prompting text is length=127, calculates the number of characters that text needs to intercept according to this
Num2=length/num1=127/10.65=11.9, determine with 11.9 relatively 11 be the first number of characters, Zhi Houfen
After the first line feed position is not located in " property ".
305, line feed is executed afterwards in " property " of prompt text, obtain stem display line and tail portion display line.
Stem epideictic behaviour:
Title: attribute of an element
Tail portion epideictic behaviour:
, when mouse is moved in element, show one section of ToolTips text;Js:javascipt abbreviation is a kind of dynamic
State type, weak type, the language based on prototype, built-in support type;A kind of div: tag element in the page;Dom: document pair
It is the standard programming interface of the expansible markup language of processing of W3C Organisation recommendations as model
306, it executes first circulation strategy: determining the first pixel wide of stem display line are as follows: 240px, stem is aobvious at this time
Show the first capable pixel wide no more than presetted pixel width.
307, second circulation strategy is executed: when the pixel wide of tail portion display line is greater than presetted pixel width, in tail portion
Line feed is executed on 5th line feed position of display line, the sub- display line of the second stem and the sub- display line in third tail portion are obtained, by second
The sub- display line of stem is updated to stem display line, and the sub- display line in third tail portion is updated to tail portion display line, returns and executes first
Cyclic policy.
It is the 5th line feed position of end positioning for being spaced in tail portion display line according to 11 characters, at this time in the application example
The sub- epideictic behaviour of second stem:
, when mouse is moved in element
The sub- epideictic behaviour in third tail portion:
, show one section of ToolTips text;Js:javascipt abbreviation is a kind of regime type, weak type, based on prototype
Language, built-in support type;A kind of div: tag element in the page;Dom: DOM Document Object Model is W3C Organisation recommendations
Handle the standard programming interface of expansible markup language.
Second stem display line ", when mouse is moved in element " is determined as new stem display line, by third tail
Portion's display line is determined as new tail portion display line, and brings new stem display line and tail portion display line into first circulation strategy
In.
308, and so on, until the second pixel wide of stem display line is aobvious no more than presetted pixel width and tail portion
Show that the 7th capable pixel wide no more than presetted pixel width, obtains final stem epideictic behaviour:
Title: attribute of an element
, when mouse is moved in element
When show one section of ToolTips text
This;Js:javascipt
Abbreviation, is a kind of dynamic class
Type, is based on prototype at weak type
Language, built-in support type
;A kind of div: mark in the page
Sign element;Dom: document pair
It is W3C tissue as model
The expansible mark of the processing of recommendation
Corresponding tail portion epideictic behaviour:
The standard programming interface of language
309, end loop.
In the embodiment of the present application, when showing prompt text, on the basis of N number of first line feed position executes line feed, lead to
It crosses and is adjusted the line feed position for the display line end that pixel wide is greater than presetted pixel width, can make N number of preliminary aobvious
Show that capable pixel wide is all not more than presetted pixel width, ensure that the pixel wide of stem display line preset range it
It is interior, the integrality of display result is improved to a certain extent.
The prompt text processing apparatus in the present invention is described in detail below, referring to Fig. 4, Fig. 4 is that the present invention is real
Prompt text processing apparatus one embodiment schematic diagram in example is applied, prompt text processing apparatus includes:
Receiving module 401, for receiving text hint instructions, text hint instructions are changed for the first of positioning indicating text
Line position is set;
First processing module 402, for prompting the first of text according to the received text hint instructions of receiving module 401
Line feed executes line feed on position, obtains stem display line;
Second processing module 403, if the first pixel wide of the stem display line obtained for first processing module is greater than
First line feed position of stem display line end is then shifted to an earlier date, obtains the second line feed position by presetted pixel width;
Third processing module 404, for being executed on the second line feed position that the Second processing module of prompt text obtains
Line feed.
In the present embodiment, receiving module 401 receives text hint instructions, and text hint instructions are for positioning indicating text
First line feed position, first processing module 402 is according to the received text hint instructions of receiving module 401 the first of prompt text
Line feed executes line feed on position, stem display line is obtained, if the first pixel of the stem display line that first processing module obtains is wide
Degree is greater than presetted pixel width, then Second processing module 403 shifts to an earlier date the first of stem display line end the line feed position, obtains the
Two line feed positions, third processing module 404 are executed on the second line feed position that the Second processing module of prompt text obtains and are changed
Row.
In the embodiment of the present application, a kind of prompt text processing apparatus is provided, receiving module 401 first receives text prompt
Instruction, first line feed position of the text hint instructions for positioning indicating text, then first processing module 402 is according to reception mould
The received text hint instructions of block 401 execute line feed on the first line feed position of prompt text, obtain stem display line, if the
First pixel wide of the stem display line that one processing module obtains is greater than presetted pixel width, then Second processing module 403 will
First line feed position of stem display line end shifts to an earlier date, and obtains the second line feed position, last third processing module 404 is in prompt text
Line feed is executed on the second line feed position that this Second processing module obtains.By the above-mentioned means, when showing prompt text,
On the basis of first line feed position executes line feed, the line feed of the display line end by the way that pixel wide to be greater than to presetted pixel width
Position is adjusted, and the pixel wide of preliminary display line can be made no more than presetted pixel width, ensure that stem display line
Pixel wide within the scope of preset, improve to a certain extent display result integrality.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 4, prompt text-processing provided in an embodiment of the present invention
In another embodiment of device,
First processing module 402, specifically for determining N number of first line feed position in prompt text according to text hint instructions
It sets;
Line feed is executed on N number of first line feed position of prompt text, obtains the N number of first preliminary display line and a tail portion
Display line, the prompt text character number of each first preliminary display line are the first number of characters, the prompt text word of tail portion display line
Symbol number is the second number of characters, and the first number of characters is not less than the second number of characters, and N is the integer greater than 1.
In the embodiment of the present application, the quantity of the first line feed position is multiple, between each first line feed position number of characters
For the first number of characters, and the first number of characters is not less than the second number of characters of tail portion display line, will estimate the number of preferred line feed position
Quantitative change is multiple, it is ensured that when the pixel wide for prompting text is too long, reduces the pixel wide of tail portion display line.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 4, referring to Fig. 5, provided in an embodiment of the present invention mention
Show in another embodiment of text processing apparatus, prompting text processing apparatus further includes obtaining module 501;
Third pixel wide and presetted pixel width that module 501 is used to obtain prompt text are obtained, and determines third picture
The ratio of plain width and presetted pixel width is interception line number;
The second number of characters for obtaining prompt text, determines that the first number of characters, the first number of characters tail exist according to the second number of characters
In the preset range of second number of characters and the ratio of interception line number.
In the embodiment of the present application, in pre- line feed in the selection of the first number of characters of the first line feed position, text will be prompted to
Pixel wide and the preferred presetted pixel width of display interface ratio as pre- interception line number, and determine that the first number of characters exists
In the preset range for prompting the number of characters of text and the ratio of interception line number, prompt text after making pre- line feed is close to last
Branch is as a result, it is possible to reduce subsequent adjustment number, improves treatment effeciency.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 4, prompt text-processing provided in an embodiment of the present invention
In another embodiment of device,
Second processing module 403, it is wide specifically for the first pixel of each stem display line in the N number of stem display line of determination
Degree;
Each first pixel wide is successively greater than to the first line feed position of the stem display line end of presetted pixel width
In advance, N number of second line feed position is obtained.
In the embodiment of the present application, the quantity of the first line feed position is multiple, between each first line feed position number of characters
For the first number of characters, and the first number of characters is not less than the second number of characters of tail portion display line, will estimate the number of preferred line feed position
Quantitative change is multiple, it is ensured that when the pixel wide for prompting text is too long, reduces the pixel wide of tail portion display line.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 3, referring to Fig. 6, provided in an embodiment of the present invention mention
Show in another embodiment of text processing apparatus, prompting text processing apparatus further includes fourth processing module 601;
If the third number of characters that fourth processing module 601 is specifically used for tail portion display line is greater than the first number of characters and tail portion is aobvious
Show that the 4th capable pixel wide is greater than presetted pixel width, it is determined that the M third line feed position of tail portion display line;
Line feed is executed on the M third line feed position of tail portion display line, obtains the M+1 sub- display lines in the first tail portion,
In, the 5th pixel wide of each sub- display line in first tail portion is not more than presetted pixel width, and M is the integer more than or equal to 1.
Correspondingly, third processing module 404 is specifically used for: being changed in N number of second line feed position of prompt text and M third
Line position, which is set, executes line feed.
In the embodiment of the present application, after the branch for completing stem display line, in tail portion, display line is unsatisfactory for display interface
Pixel show when requiring, to the pixel wide tune of tail portion display line further progress branch and the sub- display line in each tail portion
It is whole, it ensure that the pixel wide of stem display line and tail portion display line within the scope of preset, improves aobvious to a certain extent
Show the integrality of result.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 3, prompt text-processing provided in an embodiment of the present invention
In another embodiment of device, prompting text processing apparatus further includes fourth processing module 601;
If third number of characters of the fourth processing module 601 for tail portion display line is not more than the first number of characters and tail portion is shown
The 4th capable pixel wide is greater than presetted pixel width, it is determined that the 4th line feed position of tail portion display line;
Line feed is executed on the 4th line feed position of tail portion display line, obtains the sub- display line of the first stem and the second tail portion
Display line, wherein the 6th pixel wide of the 5th pixel wide sum of the sub- display line of the first stem is not more than presetted pixel width;
Correspondingly, third processing module 404 is specifically used for: in N number of second line feed position of prompt text and the 4th line feed
Position executes line feed.
In the embodiment of the present application, after the branch for completing stem display line, in tail portion, display line is unsatisfactory for display interface
Pixel show when requiring, to after tail portion display line further progress branch and branch the sub- display line of the first stem, the
The pixel wide of the sub- display line of one stem adjusts, and ensure that the pixel wide of stem display line and tail portion display line in preset model
Within enclosing, the integrality of display result is improved to a certain extent.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 4, prompt text-processing provided in an embodiment of the present invention
In another embodiment of device,
First processing module 402 executes first circulation line feed strategy and second circulation line feed plan specifically for circuiting sequentially
Slightly, until seventh pixel wide of the second pixel wide of stem display line no more than presetted pixel width and tail portion display line
No more than presetted pixel width;
First circulation line feed strategy is configured as:
If the first pixel wide of stem display line is greater than presetted pixel width, the first of stem display line end is changed
Line position is set in advance, and the second line feed position is obtained, so that the second pixel wide of stem display line is not more than presetted pixel width;
Second circulation line feed strategy is configured as:
When the 7th pixel wide is greater than presetted pixel width, executes and change on the 5th line feed position of tail portion display line
Row obtains the sub- display line of the second stem and the sub- display line in third tail portion, the sub- display line of the second stem is updated to stem display line,
The sub- display line in third tail portion is updated to tail portion display line;
Correspondingly, fourth processing module is specifically used for: on the second line feed position and the 5th line feed position of prompt text
Execute line feed.
In the embodiment of the present application, after the branch for completing stem display line, in tail portion, display line is unsatisfactory for display interface
Pixel show when requiring, to tail portion display line further progress branch, tail portion display line is divided into new stem display line
With new tail portion display line, circulation executes first circulation line feed strategy and second circulation line feed strategy, available to meet interface
The display line that pixel wide display requires ensure that the pixel wide of stem display line and tail portion display line in preset range
Within, the integrality of display result is improved to a certain extent.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory,
ROM), random access memory (random access memory, RAM), magnetic or disk etc. are various can store program
The medium of code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of prompt text handling method characterized by comprising
Receive text hint instructions, first line feed position of the text hint instructions for positioning indicating text;
Line feed is executed on first line feed position of the prompt text according to the text hint instructions, it is aobvious to obtain stem
Show row;
If the first pixel wide of the stem display line is greater than presetted pixel width, by the of stem display line end
One line feed position shifts to an earlier date, and obtains the second line feed position;
Line feed is executed on second line feed position of the prompt text.
2. the method according to claim 1, wherein described literary in the prompt according to the text hint instructions
Line feed is executed on this first line feed position, obtaining stem display line includes:
N number of first line feed position in the prompt text is determined according to the text hint instructions;
Line feed is executed on N number of first line feed position of the prompt text, obtains the N number of first preliminary display line and one
Tail portion display line, the prompt text character number of each first preliminary display line are the first number of characters, the tail portion display line
Prompt text character number be the second number of characters, first number of characters be not less than second number of characters, the N be greater than 1
Integer.
3. according to the method described in claim 2, it is characterized in that, N number of first in the determination prompt text enters a new line
Before position further include:
The third pixel wide and presetted pixel width of prompt text are obtained, and determines the third pixel wide and described default
The ratio of pixel wide is interception line number;
The second number of characters for obtaining the prompt text, determines the first number of characters, first word according to second number of characters
Number tail is accorded in the preset range of second number of characters and the ratio of the interception line number.
4. according to the method in claim 2 or 3, which is characterized in that if the first pixel wide of the stem display line is big
In presetted pixel width, then the first line feed position of stem display line end is shifted to an earlier date, obtaining the second line feed position includes:
Determine the first pixel wide of each stem display line in N number of stem display line;
Each first pixel wide is successively greater than to the first line feed position of the stem display line end of the presetted pixel width
In advance, N number of second line feed position is obtained.
5. according to the method described in claim 4, it is characterized in that, described successively by each 4th pixel wide greater than described pre-
If the first line feed position of the stem display line end of pixel wide shifts to an earlier date, after obtaining the second line feed position further include:
If the third number of characters of the tail portion display line is greater than the 4th pixel of first number of characters and the tail portion display line
Width is greater than the presetted pixel width, it is determined that the M third line feed position of the tail portion display line;
Line feed is executed on M third line feed positions of the tail portion display line, M+1 the first tail portion is obtained and shows
Row, wherein the 5th pixel wide of each sub- display line in first tail portion is not more than the presetted pixel width, and the M is
Integer more than or equal to 1;
Correspondingly, the execution line feed on second line feed position of prompt text includes:
Line feed is executed in N number of second line feed position of the prompt text and M third line feed positions.
6. according to the method described in claim 4, it is characterized in that, described successively by each 4th pixel wide greater than described pre-
If the first line feed position of the stem display line end of pixel wide shifts to an earlier date, after obtaining the second line feed position further include:
If the third number of characters of the tail portion display line is no more than first number of characters and the 4th picture of the tail portion display line
Plain width is greater than the presetted pixel width, it is determined that the 4th line feed position of the tail portion display line;
Line feed is executed on the 4th line feed position of the tail portion display line, obtains the sub- display line of the first stem and the second tail portion
Display line, wherein the 5th pixel wide and the 6th pixel wide of the sub- display line in First portion are no more than described pre-
If pixel wide;
Correspondingly, the execution line feed on second line feed position of prompt text includes:
Line feed is executed in N number of second line feed position of the prompt text and the 4th line feed position.
7. the method according to claim 1, wherein if the first pixel wide of the stem display line is greater than in advance
If pixel wide, then the first line feed position of stem display line end is shifted to an earlier date, obtaining the second line feed position includes:
It circuits sequentially and executes first circulation line feed strategy and second circulation line feed strategy, until the second picture of the stem display line
Plain width is not more than the default picture no more than the 7th pixel wide of the presetted pixel width and the tail portion display line
Plain width;
The first circulation line feed strategy is configured as:
If the first pixel wide of the stem display line is greater than the presetted pixel width, by stem display line end
First line feed position shift to an earlier date, the second line feed position is obtained, so that the second pixel wide of the stem display line is not more than
Presetted pixel width;
The second circulation line feed strategy is configured as:
When the 7th pixel wide is greater than the presetted pixel width, on the 5th line feed position of the tail portion display line
Line feed is executed, the sub- display line of the second stem and the sub- display line in third tail portion is obtained, the sub- display line of the second stem is updated to
The sub- display line in third tail portion is updated to the tail portion display line by the stem display line;
Correspondingly, the execution line feed on second line feed position of prompt text includes:
Line feed is executed on the second line feed position and the 5th line feed position of the prompt text.
8. a kind of prompt text processing apparatus characterized by comprising
Receiving module, for receiving text hint instructions, first line feed of the text hint instructions for positioning indicating text
Position;
First processing module, for according to the received text hint instructions of receiving module described the of the prompt text
Line feed is executed on one line feed position, obtains stem display line;
Second processing module, if the first pixel wide of the stem display line obtained for the first processing module be greater than it is default
First line feed position of stem display line end is then shifted to an earlier date, obtains the second line feed position by pixel wide;
Third processing module, for being executed on the second line feed position that the Second processing module of the prompt text obtains
Line feed.
9. prompt text processing apparatus according to claim 8, which is characterized in that the first processing module is used for:
N number of first line feed position in the prompt text is determined according to the received text hint instructions of receiving module;
Line feed is executed on N number of first line feed position of the prompt text, obtains the N number of first preliminary display line and one
Tail portion display line, the prompt text character number of each first preliminary display line are the first number of characters, the tail portion display line
Prompt text character number be the second number of characters, first number of characters be not less than second number of characters, the N be greater than 1
Integer.
10. a kind of computer readable storage medium, including instruction, when run on a computer, so that computer executes such as
Method described in any one of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811042800.4A CN109284481B (en) | 2018-09-06 | 2018-09-06 | Prompt text processing method and device and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811042800.4A CN109284481B (en) | 2018-09-06 | 2018-09-06 | Prompt text processing method and device and computer readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109284481A true CN109284481A (en) | 2019-01-29 |
| CN109284481B CN109284481B (en) | 2021-11-19 |
Family
ID=65183808
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811042800.4A Active CN109284481B (en) | 2018-09-06 | 2018-09-06 | Prompt text processing method and device and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109284481B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113705190A (en) * | 2021-09-02 | 2021-11-26 | 北京字节跳动网络技术有限公司 | Text processing method, device and equipment |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030137522A1 (en) * | 2001-05-02 | 2003-07-24 | Kaasila Sampo J. | Innovations for the display of web pages |
| CN102057369A (en) * | 2008-04-15 | 2011-05-11 | Opera软件股份公司 | Method and device for dynamically wrapping text when displaying a selected region of an electronic document |
| CN106331828A (en) * | 2016-08-19 | 2017-01-11 | 暴风集团股份有限公司 | Method and system for adjusting subtitle according to picture |
| CN106873925A (en) * | 2015-12-10 | 2017-06-20 | 北京国双科技有限公司 | The display methods and device of label text |
| CN107783946A (en) * | 2016-08-27 | 2018-03-09 | 上海卓易电子科技有限公司 | Text display method and text display |
-
2018
- 2018-09-06 CN CN201811042800.4A patent/CN109284481B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030137522A1 (en) * | 2001-05-02 | 2003-07-24 | Kaasila Sampo J. | Innovations for the display of web pages |
| CN102057369A (en) * | 2008-04-15 | 2011-05-11 | Opera软件股份公司 | Method and device for dynamically wrapping text when displaying a selected region of an electronic document |
| CN106873925A (en) * | 2015-12-10 | 2017-06-20 | 北京国双科技有限公司 | The display methods and device of label text |
| CN106331828A (en) * | 2016-08-19 | 2017-01-11 | 暴风集团股份有限公司 | Method and system for adjusting subtitle according to picture |
| CN107783946A (en) * | 2016-08-27 | 2018-03-09 | 上海卓易电子科技有限公司 | Text display method and text display |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113705190A (en) * | 2021-09-02 | 2021-11-26 | 北京字节跳动网络技术有限公司 | Text processing method, device and equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109284481B (en) | 2021-11-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10540168B2 (en) | Mobile application webview modification | |
| US10417316B2 (en) | Emphasizing a portion of the visible content elements of a markup language document | |
| CN109614424A (en) | Page layout generation method, calculates equipment and medium at device | |
| CN109408764A (en) | Page area division methods, calculate equipment and medium at device | |
| CN105138340A (en) | Interaction method and system for Native and Web pages | |
| CN109960772A (en) | A kind of method and device identifying front end page design mistake | |
| US20240127510A1 (en) | Stylized glyphs using generative ai | |
| US20150348278A1 (en) | Dynamic font engine | |
| CN104915186B (en) | A kind of method and apparatus making the page | |
| CN111399831A (en) | Page display method and device, storage medium and electronic device | |
| CN110096322A (en) | The method and device of adaptive terminal screen, storage medium, electronic device | |
| US20150205561A1 (en) | Multiple display alignment | |
| CN105205077A (en) | Page layout method, device and system | |
| CN110471657A (en) | The generation method and device of Website page | |
| CN109857388A (en) | Code generating method, device, server and computer-readable medium | |
| CN117495894A (en) | Image generation processing method and electronic equipment | |
| CN105979392A (en) | Webpage display method and browser | |
| CN109284481A (en) | A prompt text processing method, device and computer-readable storage medium | |
| WO2018022266A1 (en) | Scalable vector graphics bundles | |
| CN112346811A (en) | Rendering method and device | |
| CN112734876A (en) | Graph drawing method, graph drawing device, electronic equipment and storage medium | |
| US20060225091A1 (en) | Customizing and personalizing views in content aggregation frameworks | |
| CN112799745B (en) | Page display control method and device | |
| CN112445474B (en) | Display method for long text file name and storage medium | |
| CN109726346B (en) | Page component processing method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |