CN107491422A - Character displaying method, device and electronic equipment - Google Patents
Character displaying method, device and electronic equipment Download PDFInfo
- Publication number
- CN107491422A CN107491422A CN201710693480.8A CN201710693480A CN107491422A CN 107491422 A CN107491422 A CN 107491422A CN 201710693480 A CN201710693480 A CN 201710693480A CN 107491422 A CN107491422 A CN 107491422A
- Authority
- CN
- China
- Prior art keywords
- word
- type face
- adjustment
- face proportion
- font size
- 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; CALCULATING OR 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/109—Font handling; Temporal or kinetic typography
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the present invention provides a kind of character displaying method, device and electronic equipment, wherein, character displaying method includes:The information of word to be shown in reading object is determined, wherein, the information of the word to be shown includes the font of the word to be shown and the initial value of type face proportion;According to the relation between the initial value of the type face proportion and the desired value of corresponding type face proportion, the word to be shown is adjusted;The word after display adjustment.By the embodiment of the present invention, typesetting and the display effect of reading object in a manner of effectively solving that the word in reading object is processed and displayed in the prior art, can be influenceed, the problem of also reading to user has undesirable effect.
Description
Technical field
The present embodiments relate to word processing technical field, more particularly to a kind of character displaying method, device and electronics
Equipment.
Background technology
With the development of computer and Internet technology, people are more and more using electronically being read.For example,
Read using PC, tablet personal computer, mobile phone, electronic reader etc. equipment.
Although the mode of electronic reading greatly facilitates the life of people, reading object (e.g., e-book, electronics text
Part etc.) in character script be largely required for being bought from font manufacturing company, the style difference of font is very big, some
Font shows smaller, and some fonts show especially big.Such case on the one hand influence reading object typesetting and
Display effect, the on the other hand reading also to user have undesirable effect.
Therefore, how the word in reading object is processed and displayed, to improve the typesetting of reading object and display
Effect, the reading experience of user is lifted, turns into urgent problem to be solved.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of character displaying method, device and electronic equipment, to solve existing skill
The mode that the word in reading object is processed and displayed in art, typesetting and the display effect of reading object are influenceed, is also given
The problem of reading of user has undesirable effect.
First aspect according to embodiments of the present invention, there is provided a kind of character displaying method, including:Determine in reading object
The information of word to be shown, wherein, the information of the word to be shown includes the font and word of the word to be shown
The initial value of face rate;According to the relation between the initial value of the type face proportion and the desired value of corresponding type face proportion, to described to be shown
Word be adjusted;The word after display adjustment.
Second aspect according to embodiments of the present invention, there is provided a kind of character display apparatus, including:Determining module, it is used for
The information of word to be shown in reading object is determined, wherein, the information of the word to be shown is including described to be shown
The font of word and the initial value of type face proportion;Adjusting module, the mesh for the initial value according to the type face proportion with corresponding type face proportion
Relation between scale value, the word to be shown is adjusted;Display module, for showing the word after adjusting.
The third aspect according to embodiments of the present invention, there is provided a kind of electronic equipment, including:Processor, memory, communication
Interface and communication bus, the processor, the memory and the communication interface are completed mutual by the communication bus
Communication;The memory is used to deposit an at least executable instruction, and the executable instruction makes the computing device such as the
Operated corresponding to character displaying method described in one side.
Fourth aspect according to embodiments of the present invention, there is provided a kind of computer-readable storage medium, the computer storage are situated between
Matter is stored with:For the executable instruction for the information for determining word to be shown in reading object, wherein, the text to be shown
The information of word includes the font of the word to be shown and the initial value of type face proportion;For the initial value according to the type face proportion with it is right
Relation between the desired value for the type face proportion answered, the executable instruction being adjusted to the word to be shown;For showing
The executable instruction of the word after adjustment.
From above technical scheme, the embodiment of the present invention according to the initial value of the type face proportion of character script in reading object with
Relation between the desired value of type face proportion corresponding to the font, word to be shown is adjusted and shown.Wherein, type face proportion
Initial value be mostly in reading object to type face proportion setting original value, as it was previously stated, may be from font manufacturing company purchase come
Font type face proportion original value, the initial value is possible to not adapt to the typesetting and display of reading object, so as to influence to read
Read typesetting and the display effect of object, it is also possible to preferable reading experience can not be provided the user with.And the desired value of type face proportion
It can be typesetting obtained after big data statistical analysis, that reading object can be lifted and display effect, improve user and read
The data value of experience.It can be seen that using the desired value of type face proportion as foundation, adjusted according to the relation between the initial value and desired value of type face proportion
It is whole and show word, can be in a manner of effectively solving that the word in reading object is processed and displayed in the prior art, shadow
Ring typesetting and the display effect of reading object, the problem of also reading to user has undesirable effect.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments described in inventive embodiments, for those of ordinary skill in the art, it can also be obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is the step flow chart according to a kind of character displaying method of the embodiment of the present invention one;
Fig. 2 is a kind of schematic diagram of type face proportion;
Fig. 3 is the step flow chart according to a kind of character displaying method of the embodiment of the present invention two;
Fig. 4 is the step flow chart according to a kind of character displaying method of the embodiment of the present invention three;
Fig. 5 is a kind of front and rear schematic diagram of word adjustment to be shown in embodiment illustrated in fig. 4;
Fig. 6 is the front and rear schematic diagram of another word adjustment to be shown in embodiment illustrated in fig. 4;
Fig. 7 is the structured flowchart according to a kind of character display apparatus of the embodiment of the present invention four;
Fig. 8 is the structured flowchart according to a kind of character display apparatus of the embodiment of the present invention five;
Fig. 9 is the structural representation according to a kind of electronic equipment of the embodiment of the present invention six.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, below in conjunction with the present invention
Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described reality
It is only part of the embodiment of the embodiment of the present invention to apply example, rather than whole embodiments.Based on the implementation in the embodiment of the present invention
Example, the every other embodiment that those of ordinary skill in the art are obtained, it should all belong to the scope that the embodiment of the present invention is protected.
Specific implementation of the embodiment of the present invention is further illustrated with reference to accompanying drawing of the embodiment of the present invention.
Embodiment one
Reference picture 1, show a kind of step flow chart of according to embodiments of the present invention one character displaying method.
The character displaying method of the present embodiment comprises the following steps:
Step S102:Determine the information of word to be shown in reading object.
Wherein, the information of word to be shown includes the font of word to be shown and the initial value of type face proportion.
In the embodiment of the present invention, reading object can be it is any it is appropriate can be by pair electronically read
As including but is not limited to:E-book, the electronic document (such as TXT documents, DOC documents) that can be opened by appropriate ways.
Word to be shown includes but is not limited to:Chinese character, letter, hiragana, numeral, symbol etc..
As a rule, word is shown by certain font, such as the Song typeface, regular script, and font manufacturing company can be every kind of
Font sets the original value of a corresponding type face proportion, if the original value of the type face proportion of the Song typeface is 0.75, the type face proportion of regular script
Original value is 0.79 etc..The original value generally can not meet text composition and display demand well, can not meet user
Reading requirement.It should be noted that in the embodiment of the present invention, the initial value of type face proportion can be the original of the type face proportion of certain font
Initial value;Can also be the value after being adjusted in some cases, e.g., e-book reading applies the word in e-book is shown
When, the value of the type face proportion after the type face proportion adjustment itself set according to application.
In the embodiment of the present invention, type face proportion uses the area ratio of the literal and body of word, as shown in Figure 2.Fig. 2 is one
The schematic diagram of kind type face proportion, wherein, the square frame that inner dotted line marks is the literal frame of word, and it has been indicated, and word is actual to be taken
Rectangular area;The square frame that outside solid line marks is the body frame of word, and it has indicated word in display (with other words
Between need that there is certain interval) take rectangular area.The area of literal frame and the area ratio of body frame, it is this hair
Type face proportion in bright embodiment.
Step S104:According to the desired value of the initial value of the type face proportion of the font of word to be shown and corresponding type face proportion it
Between relation, word to be shown is adjusted.
Wherein, the desired value of type face proportion corresponding to font can be obtained by those skilled in the art using any appropriate ways
.For example, by obtaining, being obtained according to artificial experience, according to aesthetic feeling of the design after mass users data sampling and statistical analysis
Standard is obtained, according to emulation experiment acquisition, etc., and the embodiment of the present invention is not restricted to this.
The desired value of type face proportion corresponding to font is generally different from the initial value (such as original value) of the font, but in some situations
Under, it is also possible to it is identical.
According to the relation between the initial value and desired value of the type face proportion of font, the adjustment to word to be shown is included but not
It is limited at least one of:Adjustment to font size, the adjustment to word space, the adjustment to line space.It should be noted that
When word vertical array, line space can be understood as column pitch, and the adjustment to line space can be understood as the tune to column pitch
It is whole.By the adjustment to upper several parameters, can with it is more convenient, neatly realize that word adjusts, and same type face proportion can be met
Desired value under a variety of different adjustment demands.
But alternatively it is also possible to it is in advance font size, word space, line space corresponding to the type face proportion setting of every kind of font
Etc. parameter, in the case, the adjustment to word to be shown can also be realized by simply adjusting the type face proportion of font.It is such a
In adjustment mode, the type face proportion of font is corresponding with corresponding parameter setting, realizes more simple.
Step S106:The word after display adjustment.
By the present embodiment, according to the type face proportion corresponding with the font of the initial value of the type face proportion of character script in reading object
Desired value between relation, word to be shown is adjusted and shown.Wherein, the initial value of type face proportion is mostly reading object
In to type face proportion setting original value, as it was previously stated, may be from font manufacturing company purchase come font type face proportion original
Initial value, the initial value are possible to not adapt to the typesetting and display of reading object, so as to influence the typesetting of reading object and display
Effect, it is also possible to preferable reading experience can not be provided the user with.And the desired value of type face proportion can be to be counted through big data
Typesetting obtained after analysis, that reading object can be lifted and display effect, improve the data value of user's reading experience.It can be seen that
Using the desired value of type face proportion as foundation, adjusted according to the relation between the initial value and desired value of type face proportion and show word, can be with
Effectively solve the mode that the word in reading object is processed and displayed in the prior art, influence reading object typesetting and
Display effect, the problem of also reading to user has undesirable effect.
The character displaying method of the present embodiment can be performed by any appropriate equipment with data-handling capacity, including
But it is not limited to:Various terminal equipment (e.g., PC, tablet personal computer, mobile terminal etc.) and server.
Embodiment two
Reference picture 3, show a kind of step flow chart of according to embodiments of the present invention two character displaying method.
Character displaying method in the present embodiment comprises the following steps:
Step S202:Determine the information of word to be shown in reading object.
Wherein, the information of word to be shown includes font, the initial value of the type face proportion of the font of word to be shown.
In the present embodiment, in addition to above- mentioned information, the information also font including word to be shown of word to be shown is big
It is small.Pass through these information, it is possible to achieve to being adjusted flexibly for word to be shown.
But it should be recognized that the font size of word to be shown is optional information.For example, in the embodiment of the present invention
In a kind of alternative, the type face proportion of word to be shown can be adjusted, if the type face proportion is corresponding with corresponding font size
Parameter, then this information of the font size of word to be shown can ignore in this step.
Step S204:According to the pass between the initial value of the type face proportion of word to be shown and the desired value of corresponding type face proportion
System, is adjusted to word to be shown.
, can be according to word to be shown when the information of word to be shown includes the font size of word to be shown
Type face proportion initial value and the desired value of corresponding type face proportion between relation, the font size of word to be shown is adjusted
It is whole., can be according to the type face proportion when the font size to word to be shown is adjusted in a kind of feasible pattern
Difference between initial value and the desired value of corresponding type face proportion, the font size of word to be shown is adjusted.For example, root
According to below equation (1), the font size of word to be shown is adjusted:
(formula 1)
Wherein,Represent extraction of square root;| | expression takes absolute value;The font size of word to be shown2Represent to wait to show
Square of the font size of the word shown, the font size of the word of such display is current font size, namely before adjustment
Font size.
By the above-mentioned means, so that adjustment font size after word can preferably meet typesetting with display the needs of,
Also the reading experience of user can be lifted.It should be noted that the adjustment to font size is not limited to the mode shown in above-mentioned formula,
Can also by those skilled in the art using it is other it is appropriate, adjusted according to the difference between the initial value and desired value of type face proportion
Whole mode, e.g., using the average of difference as according to being adjusted, such as (font size of word to be shown)+(difference it is equal
Value), or, be adjusted according to the result of (font size of word to be shown)+(difference) etc..In addition it is also possible to not
Using difference as foundation, font size, etc. mode is adjusted as corresponding to the font size of word directly is adjusted into type face proportion
It is whole.And by way of above-mentioned formula carries out font size adjustment, on the one hand, be experimentally confirmed its typesetting and display effect more
Better than other manner;On the other hand, adjustment process is more naturally, be more easily accepted by a user.
Alternatively, can also be at least one progress in word space and line space in addition to being adjusted to font size
Adjustment.That is, can according to the relation between the initial value and the desired value of corresponding type face proportion of the type face proportion of word to be shown,
Adjust the font size of word to be shown, and at least one of:Word space, line space.
In a kind of feasible program, if the initial value of the type face proportion of word to be shown is less than the desired value of type face proportion, adjust
The font size and line space of whole word to be shown.That is, when the initial value of type face proportion is less than desired value, while it is big to font
Small and line space is adjusted., may after being adjusted correspondingly to font size when the initial value of type face proportion is less than desired value
Cause line space uncoordinated, the visual experience of user is poor.Therefore, font size and line space are adjusted can be further
Typesetting and display effect are lifted, lifts user's reading experience.And for word space, can be adjusted can also be without adjusting
It is whole.Because in the program, the initial value of type face proportion is less than desired value, and word space space is larger, though adjustment font size after, word it
Between still have sufficient space, therefore, be not adjusted in this programme to word space.But it should be understood by those skilled in the art that
In actual use can also according to the actual requirements using it is any it is appropriate by the way of word space is adjusted.
When the initial value of type face proportion is less than desired value, when adjusting the font size and line space of word to be shown, wherein
Font size can be adjusted according to foregoing font size adjustment mode, be such as adjusted according to the mode of formula (1), and
For line space, then ratio can be adjusted according to the font size of word to be shown and the line space of setting, to be shown
The line space of word is adjusted.Wherein, line space adjustment ratio can be appropriate according to actual conditions by those skilled in the art
Set, any appropriate numerical value being such as arranged in 0.6-0.7, e.g., line space is adjusted to 0.63 × word of word to be shown
Body size (font size before adjustment).
In another feasible program, if the initial value of the type face proportion of word to be shown is more than the desired value of type face proportion,
Adjust the font size, word space and line space of word to be shown.That is, type face proportion initial value be more than desired value situation
Under, font size, word space and line space can be adjusted simultaneously.Wherein, can be according to foregoing word for font size
Body size adjustment mode is adjusted, and is such as adjusted according to the mode of formula (1);, can be according to be shown for word space
Word adjustment after font size and the font size before adjustment, (e.g., the word space of word to be shown is adjusted
It is adjusted to:The font size after font size-adjustment before adjustment, but not limited to this, the word space of setting can also be adjusted to,
Etc.);For line space, can according to the font size after the adjustment of word to be shown and the font size before adjustment, with
And the line space adjustment ratio of setting, the line space of word to be shown is adjusted.Wherein, line space adjustment ratio can be with
It is appropriately arranged with by those skilled in the art according to actual conditions, any appropriate numerical value being such as arranged in 0.6-0.7.
When the initial value of type face proportion is more than desired value, the word space that is determined based on original larger type face proportion and in the ranks
Away from, be able to not may adapt to font size adjustment after word, therefore, font size, word space and line space can be entered
Row adjustment, to optimize text composition and display effect, lift user's reading experience.
Wherein it is possible to according to below equation (2), in the case of being more than desired value to the initial value of type face proportion, word to be shown
Line space is adjusted, as follows:
The font of the word before line space=(the line space adjustment ratio of 1+ settings) × adjustment after formula (2) adjustment
The font size of word after size-adjustment.
But not limited to this, the line space that other appropriate, suitable for type face proportion initial values are more than in the case of desired value adjust
Mode is equally applicable, and e.g., is directly adjusted to the setting multiple of former line space or is directly adjusted to the line space value of a certain setting
Etc..
By said process, the word realized in reading object is carried out with more flexible, bandwagon effect better way
Displaying.Even for the desired value of same type face proportion, the not people having the same aspiration and interest to font size, word space and line space can also be passed through
It is whole, a variety of different typesettings and bandwagon effect are realized, better adapts to displaying demand.
But aforesaid way is not limited to, can also if being provided with corresponding type face proportion parameter in advance for the desired value of type face proportion
Adjustment to word to be shown is realized by type face proportion parameter.That is, in the initial value of the type face proportion according to word to be shown
With the relation between the desired value of corresponding type face proportion, when being adjusted to word to be shown, can also obtain described literal
Type face proportion parameter corresponding to the desired value of rate, wherein, type face proportion parameter includes:In font size, word space and line space extremely
It is few one;According to the relation between the initial value of the type face proportion and the desired value of corresponding type face proportion, and the type face proportion obtained
Parameter, the type face proportion of word to be shown is adjusted.Such as, when type face proportion is 0.75, in corresponding type face proportion parameter, font
Size is A1, word space B1, line space C1;When type face proportion is 0.85, in corresponding type face proportion parameter, font size is
A2, word space B2, line space C2;When type face proportion is 0.95, in corresponding type face proportion parameter, between font size A3, word
Away from for B3, line space C3.If the initial value of type face proportion is 0.75, the desired value of type face proportion is 0.85, then needing will be to be shown
The font size of word is adjusted to A2, word space from B1 is adjusted to B2, line space is adjusted to C2 from C1 from A1;And if type face proportion
Initial value is 0.95, and the desired value of type face proportion is 0.85, then needs the font size of word to be shown being adjusted to A2, word from A3
Spacing is from B3 is adjusted to B2, line space is adjusted to C2 from C3.This mode is realized simply, is regulated the speed also faster.
Step S206:Word after display adjustment.
Such as, word is shown by the font size after adjustment, or, by the font size after adjustment, word space and line space
Show word etc..
Step S208:Operated according to the adjustment of the word to display, obtain adjustment operation information, also, adjustment is operated
Information reporting server.
Even if word to be shown is adjusted as previously described excessively, but result is it is possible to can not make user completely full
Meaning.For such a situation, the option of operation that can be interacted can also be provided, so that user carries out further adjustment operation.For
Adjustment operation in the case of this kind, corresponding adjustment operation information can be obtained and report server, thought subsequently to corresponding ginseng
Several adjustment are further optimized.
In a kind of feasible pattern, it can provide the user for adjusting font size, word space and the operation of line space
Option, based on this, it can be grasped according at least one adjustment in the font size, word space, line space of the word to display
Make, obtain the first adjustment operation information, and the first adjustment operation information is reported into server.Wherein, the first adjustment operation information
Including at least one of:The word space after font size, adjustment after adjustment, the line space after adjustment.
In another feasible pattern, the option of operation for adjusting type face proportion, each type face proportion can be provided the user
Corresponding type face proportion parameter is corresponding with, including:Font size, word space and line space., can be according to display based on this
The adjustment operation of the type face proportion of word, the second adjustment operation information is obtained, and the second adjustment operation information is reported into server.Its
In, the second adjustment operation information includes:Type face proportion after adjustment, or, corresponding to the type face proportion after adjustment between font size, word
Away from and line space.
If server is based on the above-mentioned first adjustment operation information and/or the second adjustment operation information, to corresponding adjustment plan
Slightly or parameter has carried out renewal adjustment, can re-issue to corresponding electronic equipment.
Step S210:Obtain new word adjusting parameter;Using word adjusting parameter, the word of display is adjusted.
Wherein, word adjusting parameter includes:The type face proportion of word, or, word adjusting parameter includes:The font of word is big
Small, word space and line space.
As it was previously stated, if server is based on the above-mentioned first adjustment operation information and/or the second adjustment operation information, generate
New word adjusting parameter, the word adjusting parameter can be handed down to corresponding electronic equipment, with to the tune in electronic equipment
Whole strategy or parameter are also updated and adjusted.
In a kind of alternative, it can also include in the first adjustment operation information and/or the second adjustment operation information
Accounts information corresponding to reading object, such as account identification, in the case, the corresponding operation information that adjusts can be believed with account
Breath establishes incidence relation, to realize that the personalized word of the account user of account information instruction adjusts.Such as, user " Zhang San " exists
In 10 reading processes, there are 9 meetings further to adjust the word after the adjustment of display, e.g., increase font size, then
It is considered that " Zhang San " more prefers to big font.For user " Zhang San ", word to be shown in reading object is carried out
During adjustment, it is possible to distinguish in other users, font size is adjusted so as to bigger.Thus, it is possible to realize the personalization of different user
Word adjusts.
In the case of this kind, when obtaining new word adjusting parameter, accounts information corresponding to reading object can be first determined;
Obtain new word adjusting parameter corresponding with account information;The word adjusting parameter of acquisition is reused, adjusts the text of display
Word.Also, in the case of this kind, the first adjustment operation information and/or the second adjustment operation information can be with upload servers, can also
Electronic equipment local is stored in, is adjusted by electronic equipment in the personalized word for locally realizing user.
By the present embodiment, the adjustment of flexible word to be shown is realized, effectively increases the typesetting of reading object
And display effect, and it is possible to realize the personalized word adjustment of user, greatly improve the reading experience of user.
The character displaying method of the present embodiment can be performed by any appropriate equipment with data-handling capacity, including
But it is not limited to:Various terminal equipment (e.g., PC, tablet personal computer, mobile terminal etc.) and server.
Embodiment three
Reference picture 4, show a kind of step flow chart of according to embodiments of the present invention three character displaying method.
In the present embodiment, by taking e-book as an example, text importing scheme provided by the invention is illustrated.But this area skill
Art personnel are it should be understood that other reading objects can also refer to the text importing scheme that the present embodiment realizes the present invention.
The character displaying method of the present embodiment comprises the following steps:
Step S302:Obtain font, current type face proportion and the current font size of word to be shown in e-book.
Wherein, current type face proportion is the initial value of type face proportion, and every kind of font is corresponding with type face proportion;Each font size is corresponding with phase
The font size answered, it is believed that font size is a kind of form of expression of font size.
Wherein, current type face proportion can obtain instrument by any appropriate type face proportion and obtain.
Step S304:Determine type face proportion standard value corresponding to the font of word to be shown.
In this example, using the desired value of type face proportion standard value expression type face proportion, but it should be understood by those skilled in the art that
The type face proportion standard value can be appropriately arranged with according to actual conditions, and it can have unique value, can not also be unique.
Step S306:According to the relation between current type face proportion and the type face proportion standard value of word to be shown, adjustment is treated
The word of display, and show the word after adjustment.
According to the relation between current type face proportion and the type face proportion standard value of word to be shown, word to be shown is adjusted
It can include:
If current type face proportion is less than type face proportion standard value, the value of font size is adjusted to:Math.sqrt ((1+ words
Face rate standard value-current type face proportion) font size corresponding to the current font sizes of font size * corresponding to the current font sizes of *);Word space
Value do not adjust;The value of line space is adjusted to:Font size corresponding to the current font sizes of 0.63*.
If current type face proportion is more than type face proportion standard value, the value of font size is adjusted to:Math.sqrt ((1+ words
Face rate standard value-current type face proportion) font size corresponding to the current font sizes of font size * corresponding to the current font sizes of *);Word space
Value be adjusted to:Font size after font size-adjustment corresponding to current font size;The value of line space is adjusted to:(1+0.63)*
Font size after font size-adjustment corresponding to current font size.
If current type face proportion is equal to type face proportion standard value, it is not necessary to adjust current font size, word space and line space.
Wherein, Math.sqrt () is a kind of method in Java language, and it returns to the value of a positive square root.This example
In, using Java language as exemplary illustration, it should be understood by those skilled in the art that different language asks for subduplicate mode not
Together, accommodation.
In addition, type face proportion standard value could be arranged to the numerical value between 0.75-0.95, line space adjustment ratio can be set
Numerical value between 0.6-0.7.In this example, type face proportion standard value default setting is 0.85, and line space adjustment ratio setting is
0.63, it is generally the case that the two values can be issued by server dynamic, can also carry out subsequent modification.It is of course also possible to
It is locally stored and is used within a period of time.
A kind of front and rear schematic diagram of word adjustment to be shown is as shown in figure 5, in Fig. 5, current word corresponding to current font
Face rate is 0.55, and type face proportion standard value is 0.85, and the text importing before adjustment is as shown in left side interface in Fig. 5, the text after adjustment
Word is shown as shown in right side interface in Fig. 5, it is seen then that font size and line space are changed, and the impression of adjustment after-vision is more
Comfortable, Consumer's Experience is more preferable.
The front and rear schematic diagram of another word adjustment to be shown is current corresponding to current font as shown in fig. 6, in Fig. 6
Type face proportion is 0.95, and type face proportion standard value is 0.85, and the text importing before adjustment is as shown in the interface of Fig. 6 left sides, the text after adjustment
Word is shown as shown in right side interface in Fig. 6, it is seen then that font size, word space and line space are changed, and adjust after-vision
Experience more comfortable, Consumer's Experience is more preferable.
By said process, when showing that eBook content or user select certain font to show e-book by default font
During content, can according to current type face proportion and type face proportion standard value dynamic calculation font size, word space and line space etc., and then
Render text page and show.
Step S308:Receive user to operate the adjustment again that the word after having adjusted is carried out, and report the adjustment to operate
Adjustment operation information.
After trained word is shown, it can continue to monitor whether user has further carried out such as changing word
Number, the adjustment of line space operation, if user has carried out adjustment operation, will adjust accordingly operation information (as the font size after adjusting,
Line space) server is reported, and then can be further processed by server such as statistical analysis, corresponding ginseng is updated with optimization
Several values, such as font size, type face proportion desired value.
In addition, after trained word is shown, can also monitor user whether further manually adjusted it is literal
Rate.In such a mode, for current font, the acquiescence bandwagon effect and adjustment option such as progress bar of type face proportion can be provided, is used
Family can adjust progress bar, and each value of progress bar is corresponding with font size, word space and line space, after user's adjustment terminates,
The value of type face proportion after the adjustment of user can be reported to server, so can be further processed by server as
Statistical analysis, the value of relevant parameter, such as font size, type face proportion desired value are updated with optimization.
By the present embodiment, according to current type face proportion and the type face proportion standard value of font, current font is calculated with more excellent effect
Font size, word space and the line space of fruit displaying, and dynamic is adjusted, so as to carry out the reading of reading object for user
When, there is provided comfortable font size, word space and line space, make user can under the font of different type face proportions when reading
Reach more comfortable reading experience.Also, the approach for further manually adjusting and checking font bandwagon effect is provided a user.
And then according to the monitoring that whether dynamically have adjusted font size, word space, line space etc. again to user, behaviour will be adjusted accordingly
Make information reporting server, after server has carried out the further processing such as data analysis, in that case it can be decided that the corresponding adjustment of amendment
Strategy and parameter, realize the continuous intelligence amendment to word adjustment.
The character displaying method of the present embodiment can be performed by any appropriate equipment with data-handling capacity, including
But it is not limited to:Various terminal equipment (e.g., PC, tablet personal computer, mobile terminal etc.) and server.
Example IV
Reference picture 7, show a kind of structured flowchart of according to embodiments of the present invention four character display apparatus.
The character display apparatus of the present embodiment includes:Determining module 402, for determining word to be shown in reading object
Information, wherein, the information of word to be shown includes the font of word to be shown and the initial value of type face proportion;Adjusting module
404, for the relation between the initial value according to type face proportion and the desired value of corresponding type face proportion, word to be shown is adjusted
It is whole;Display module 406, for showing the word after adjusting.
By the character display apparatus of the present embodiment, according to the initial value of the type face proportion of character script in reading object and the word
Relation between the desired value of type face proportion corresponding to body, word to be shown is adjusted and shown.Wherein, the original of type face proportion
Value is mostly to the original value of type face proportion setting in reading object, may be such as the literal of the font come from the purchase of font manufacturing company
The original value of rate, the initial value are possible to not adapt to the typesetting and display of reading object, so as to influence the typesetting of reading object
And display effect, it is also possible to preferable reading experience can not be provided the user with.And the desired value of type face proportion can be through big number
Typesetting obtained after analyzing according to statistics, that reading object can be lifted and display effect, improve the data value of user's reading experience.
It can be seen that using the desired value of type face proportion as foundation, adjusted according to the relation between the initial value and desired value of type face proportion and show word,
In a manner of effectively solving that the word in reading object is processed and displayed in the prior art, the row of reading object can be influenceed
Version and display effect, the problem of also reading to user has undesirable effect.
Embodiment five
Reference picture 8, show a kind of structured flowchart of according to embodiments of the present invention five character display apparatus.
The character display apparatus of the present embodiment includes:Determining module 502, for determining word to be shown in reading object
Information, wherein, the information of word to be shown includes the font of word to be shown and the initial value of type face proportion;Adjusting module
504, for the relation between the initial value according to the type face proportion and the desired value of corresponding type face proportion, word to be shown is entered
Row adjustment;Display module 506, for showing the word after adjusting.
Alternatively, the information of word to be shown also includes:The font size of word to be shown;Adjusting module 504 wraps
Include:First adjustment submodule 5042, for the pass between the initial value according to the type face proportion and the desired value of corresponding type face proportion
System, is adjusted to the font size of word to be shown.
Alternatively, the first adjustment submodule 5042 is used for the target of initial value and corresponding type face proportion according to the type face proportion
Relation between value, also, according to the difference between the initial value and the desired value of corresponding type face proportion of the type face proportion, treat aobvious
The font size of the word shown is adjusted.
Alternatively, the first adjustment submodule 5042 is used for the target of initial value and corresponding type face proportion according to the type face proportion
Relation between value, also, according to below equation, the font size of word to be shown is adjusted:
Wherein,Represent extraction of square root;| | expression takes absolute value;The font size of word to be shown2Represent to wait to show
Square of the font size of the word shown.
Alternatively, the first adjustment submodule 5042 is used for the target of initial value and corresponding type face proportion according to the type face proportion
Relation between value, adjust the font size of word to be shown, and at least one of:Word space, line space.
Alternatively, if the first adjustment submodule 5042 is used for desired value of the initial value less than type face proportion of the type face proportion,
Adjust the font size and line space of word to be shown.
Alternatively, if the first adjustment submodule 5042 is used for desired value of the initial value less than type face proportion of the type face proportion,
The font size of word to be shown is adjusted, also, is adjusted according to the font size of word to be shown and the line space of setting
Ratio, the line space of word to be shown is adjusted.
Alternatively, if the first adjustment submodule 5042 is used for target of the initial value more than the type face proportion of the type face proportion
Value, then adjust the font size, word space and line space of word to be shown.
Alternatively, if the first adjustment submodule 5042 is used for target of the initial value more than the type face proportion of the type face proportion
Value, then adjust the font size of word to be shown, also, according to the font size after the adjustment of word to be shown and adjustment
Preceding font size, the word space of word to be shown is adjusted;It is big according to the font after the adjustment of word to be shown
Font size before small and adjustment, and the line space adjustment ratio of setting, are adjusted to the line space of word to be shown.
Alternatively, the first adjustment submodule 5042 is adjusted according to below equation to the line space of word to be shown:
Word after font size-adjustment of the word before line space=(the line space adjustment ratio of 1+ settings) × adjustment after adjustment
Font size.
Alternatively, adjusting module 504 also includes:Second adjustment submodule 5044, for obtaining the target of the type face proportion
Type face proportion parameter corresponding to value, wherein, type face proportion parameter includes:It is at least one in font size, word space and line space;Root
According to the relation between the initial value and the desired value of corresponding type face proportion of the type face proportion, and the type face proportion parameter obtained, treat
The type face proportion of the word of display is adjusted.
Alternatively, the character display apparatus of the present embodiment also includes:First adjustment operation information module 508, for basis
At least one adjustment in the font size, word space, line space of the word of display is operated, obtains the first adjustment operation letter
Breath, wherein, the first adjustment operation information includes at least one of:The word space after font size, adjustment after adjustment, adjustment
Line space afterwards;First adjustment operation information is reported into server.
Alternatively, the character display apparatus of the present embodiment also includes:Second adjustment operation information module 510, for basis
Adjustment to the type face proportion of the word of display operates, and obtains the second adjustment operation information, wherein, the second adjustment operation information bag
Include:Type face proportion after adjustment, or, font size, word space and line space corresponding to the type face proportion after adjustment;By the second adjustment
Operation information reports server.
Alternatively, the character display apparatus of the present embodiment also includes:Update module 512, for obtaining new word adjustment
Parameter, wherein, word adjusting parameter includes:The type face proportion of word, or, word adjusting parameter includes:The font size of word,
Word space and line space;Using word adjusting parameter, the word of display is adjusted.
Alternatively, update module 512 is used to determine accounts information corresponding to reading object;Obtain corresponding with accounts information
New word adjusting parameter;Using word adjusting parameter, the word of display is adjusted.
The character display apparatus of the present embodiment is used to realize corresponding character displaying method in aforesaid plurality of embodiment of the method,
And the beneficial effect with corresponding embodiment of the method, it will not be repeated here.
Embodiment six
Reference picture 9, the structural representation of according to embodiments of the present invention six a kind of electronic equipment is shown, the present invention is specifically
Embodiment is not limited the specific implementation of electronic equipment.
As shown in figure 9, the electronic equipment can include:Processor (processor) 602, communication interface
(Communications Interface) 604, memory (memory) 606 and communication bus 608.
Wherein:
Processor 602, communication interface 604 and memory 606 complete mutual communication by communication bus 608.
Communication interface 604, for being communicated with the network element of other electronic equipments.
Processor 602, for configuration processor 610, it can specifically perform the correlation in above-mentioned character displaying method embodiment
Step.
Specifically, program 610 can include program code, and the program code includes computer-managed instruction.
Processor 602 is probably central processor CPU, or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or it is arranged to implement the integrated electricity of one or more of the embodiment of the present invention
Road.The one or more processors that electronic equipment includes, can be same type of processor, such as one or more CPU;Also may be used
To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 606, for depositing program 610.Memory 606 may include high-speed RAM memory, it is also possible to also include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 610 specifically can be used for so that processor 602 performs following operation:Determine text to be shown in reading object
The information of word, wherein, the information of word to be shown includes the font of word to be shown and the initial value of type face proportion;According to described
Relation between the initial value of type face proportion and the desired value of corresponding type face proportion, word to be shown is adjusted;Display adjustment
Word afterwards.
In a kind of optional embodiment, the information of word to be shown also includes:The font of word to be shown is big
It is small;Program 610 is additionally operable to cause processor 602 between the initial value according to the type face proportion and the desired value of corresponding type face proportion
Relation, when being adjusted to word to be shown, according to the desired value of the initial value of the type face proportion and corresponding type face proportion it
Between relation, the font size of word to be shown is adjusted.
In a kind of optional embodiment, program 610 is additionally operable to cause processor 602 in the word to word to be shown
When body size is adjusted, according to the difference between the initial value of the type face proportion and the desired value of corresponding type face proportion, treat aobvious
The font size of the word shown is adjusted.
In a kind of optional embodiment, program 610 is additionally operable to cause processor 602 in the original according to the type face proportion
Value and the difference between the desired value of corresponding type face proportion, when being adjusted to the font size of word to be shown, according to
Lower formula, is adjusted to the font size of word to be shown:
Wherein,Represent extraction of square root;| | expression takes absolute value;The font size of word to be shown2Represent to wait to show
Square of the font size of the word shown.
In a kind of optional embodiment, program 610 is additionally operable to cause processor 602 in the original according to the type face proportion
Value and the relation between the desired value of corresponding type face proportion, when being adjusted to the font size of word to be shown, according to institute
The relation between the initial value of type face proportion and the desired value of corresponding type face proportion is stated, adjusts the font size of word to be shown, with
And at least one of:Word space, line space.
In a kind of optional embodiment, program 610 is additionally operable to cause processor 602 in the original according to the type face proportion
Value and the relation between the desired value of corresponding type face proportion, adjust the font size of word to be shown, and it is following at least it
One:When word space, line space, if the initial value of the type face proportion is less than the desired value of the type face proportion, text to be shown is adjusted
The font size and line space of word.
In a kind of optional embodiment, program 610 is additionally operable to cause processor 602 adjusting word to be shown
During line space, ratio is adjusted according to the font size of word to be shown and the line space of setting, to the row of word to be shown
Spacing is adjusted.
In a kind of optional embodiment, program 610 is additionally operable to cause processor 602 in the original according to the type face proportion
Value and the relation between the desired value of corresponding type face proportion, adjust the font size of word to be shown, and it is following at least it
One:When word space, line space, if the initial value of the type face proportion is more than the desired value of the type face proportion, text to be shown is adjusted
Font size, word space and the line space of word.
In a kind of optional embodiment, program 610 is additionally operable to cause processor 602 adjusting word to be shown
When word space and line space, according to the font size after the adjustment of word to be shown and the font size before adjustment, treat aobvious
The word space of the word shown is adjusted;It is big according to the font size after the adjustment of word to be shown and the font before adjustment
It is small, and the line space adjustment ratio of setting, the line space of word to be shown is adjusted.
In a kind of optional embodiment, program 610 is additionally operable to cause processor 602 according to word to be shown
The font size before font size and adjustment after adjustment, and the line space adjustment ratio of setting, to word to be shown
When line space is adjusted, according to below equation, the line space of word to be shown is adjusted:Line space after adjustment=
The font size of word after font size-adjustment of word before (the line space adjustment ratio of 1+ settings) × adjustment.
In a kind of optional embodiment, program 610 is additionally operable to cause processor 602 in the original according to the type face proportion
Value and the relation between the desired value of corresponding type face proportion, when being adjusted to word to be shown, obtain the type face proportion
Type face proportion parameter corresponding to desired value, wherein, type face proportion parameter includes:At least one in font size, word space and line space
It is individual;According to the relation between the initial value of the type face proportion and the desired value of corresponding type face proportion, and the type face proportion parameter obtained,
The type face proportion of word to be shown is adjusted.
In a kind of optional embodiment, program 610 is additionally operable to cause processor 602 according to the word to display
Font size, word space, at least one adjustment operation in line space, obtain the first adjustment operation information, wherein, first
Adjustment operation information includes at least one of:The word space after font size, adjustment after adjustment, the line space after adjustment;
First adjustment operation information is reported into server.
In a kind of optional embodiment, program 610 is additionally operable to cause word of the processor 602 according to the word to display
The adjustment operation of face rate, the second adjustment operation information is obtained, wherein, the second adjustment operation information includes:Type face proportion after adjustment,
Or font size, word space and line space corresponding to the type face proportion after adjustment;Second adjustment operation information is reported into service
Device.
In a kind of optional embodiment, program 610 is additionally operable to so that processor 602 obtains new word adjustment ginseng
Number, wherein, the word adjusting parameter includes:The type face proportion of word, or, the word adjusting parameter includes:The word of word
Body size, word space and line space;Using the word adjusting parameter, the word of display is adjusted.
In a kind of optional embodiment, program 610 is additionally operable to cause processor 602 obtaining new word adjustment ginseng
During number, accounts information corresponding to reading object is determined;Obtain new word adjusting parameter corresponding with the accounts information.
In program 610 specific implementation of each step may refer to corresponding steps in above-mentioned character displaying method embodiment and
Corresponding description, will not be described here in unit.It is apparent to those skilled in the art that for description convenience and
Succinctly, the specific work process of the equipment of foregoing description and module, the corresponding process that may be referred in preceding method embodiment are retouched
State, will not be repeated here.
By the electronic equipment of the present embodiment, according to the initial value of the type face proportion of character script in reading object and the font pair
Relation between the desired value for the type face proportion answered, word to be shown is adjusted and shown.Wherein, the initial value of type face proportion is more
For in reading object to type face proportion setting original value, as may be from font manufacturing company purchase come font type face proportion
Original value, the initial value are possible to not adapt to the typesetting and display of reading object, so as to influence the typesetting of reading object and show
Show effect, it is also possible to preferable reading experience can not be provided the user with.And the desired value of type face proportion can be to be united through big data
Typesetting obtained after meter analysis, that reading object can be lifted and display effect, improve the data value of user's reading experience.Can
See, using the desired value of type face proportion as foundation, adjusted according to the relation between the initial value and desired value of type face proportion and show word, can
In a manner of effectively solving that the word in reading object is processed and displayed in the prior art, the typesetting of reading object is influenceed
And display effect, the problem of also reading to user has undesirable effect.
It may be noted that according to the needs of implementation, all parts/step described in the embodiment of the present invention can be split as more
Multi-part/step, the part operation of two or more components/steps or components/steps can be also combined into new part/step
Suddenly, to realize the purpose of the embodiment of the present invention.
Above-mentioned method according to embodiments of the present invention can be realized in hardware, firmware, or be implemented as being storable in note
Software or computer code in recording medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk), or it is implemented through net
The original storage that network is downloaded is in long-range recording medium or nonvolatile machine readable media and will be stored in local recording medium
In computer code, can be stored in using all-purpose computer, application specific processor or can compile so as to method described here
Such software processing in journey or the recording medium of specialized hardware (such as ASIC or FPGA).It is appreciated that computer, processing
Device, microprocessor controller or programmable hardware include can storing or receive software or computer code storage assembly (for example,
RAM, ROM, flash memory etc.), when the software or computer code are by computer, processor or hardware access and when performing, realize
Character displaying method described here.In addition, when all-purpose computer is accessed for realizing the character displaying method being shown in which
During code, the execution of code is converted to all-purpose computer the dedicated computing for performing the character displaying method being shown in which
Machine.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and method and step, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the embodiment of the present invention.
Embodiment of above is merely to illustrate the embodiment of the present invention, and is not the limitation to the embodiment of the present invention, relevant skill
The those of ordinary skill in art field, in the case where not departing from the spirit and scope of the embodiment of the present invention, it can also make various
Change and modification, therefore all equivalent technical schemes fall within the category of the embodiment of the present invention, the patent of the embodiment of the present invention
Protection domain should be defined by the claims.
Claims (32)
1. a kind of character displaying method, including:
The information of word to be shown in reading object is determined, wherein, the information of the word to be shown is waited to show including described
The font of the word shown and the initial value of type face proportion;
According to the relation between the initial value of the type face proportion and the desired value of corresponding type face proportion, the word to be shown is entered
Row adjustment;
The word after display adjustment.
2. according to the method for claim 1, wherein, the information of the word to be shown also includes:Word to be shown
Font size;
Relation between the initial value according to the type face proportion and the desired value of corresponding type face proportion, to the text to be shown
Word is adjusted, including:
According to the relation between the initial value of the type face proportion and the desired value of corresponding type face proportion, to the word to be shown
Font size is adjusted.
3. according to the method for claim 2, wherein, the font size to the word to be shown is adjusted,
Including:
According to the difference between the initial value of the type face proportion and the desired value of corresponding type face proportion, to the word to be shown
Font size is adjusted.
4. according to the method for claim 3, wherein, the mesh of the initial value according to the type face proportion and corresponding type face proportion
Difference between scale value, the font size of the word to be shown is adjusted, including:
According to below equation, the font size of the word to be shown is adjusted:
The font size of word to be shown after adjustment=
Wherein,Represent extraction of square root;| | expression takes absolute value;The font size of word to be shown2Represent text to be shown
Square of the font size of word.
5. the method according to claim 3 or 4, wherein, the initial value according to the type face proportion and corresponding type face proportion
Desired value between relation, the font size of the word to be shown is adjusted, including:
According to the relation between the initial value of the type face proportion and the desired value of corresponding type face proportion, the word to be shown is adjusted
Font size, and at least one of:Word space, line space.
6. the method according to claim 11, wherein, the desired value according to the initial value of the type face proportion with corresponding type face proportion
Between relation, adjust the font size of the word to be shown, and at least one of:Word space, line space, bag
Include:
If the initial value of the type face proportion is less than the desired value of the type face proportion, the font size of the word to be shown is adjusted
And line space.
7. the method according to claim 11, wherein, the line space of the adjustment word to be shown, including:
Ratio is adjusted according to the font size of the word to be shown and the line space of setting, to the word to be shown
Line space is adjusted.
8. the method according to claim 11, wherein, the desired value according to the initial value of the type face proportion with corresponding type face proportion
Between relation, adjust the font size of the word to be shown, and at least one of:Word space, line space, bag
Include:
If the initial value of the type face proportion is more than the desired value of the type face proportion, the font for adjusting the word to be shown is big
Small, word space and line space.
9. the method according to claim 11, wherein, the word space and line space of the adjustment word to be shown, including:
According to the font size after the adjustment of the word to be shown and the font size before adjustment, to the text to be shown
The word space of word is adjusted;
According to the font size after the adjustment of the word to be shown and the font size before adjustment, and the line space of setting
Adjustment ratio, the line space of the word to be shown is adjusted.
10. according to the method for claim 9, wherein, according to the font size after the adjustment of the word to be shown and
Font size before adjustment, and the line space adjustment ratio of setting, are adjusted to the line space of the word to be shown,
Including:
According to below equation, the line space of the word to be shown is adjusted:
After font size-adjustment of the word before line space=(the line space adjustment ratio of 1+ settings) × adjustment after adjustment
The font size of word.
11. the method according to claim 11, wherein, the target according to the initial value of the type face proportion with corresponding type face proportion
Relation between value, the word to be shown is adjusted, including:
Type face proportion parameter corresponding to the desired value of the type face proportion is obtained, wherein, the type face proportion parameter includes:Font size,
It is at least one in word space and line space;
According to the relation between the initial value of the type face proportion and the desired value of corresponding type face proportion, and the type face proportion obtained
Parameter, the type face proportion of the word to be shown is adjusted.
12. according to the method for claim 1, wherein, methods described also includes:
At least one adjustment operation in the font size, word space, line space of the word to display, obtain the
One adjustment operation information, wherein, the first adjustment operation information includes at least one of:Font size, tune after adjustment
The line space after word space, adjustment after whole;
Described first adjustment operation information is reported into server.
13. according to the method for claim 1, wherein, methods described also includes:
Operated according to the adjustment of the type face proportion of the word to display, obtain the second adjustment operation information, wherein, described second
Adjustment operation information includes:Type face proportion after adjustment, or, font size, word space and row corresponding to the type face proportion after adjustment
Spacing;
Described second adjustment operation information is reported into server.
14. the method according to claim 12 or 13, wherein, methods described also includes:
New word adjusting parameter is obtained, wherein, the word adjusting parameter includes:The type face proportion of word, or, the word
Adjusting parameter includes:Font size, word space and the line space of word;
Using the word adjusting parameter, the word of display is adjusted.
15. the method according to claim 11, wherein, the new word adjusting parameter of the acquisition, including:
Determine accounts information corresponding to the reading object;
Obtain new word adjusting parameter corresponding with the accounts information.
16. a kind of character display apparatus, including:
Determining module, for determining the information of word to be shown in reading object, wherein, the information of the word to be shown
The initial value of font and type face proportion including the word to be shown;
Adjusting module, for the relation between the initial value according to the type face proportion and the desired value of corresponding type face proportion, to described
Word to be shown is adjusted;
Display module, for showing the word after adjusting.
17. device according to claim 16, wherein, the information of the word to be shown also includes:Text to be shown
The font size of word;
The adjusting module includes:
First adjustment submodule, for the relation between the initial value according to the type face proportion and the desired value of corresponding type face proportion,
The font size of the word to be shown is adjusted.
18. device according to claim 17, wherein, the first adjustment submodule, for according to the type face proportion
Relation between initial value and the desired value of corresponding type face proportion, also, the initial value according to the type face proportion and corresponding type face proportion
Desired value between difference, the font size of the word to be shown is adjusted.
19. device according to claim 18, wherein, the first adjustment submodule, for according to the type face proportion
Relation between initial value and the desired value of corresponding type face proportion, also, according to below equation, to the word of the word to be shown
Body size is adjusted:
The font size of word to be shown after adjustment=
Wherein,Represent extraction of square root;| | expression takes absolute value;The font size of word to be shown2Represent text to be shown
Square of the font size of word.
20. the device according to claim 18 or 19, wherein, the first adjustment submodule, for according to described literal
Relation between the initial value of rate and the desired value of corresponding type face proportion, the font size of the word to be shown is adjusted, and
At least one of:Word space, line space.
21. device according to claim 20, wherein, the first adjustment submodule, if the original for the type face proportion
Value is less than the desired value of the type face proportion, then adjusts the font size and line space of the word to be shown.
22. device according to claim 21, wherein, the first adjustment submodule, if the original for the type face proportion
Value is less than the desired value of the type face proportion, then adjusts the font size of the word to be shown, also, according to described to be shown
Word font size and setting line space adjustment ratio, the line space of the word to be shown is adjusted.
23. device according to claim 20, wherein, the first adjustment submodule, if the original for the type face proportion
Value is more than the desired value of the type face proportion, then adjusts font size, word space and the line space of the word to be shown.
24. device according to claim 23, wherein, the first adjustment submodule, if the original for the type face proportion
Value is more than the desired value of the type face proportion, then adjusts the font size of the word to be shown, also, according to described to be shown
Word adjustment after font size and the font size before adjustment, the word space of the word to be shown is adjusted
It is whole;According to the font size after the adjustment of the word to be shown and the font size before adjustment, and the line space of setting
Adjustment ratio, the line space of the word to be shown is adjusted.
25. device according to claim 24, wherein, the first adjustment submodule is treated according to below equation to described
The line space of the word of display is adjusted:
After font size-adjustment of the word before line space=(the line space adjustment ratio of 1+ settings) × adjustment after adjustment
The font size of word.
26. device according to claim 16, wherein, the adjusting module includes:
Second adjustment submodule, for obtaining type face proportion parameter corresponding to the desired value of the type face proportion, wherein, the type face proportion
Parameter includes:It is at least one in font size, word space and line space;According to the initial value of the type face proportion with it is corresponding literal
Relation between the desired value of rate, and the type face proportion parameter obtained, the type face proportion of the word to be shown is carried out
Adjustment.
27. device according to claim 16, wherein, described device also includes:
First adjustment operation information module, in the font size according to the word to display, word space, line space
At least one adjustment operation, obtain the first adjustment operation information, wherein, the first adjustment operation information include it is following at least
One of:The word space after font size, adjustment after adjustment, the line space after adjustment;Described first is adjusted in operation information
Report server.
28. device according to claim 16, wherein, described device also includes:
Second adjustment operation information module, the adjustment for the type face proportion according to the word to display operate, and obtain second
Operation information is adjusted, wherein, the second adjustment operation information includes:Type face proportion after adjustment, or, the type face proportion after adjustment
Corresponding font size, word space and line space;Described second adjustment operation information is reported into server.
29. the device according to claim 27 or 28, wherein, described device also includes:
Update module, for obtaining new word adjusting parameter, wherein, the word adjusting parameter includes:The type face proportion of word,
Or the word adjusting parameter includes:Font size, word space and the line space of word;Using the word adjusting parameter,
Adjust the word of display.
30. device according to claim 29, wherein, the update module, for determining corresponding to the reading object
Accounts information;Obtain new word adjusting parameter corresponding with the accounts information;It is aobvious using the word adjusting parameter, adjustment
The word shown.
31. a kind of electronic equipment, including:Processor, memory, communication interface and communication bus, the processor, the storage
Device and the communication interface complete mutual communication by the communication bus;
The memory is used to deposit an at least executable instruction, and the executable instruction makes the computing device such as right will
Ask and operated corresponding to the character displaying method described in any one of 1-15.
32. a kind of computer-readable storage medium, the computer-readable storage medium is stored with:It is to be shown in reading object for determining
The executable instruction of the information of word, wherein, the information of the word to be shown includes the font of the word to be shown
With the initial value of type face proportion;For the relation between the initial value according to the type face proportion and the desired value of corresponding type face proportion, to institute
State the executable instruction that word to be shown is adjusted;For showing the executable instruction of the word after adjusting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710693480.8A CN107491422B (en) | 2017-08-14 | 2017-08-14 | Character display method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710693480.8A CN107491422B (en) | 2017-08-14 | 2017-08-14 | Character display method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107491422A true CN107491422A (en) | 2017-12-19 |
CN107491422B CN107491422B (en) | 2021-04-16 |
Family
ID=60645593
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710693480.8A Active CN107491422B (en) | 2017-08-14 | 2017-08-14 | Character display method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107491422B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109375967A (en) * | 2018-08-27 | 2019-02-22 | 北京达佳互联信息技术有限公司 | Application Program Interface display methods and device, mobile terminal and storage medium |
CN110059299A (en) * | 2019-03-29 | 2019-07-26 | 惠州Tcl移动通信有限公司 | E-book character style control method, device, electronic equipment and storage medium |
CN110244995A (en) * | 2019-05-05 | 2019-09-17 | 深圳市神经科学研究院 | The personalized screens word space method of adjustment and device of view-based access control model crowding effect |
CN110390080A (en) * | 2018-04-19 | 2019-10-29 | 广东电网有限责任公司 | A kind of progressive report method for sorting |
CN111506378A (en) * | 2020-04-17 | 2020-08-07 | 腾讯科技(深圳)有限公司 | Method, device and equipment for previewing text display effect and storage medium |
WO2023016117A1 (en) * | 2021-08-13 | 2023-02-16 | 北京字节跳动网络技术有限公司 | Content typesetting method and apparatus, computer device, and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1828581A (en) * | 2006-04-14 | 2006-09-06 | 北京北大方正电子有限公司 | Layout method for word content fitting rectangular words frame |
CN104238890A (en) * | 2014-09-19 | 2014-12-24 | 小米科技有限责任公司 | Text display method and device |
WO2015056384A1 (en) * | 2013-10-18 | 2015-04-23 | 三菱電機株式会社 | Character string display device |
CN104598185A (en) * | 2014-12-31 | 2015-05-06 | 乐视网信息技术(北京)股份有限公司 | Character font correction method and system |
CN106874911A (en) * | 2017-03-03 | 2017-06-20 | 沈阳工程学院 | The area ratio that a kind of application partitioning is obtained is come the method that carries out printing digit recognizing |
CN107122197A (en) * | 2017-05-16 | 2017-09-01 | 广州阿里巴巴文学信息技术有限公司 | Read space of a whole page optimization method, device and electronic reading terminal |
-
2017
- 2017-08-14 CN CN201710693480.8A patent/CN107491422B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1828581A (en) * | 2006-04-14 | 2006-09-06 | 北京北大方正电子有限公司 | Layout method for word content fitting rectangular words frame |
WO2015056384A1 (en) * | 2013-10-18 | 2015-04-23 | 三菱電機株式会社 | Character string display device |
CN104238890A (en) * | 2014-09-19 | 2014-12-24 | 小米科技有限责任公司 | Text display method and device |
CN104598185A (en) * | 2014-12-31 | 2015-05-06 | 乐视网信息技术(北京)股份有限公司 | Character font correction method and system |
CN106874911A (en) * | 2017-03-03 | 2017-06-20 | 沈阳工程学院 | The area ratio that a kind of application partitioning is obtained is come the method that carries out printing digit recognizing |
CN107122197A (en) * | 2017-05-16 | 2017-09-01 | 广州阿里巴巴文学信息技术有限公司 | Read space of a whole page optimization method, device and electronic reading terminal |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110390080A (en) * | 2018-04-19 | 2019-10-29 | 广东电网有限责任公司 | A kind of progressive report method for sorting |
CN109375967A (en) * | 2018-08-27 | 2019-02-22 | 北京达佳互联信息技术有限公司 | Application Program Interface display methods and device, mobile terminal and storage medium |
CN110059299A (en) * | 2019-03-29 | 2019-07-26 | 惠州Tcl移动通信有限公司 | E-book character style control method, device, electronic equipment and storage medium |
CN110059299B (en) * | 2019-03-29 | 2023-11-21 | 上海七猫文化传媒有限公司 | Electronic book font control method and device, electronic equipment and storage medium |
CN110244995A (en) * | 2019-05-05 | 2019-09-17 | 深圳市神经科学研究院 | The personalized screens word space method of adjustment and device of view-based access control model crowding effect |
CN111506378A (en) * | 2020-04-17 | 2020-08-07 | 腾讯科技(深圳)有限公司 | Method, device and equipment for previewing text display effect and storage medium |
CN111506378B (en) * | 2020-04-17 | 2021-09-28 | 腾讯科技(深圳)有限公司 | Method, device and equipment for previewing text display effect and storage medium |
WO2023016117A1 (en) * | 2021-08-13 | 2023-02-16 | 北京字节跳动网络技术有限公司 | Content typesetting method and apparatus, computer device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107491422B (en) | 2021-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107491422A (en) | Character displaying method, device and electronic equipment | |
CN108427953A (en) | A kind of character recognition method and device | |
CN104572775B (en) | Advertisement classification method, device and server | |
CN110704519A (en) | Business document conversion method and device, storage medium and computer equipment | |
CN107436936A (en) | Online reading method and platform based on Quick Response Code | |
CN108280051A (en) | Detection method, device and the equipment of error character in a kind of text data | |
CN104239282B (en) | The treating method and apparatus of e-book | |
CN101908218A (en) | Editing equipment and method for arranging | |
CN108205802A (en) | Deep neural network model training, image processing method and device and equipment | |
CN104298727A (en) | Template matching method and device based on document | |
CN106980689A (en) | A kind of method that data visualization is realized by interactive voice | |
CN108228596A (en) | A kind of dynamic data methods of exhibiting | |
CN109657203A (en) | Method, the system of the literal size adjustment of character library | |
CN107943788A (en) | Enterprise's abbreviation generation method, device and storage medium | |
CN110705234A (en) | Self-adaptive typesetting and paging method and device for system form | |
CN107168635A (en) | Information demonstrating method and device | |
CN106844606A (en) | The focus processing method and processing device of webpage | |
CN108038125A (en) | Automatic control methods, device, equipment and the storage medium of fund system test value | |
CN109783793A (en) | Page editing composition method and device | |
CN111724455A (en) | Image processing method and electronic device | |
KR20180122927A (en) | Text recognition apparatus included in image, text recognition method and recording media storing with program for the performing method | |
US10824595B1 (en) | Personalized user interface systems and methods | |
CN106528027A (en) | Data displaying method and device | |
CN114378850B (en) | Interaction method and system of customer service robot, electronic equipment and storage medium | |
CN109388647B (en) | WEB-based data filling method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200604 Address after: 310051 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Applicant after: Alibaba (China) Co.,Ltd. Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping square B radio tower 13 layer self unit 03 Applicant before: GUANGZHOU ALIBABA LITERATURE INFORMATION TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |