CN106598436B - Display methods, device and the terminal device of e-book label - Google Patents

Display methods, device and the terminal device of e-book label Download PDF

Info

Publication number
CN106598436B
CN106598436B CN201611193098.2A CN201611193098A CN106598436B CN 106598436 B CN106598436 B CN 106598436B CN 201611193098 A CN201611193098 A CN 201611193098A CN 106598436 B CN106598436 B CN 106598436B
Authority
CN
China
Prior art keywords
color
brightness
paper
marker
label
Prior art date
Application number
CN201611193098.2A
Other languages
Chinese (zh)
Other versions
CN106598436A (en
Inventor
陈新港
Original Assignee
掌阅科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 掌阅科技股份有限公司 filed Critical 掌阅科技股份有限公司
Priority to CN201611193098.2A priority Critical patent/CN106598436B/en
Publication of CN106598436A publication Critical patent/CN106598436A/en
Application granted granted Critical
Publication of CN106598436B publication Critical patent/CN106598436B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object or an image, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

An embodiment of the present invention provides a kind of e-book label display methods, device and terminal device, wherein e-book label display methods include:When the e-book page is from the first color matching theme transition to the second color matching theme, the marker color of the label in the e-book page is obtained, and, text color and paper color of the e-book page under the second color matching theme;Determine the brightness of the brightness of the marker color, the brightness and the paper color of the text color;According to the brightness of the brightness of the text color and the paper color, the brightness of the marker color is adjusted;The marker color after display adjustment brightness.Through the embodiment of the present invention, the bandwagon effect of e-book content of pages and the e-book reading experience of user are improved.

Description

Display methods, device and the terminal device of e-book label

Technical field

The present embodiments relate to technical field of data processing more particularly to a kind of display methods of e-book label, dresses It sets and a kind of terminal device.

Background technology

E-book is to utilize computer technology by the publication of the information content digitizations such as word, picture, sound, image. With Internet technology application it is more and more extensive, traditional paper reading mode is gradually replaced by e-book, and people are more next More it is intended to utilize internet and computer technology, e-book is downloaded by the reading application for reading electronic book and is read It reads.

During reading electronic book, user, which usually has, is marked certain word contents in book, in order to rear It is continuous to look back or just word is marked to write the demands such as thoughts.Meanwhile for current e-book, to meet of user Property demand, usually provides a variety of different color matching themes.The marker color of the e-book label of user leads a certain color matching Topic may be adaptation, so as to make the e-book page feel that more comfortable colour match is shown with user.But more After changing color theme, it is likely that marker color occur can not be adapted with the color of new color matching theme, to influence electronics The bandwagon effect of book content of pages reduces the e-book reading experience of user.

Invention content

An embodiment of the present invention provides display methods, device and a kind of terminal devices of a kind of e-book label, to solve At present to the label of word content in e-book, the problem of cannot being adaptively adjusted with the replacement of e-book color matching theme.

One side according to the ... of the embodiment of the present invention provides a kind of display methods of e-book label, including:In electricity The philosophical works page from first color matching theme transition to second color matching theme when, obtain the label of the label in the e-book page Color, and, text color and paper color of the e-book page under the second color matching theme;Determine the mark Remember the brightness of the brightness of color, the brightness and the paper color of the text color;According to the brightness of the text color With the brightness of the paper color, the brightness of the marker color is adjusted;The marker color after display adjustment brightness.

Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of display device of e-book label, including:It obtains Modulus block, for when the e-book page is from the first color matching theme transition to the second color matching theme, obtaining the e-book page In label marker color, and, the e-book page it is described second color matching theme under text color and paper face Color;Determining module, for determining the bright of the brightness of the marker color, the brightness of the text color and the paper color Degree;Module is adjusted, the brightness of the brightness and the paper color according to the text color is used for, adjusts the marker color Brightness;Display module, for showing the marker color after adjusting brightness.

Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of terminal device, including:Processor, memory, Communication interface and communication bus, the processor, the memory and the communication interface complete phase by the communication bus Communication between mutually;The memory makes the processor execute for storing an at least executable instruction, the executable instruction The corresponding operation of display methods of foregoing e-book label.

It is according to the ... of the embodiment of the present invention in another aspect, additionally provide a kind of computer readable storage medium, the computer Readable storage medium storing program for executing is stored with:For when the e-book page is from the first color matching theme transition to the second color matching theme, obtaining institute The marker color of the label in the e-book page is stated, and, word of the e-book page under the second color matching theme The executable instruction of color and paper color;For determine the brightness of the marker color, the brightness of the text color and The executable instruction of the brightness of the paper color;For according to the bright of the brightness of the text color and the paper color Degree, adjusts the executable instruction of the brightness of the marker color;For showing holding for the marker color after adjusting brightness Row instruction.

The displaying scheme of the e-book label provided through the embodiment of the present invention is led in the e-book page from a color matching When topic is transformed into another color matching theme, according to the brightness of text color of the e-book page under new color matching theme and paper The brightness of Zhang Yanse is adjusted and shows to the brightness of the marker color in the e-book page.In traditional approach, it is possible to E-book application can be when user carries out e-book label for the first time, it is desirable that user's selected marker color subsequently continues to use the color; User is also possible to when being marked every time, is all required selected marker color;It is also possible to e-book is applied as label Provided with default color, user can only use the default color when carrying out e-book label.Nevertheless, traditional approach In, when the e-book page is from a color matching theme transition to another color matching theme, the marker color of the e-book page is not It can be adaptively adjusted.And in scheme provided in an embodiment of the present invention, the variation by brightness can be that color increases Different gray tone realizes the adjustment of marker color under different color matching themes so that marker color changes.

Also, in scheme provided in an embodiment of the present invention, according to word face of the e-book page under new color matching theme The brightness of color and the brightness of paper color, are adjusted the brightness of the marker color of the e-book page.On the one hand, each is matched Text color and paper color under color theme are all colors that is pre-set, being most suitable for color matching theme, according to word face Color and paper color are adjusted marker color, can more be suitble to the needs of color matching theme;On the other hand, only to marker color Brightness be adjusted, without change marker color itself so that the adjustment of marker color is more mitigated, will not be because of face Color is mutated and causes the inadaptable sense of user.

As it can be seen that the scheme provided through the embodiment of the present invention, can enable word content in e-book label with It the replacement of e-book color matching theme and is adaptively adjusted, improve the bandwagon effect of e-book content of pages and the electricity of user Philosophical works reading experience.

Description of the drawings

Fig. 1 is a kind of step flow chart of the display methods of according to embodiments of the present invention one e-book label;

Fig. 2 is a kind of step flow chart of the display methods of according to embodiments of the present invention two e-book label;

Fig. 3 is a kind of structure diagram of the display device of according to embodiments of the present invention three e-book label;

Fig. 4 is a kind of structure diagram of the display device of according to embodiments of the present invention four e-book label;

Fig. 5 is a kind of structural schematic diagram of according to embodiments of the present invention five terminal device.

Specific implementation mode

(identical label indicates identical element in several attached drawings) and embodiment below in conjunction with the accompanying drawings, to of the invention real The specific implementation mode for applying example is described in further detail.Following embodiment is not limited to this hair for illustrating the present invention Bright range.

It will be understood by those skilled in the art that the terms such as " first ", " second " in the embodiment of the present invention are only used for distinguishing Different step, equipment or module etc. neither represent any particular technology meaning, also do not indicate that the inevitable logic between them is suitable Sequence.

Embodiment one

Referring to Fig.1, a kind of step flow of the display methods of according to embodiments of the present invention one e-book label is shown Figure.

The display methods of the e-book label of the present embodiment includes the following steps:

Step S102:When the e-book page is from the first color matching theme transition to the second color matching theme, electronics page is obtained The marker color of label in face, and, text color and paper color of the e-book page under the second color matching theme.

Different color and combinations thereof can generate psychic influence by the impression or association of people, and match colors Then by the appropriate arrangement to color, change user's impression to meet the different demands of different consumers.Each scheme of colour It is the word and paper of e-book under each color matching theme for e-book as soon as may be considered a color matching theme Colour match provided with color appropriate, also, word and paper meets common aesthetics demand, different color matching masters The colour match of the lower word of topic and paper is also different, to form the color matching theme of different-style.

The color of word, paper and label under color matching theme is usually RGB color, in rgb color model, according to RGB The different value of middle R, G and B show different colors, but each color under RGB colour models does not have luminance component, Thus lead to be only capable of the color that RGB is adjusted by colour switching, different RGB colors has different R, G, B color values.It passes It in system mode, is marked for e-book, usual manner, which is the color of e-book label, to be changed with the difference of color matching theme Become, for example, matching colors under theme in blue, paper color is blue, and text color is black, and marker color is red;When from indigo plant After color matches colors theme transition as red color matching theme, paper color is red, and text color is navy blue or black, marks face Color then remains as red, at this point, being difficult then to be clearly distinguished to label;And if it is green to work as from blue color matching theme transition Color color matching theme, paper color is green, and word is navy blue, and marker color remains as red, although at this point, can distinguish Go out label, but color effects are bad, cannot be that user brings relatively comfortable color matching to experience.

In above-mentioned usual manner, e-book application is possible to can be when user carries out e-book label for the first time, it is desirable that uses Family selected marker color, subsequently continues to use the color;User is also possible to when being marked every time, is all required selected marker Color;It is also possible to e-book is applied is provided with default color for label, user can only use when carrying out e-book label should Default color.Nevertheless, when the e-book page is from a color matching theme transition to another color matching theme, e-book The marker color of the page is unable to be adaptively adjusted.

For this purpose, the display mode of e-book label provided in an embodiment of the present invention is to theme of under rgb color model, matching colors Marker color when transformation is adjusted.In the embodiment of the present invention, e-book label includes but not limited to:The underscore of word, Middle scribing line, wave, highlight color label etc..

Step S104:Determine the brightness of the brightness of marker color, the brightness of text color and paper color.

After the color such as RGB color of the word of e-book, paper and label all determine, mode appropriate can be passed through These colors are handled, and then obtain its corresponding brightness.For example, RGB color is converted to the color with luminance component Color under color model, such as hsv color, HSL colors or YUV colors, but not limited to this, it is realized by related algorithm The mode of the acquisition of the brightness of color is equally applicable, and the embodiment of the present invention is not restricted this.

Step S106:According to the brightness of the brightness of text color and paper color, the brightness of marker color is adjusted.

Text color and paper color under each color matching theme be all pre-set, meets aesthetics and requires Color is adjusted the brightness of marker color according to the brightness of text color and the brightness of paper color, more suitable for color matching Theme;Also, only the brightness of marker color is adjusted, without changing marker color itself so as to the tune of marker color It is whole more to mitigate, the inadaptable sense of user will not be caused because of color change.

Step S108:Marker color after display adjustment brightness.

Through this embodiment, when the e-book page is from a color matching theme transition to another color matching theme, according to electricity The brightness of the brightness and paper color of text color of the philosophical works page under new color matching theme, to the e-book page in first wife The brightness of marker color under color theme is adjusted and shows.With traditional approach, matches colors and lead from one when the e-book page When topic is transformed into another color matching theme, the marker color of the e-book page can not be adaptively adjusted comparing, in this hair In the scheme that bright embodiment provides, the variation by brightness can be that color increases different gray tone, so that mark Note color changes, and realizes the adjustment of marker color under different color matching themes.

Also, in the present embodiment, according to the brightness of text color of the e-book page under new color matching theme and paper The brightness of color is adjusted the brightness of the marker color of the e-book page.On the one hand, the word under each color matching theme Color and paper color are all colors that is pre-set, being most suitable for color matching theme, according to text color and paper color pair Marker color is adjusted, and can more be suitble to the needs of color matching theme;On the other hand, only the brightness of marker color is adjusted, Without changing marker color itself so that more mitigated to the adjustment of marker color, user will not be caused because of color change Inadaptable sense.

As it can be seen that through this embodiment, the label of word content can be enable to match colors with e-book in e-book and led The replacement of topic and be adaptively adjusted, improve e-book content of pages bandwagon effect and user e-book reading experience.

The display methods of the e-book label of the present embodiment can have data-handling capacity or color by any suitable The equipment realization of processing capacity, including but not limited to:Mobile terminal, tablet computer, desktop computer etc..

Embodiment two

With reference to Fig. 2, a kind of step flow of the display methods of according to embodiments of the present invention two e-book label is shown Figure.

The present embodiment is by taking the e-book that mobile terminal is opened by e-book reading application as an example, to the embodiment of the present invention The displaying scheme of the e-book label of offer illustrates.But it should be understood by those skilled in the art that in actual use, It has data processing or the equipment of color treatments ability and the application scenario of other e-book, can refer to the present embodiment Realize the solution of the present invention.

The display methods of the e-book label of the present embodiment includes the following steps:

Step S202:Mobile terminal receives the marking operation that user carries out the word in the e-book page, obtains label The information of operation and preservation.

Wherein, the marking operation that user carries out the word of the e-book page can carry out under any color matching theme, mark Remember that the information of operation includes but not limited to:The information for the word being marked and the information of label.Wherein, the packet of label It includes but is not limited to:The style information of label and the colouring information of label.Mobile terminal is receiving user to the e-book page After the colouring information selected when operation is marked, which can be saved as marker color.

In the embodiment of the present invention, emphasis is adjusted and handles to the marker color of the colouring information characterization of label, because This, the embodiment of the present invention is not further detailed the processing of other information, and those skilled in the art are according to actual conditions Using processing mode appropriate.

In addition, using the color in rgb color model to be original in the embodiment of the present invention, when word being marked For marker color, the displaying scheme of e-book provided in an embodiment of the present invention label is illustrated, but people in the art Member is it should be understood that in actual use, other colour models without luminance component similarly can refer to the present embodiment realization The solution of the present invention.

Step S204:Mobile terminal determines that the e-book page matches colors theme transition as the second color matching theme from first, obtains The marker color of label in the e-book page, and, text color and paper of the e-book page under the second color matching theme Color.

Wherein, marker color, text color and the paper color obtained in this step is by taking RGB color as an example.General feelings Under condition, word and paper under each color matching theme all have certain RGB colors, but in some cases, paper uses The case where paper color is not pure color when quasi- object Background, can be used by those skilled in the art any suitable mode for Paper under ninsolid color background determines that RGB color, the embodiment of the present invention are not restricted this.

Step S206:Mobile terminal determines the brightness of the brightness of marker color, the brightness of text color and paper color.

For example, by rgb color model conversion be HSV colour models, HSL colour models or YUV colour models after, obtain Take the colour brightness of label, word and paper.It is HSV colour models by rgb color model conversion in the embodiment of the present invention For, the conversion of other colour models can be by those skilled in the art with reference to the present embodiment, using relevant transfer algorithm reality Existing, details are not described herein.

In HSV colour models, H indicates that tone, S indicate that saturation degree, V indicate brightness (or lightness).Wherein, tone H can be with Color information, the i.e. position of residing spectral color are characterized, is embodied as an angular metric, red, green, blue is separated by 120 respectively Degree, complementary colours differ 180 degree respectively;Saturation degree S is a ratio value, and range is often expressed as the purity of color and is somebody's turn to do from 0 to 1 Ratio between the maximum purity of color;Brightness V indicates that the light levels of color, range represent brightness gradually from 0 to 1 from 1 to 0 Dark grey, the i.e. grey with different gray scales.The change of brightness V can cause the change of hsv color entirety.From rgb color Model conversion is the realization of HSV colour models, can be by those skilled in the art according to actual demand, using relevant conversion Algorithm realizes that details are not described herein.

After by rgb color model conversion for HSV colour models, it is corresponding bright that mobile terminal obtains marker color respectively Degree, the corresponding brightness of text color and the corresponding brightness of paper color.That is, when realizing this step, mobile terminal will obtain The RGB color of the word of the e-book page taken, paper and label is converted to the HSV face of corresponding word, paper and label Color;Further according to the hsv color of word, paper and label, determine the brightness of corresponding text color, the brightness of paper color and The brightness of marker color.

Step S208:Mobile terminal judges whether the brightness of paper color is less than the second luminance threshold;If being less than, hold Row step S210;If being not less than, do not deal with.

This step is optional step, is main intensity source because paper color is at planar, therefore the brightness of paper color The environment of user's reading electronic book can be characterized to a certain extent, such as read under bright environment, then ambient light and electricity The color that the philosophical works is currently matched colors under theme then may have stronger adaptability to marker color, it may be considered that do not have to adjustment, with Save device resource.Therefore, in alternative, it can first judge whether the brightness of current paper sheet color is less than the second brightness Threshold value, wherein the second luminance threshold can be according to actual needs appropriately arranged with by those skilled in the art.

For example, if the brightness of paper color>0.4, then illustrate that user may be in the brightness that need not adjust marker color Reading electronic book under environment, at this point it is possible to the adjustment without marker color;If paper colour brightness<=0.4, then user can Can under dark-coloured environment reading electronic book, need for its adjust e-book marker color.

Step S210:Mobile terminal determines that the brightness of paper color is less than the second luminance threshold, according to the bright of text color The brightness of degree and paper color, adjusts the brightness of marker color.

In a kind of feasible program, mobile terminal can determine in the brightness of text color and the brightness of paper color compared with Big brightness;According to the determining brightness, the brightness of marker color is adjusted.The brightness of text color and paper color it is bright Big value in degree is the current main source with light sensation under color pattern, as the foundation of the brightness of adjustment marker color, While making marker color adapt to currently with color pattern, additionally it is possible to clearly illustrate, convenient for identification.

It is alternatively possible to according to the setting ratio of the determining brightness, the brightness of marker color is adjusted.That is, to true After big value in the brightness of fixed text color and the brightness of paper color is multiplied by certain proportionality coefficient, according still further to being multiplied by ratio The brightness of brightness adjustment marker color after example coefficient.Wherein, setting ratio can be by those skilled in the art according to practical feelings Condition is suitably set, and can be made marker color and currently be adapted to and can clearly identify to a certain extent with color pattern.Example Such as, according to 1/2 be worth greatly in the brightness of determining text color and the brightness of paper color, the bright of marker color is adjusted Degree so that the brightness of the marker color after adjustment is equal to 1/ be worth greatly in the brightness of text color and the brightness of paper color 2。

In another feasible pattern, according to the big value in the brightness of determining text color and the brightness of paper color, When color adjustment is marked, optionally, it can also judge whether the determining brightness is less than the first luminance threshold of setting Value, wherein the first luminance threshold is easy for the minimum brightness threshold value of reading electronic book, less than the luminance threshold, E-book would be possible to effectively to show.Therefore, however, it is determined that the brightness of text color and the brightness of paper color in it is big Value less than setting the first luminance threshold when, if the relatively dark colour under Night matches color pattern, then be used directly first Luminance threshold adjusts the brightness of marker color.Wherein, the first luminance threshold can be by those skilled in the art according to actual conditions It is appropriately arranged with, is such as set as 0.1.If it is determined that the brightness of text color and the brightness of paper color in big value not less than setting When fixed first luminance threshold, then marker color can be adjusted in the manner previously described, such as according to determining the bright of text color Degree and brightness larger in the brightness of paper color, are adjusted marker color.

In another optional mode, mobile terminal first determines whether the e-book page is in night display pattern;If It is, then directly by the 1/2 of the brightness of text color, to be determined as the brightness for adjusting marker color.Night display pattern can be right The display of entire e-book has an impact, and includes the influence of the color matching theme current to the e-book page, moreover, normal conditions Under, in the color matching theme under night display pattern, the brightness of text color is greater than the brightness of paper color, therefore, Ke Yizhi It connects and marker color is adjusted according to the brightness of text color, it is preferable that by the 1/2 of the brightness of text color as label The brightness to be adjusted of color, is adjusted marker color.It, can be in the manner previously described if being not at night display pattern Marker color is adjusted, such as according to the brightness and brightness larger in the brightness of paper color for determining text color, to mark Note color is adjusted.

Step S212:Marker color after mobile terminal display adjustment brightness.

Mobile terminal is under the second color matching theme, i.e., under current color matching theme, the label face after display adjustment brightness Color.

If as previously mentioned, by by RGB color be converted to hsv color obtain the brightness of text color, paper color it is bright The brightness of degree and marker color, then when display adjusts the marker color after brightness, it is also necessary to by the label after adjustment brightness Hsv color is converted to RGB color, then shows the RGB color of label.Equally, if by RGB color be converted to HSL colors or YUV colors are also needed correspondingly to be converted to RGB color and are shown then when display adjusts the marker color after brightness.

Through this embodiment, it can so that the label of word content in e-book can be with e-book color matching theme It replaces and is adaptively adjusted, improve the bandwagon effect of e-book content of pages and the e-book reading experience of user.

Embodiment three

With reference to Fig. 3, a kind of structural frames of the display device of according to embodiments of the present invention three e-book label are shown Figure.

The present embodiment e-book label display device include:Acquisition module 302, in the e-book page from the When one color matching theme transition to the second color matching theme, the marker color of the label in the e-book page is obtained, and, e-book Text color and paper color of the page under the second color matching theme;Determining module 304, for determine marker color brightness, The brightness of text color and the brightness of paper color;Module 306 is adjusted, the brightness according to text color and paper face are used for The brightness of color adjusts the brightness of marker color;Display module 308, for showing the marker color after adjusting brightness.

The display device of the e-book label of the present embodiment is for realizing corresponding electronics in aforesaid plurality of embodiment of the method The display methods of book label note, and the advantageous effect with corresponding embodiment of the method, details are not described herein.

The data sharing device of the present embodiment can be set in corresponding equipment such as terminal device or server, also may be used To exist with independent apparatus-form.

Example IV

With reference to Fig. 4, a kind of structural frames of the display device of according to embodiments of the present invention four e-book label are shown Figure.

The present embodiment e-book label display device include:Acquisition module 402, in the e-book page from the When one color matching theme transition to the second color matching theme, the marker color of the label in the e-book page is obtained, and, e-book Text color and paper color of the page under the second color matching theme;Determining module 404, for determine marker color brightness, The brightness of text color and the brightness of paper color;Module 406 is adjusted, the brightness according to text color and paper face are used for The brightness of color adjusts the brightness of marker color;Display module 408, for showing the marker color after adjusting brightness.

Optionally, adjustment module 406 includes:First brightness determining module 4062, for determine text color brightness and Larger brightness in the brightness of paper color;Execution module 4064 is adjusted, for according to the determining brightness, adjustment label The brightness of color.

Optionally, adjustment execution module 4064 is used for the setting ratio according to the determining brightness, adjusts marker color Brightness.

Optionally, adjustment execution module 4064 is used to, according to the 1/2 of the determining brightness, adjust the bright of marker color Degree.

Optionally, adjustment module 406 further includes:First judgment module 4066, in adjustment 4064 basis of execution module Before the brightness for adjusting marker color, it is bright to judge whether the determining brightness is less than first set for the determining brightness Spend threshold value;First execution module 4068, if the judging result for the first judgment module 4066 is less than bright using first Spend the brightness of adjusting thresholds marker color;If the judging result of the first judgment module is not less than into adjustment execution module 4064 execute.

Optionally, the display device of the e-book label of the present embodiment further includes:Second judgment module 410, for the One brightness determining module 4062 determines that the brightness of text color with before brightness larger in the brightness of paper color, judges electricity Whether the philosophical works page is in night display pattern;Second execution module 412, if the judging result for the second judgment module 410 It is yes, then by the 1/2 of the brightness of text color, is determined as the brightness for adjusting marker color;If it is not, it is bright then to enter first Determining module 4062 is spent to execute.

Optionally, the display device of the e-book label of the present embodiment further includes:Third judgment module 414, for adjusting Mould preparation block 406 judges paper according to the brightness of text color and the brightness of paper color before the brightness for adjusting marker color Whether the brightness of color is less than the second luminance threshold;Third execution module 416, if the judgement knot for third judgment module 414 Fruit is less than then into the adjustment execution of module 406.

Optionally it is determined that module 404 includes:Conversion module 4042, word, the paper of the e-book page for that will obtain And the RGB color of label be converted to the hsv color of corresponding word, paper and label;Second brightness determining module 4044, For the HSV colors according to word, paper and label, the brightness of corresponding text color, the brightness of paper color and mark are determined Remember the brightness of color.

Optionally, display module 408 is used to the hsv color of the label after adjustment brightness being converted to RGB color;Display The RGB color of label.

Optionally, the display device of the e-book label of the present embodiment further includes:Preserving module 418, in e-book The page receives user and operation is being marked to the e-book page before from the first color matching theme transition to the second color matching theme When the colouring information that selects, the colouring information is saved as into the marker color.

The display device of the e-book label of the present embodiment is for realizing corresponding electronics in aforesaid plurality of embodiment of the method The display methods of book label note, and the advantageous effect with corresponding embodiment of the method, details are not described herein.

The data sharing device of the present embodiment can be set in corresponding equipment such as terminal device or server, also may be used To exist with independent apparatus-form.

Embodiment five

With reference to Fig. 5, a kind of structural schematic diagram of according to embodiments of the present invention five terminal device, present invention tool are shown Body embodiment does not limit the specific implementation of terminal device.

As shown in figure 5, the terminal device may include:Processor (processor) 502, communication interface (Communications Interface) 504, memory (memory) 506 and communication bus 508.

Wherein:

Processor 502, communication interface 504 and memory 506 complete mutual communication by communication bus 508.

Communication interface 504, for being communicated with the network element of the such as other terminal devices of miscellaneous equipment or server etc..

Processor 502 can specifically execute the display methods embodiment of above-mentioned e-book label for executing program 510 In correlation step.

Specifically, program 510 may include program code, which includes computer-managed instruction.

Processor 502 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the embodiment of the present invention one or more it is integrated Circuit.The one or more processors that mobile terminal includes can be same type of processor, such as one or more CPU; Can also be different types of processor, such as one or more CPU and one or more ASIC.

Memory 506, for storing program 510 and relevant electronic book data.Memory 506 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile memory), a for example, at least disk is deposited Reservoir.

Program 510 specifically can be used for so that processor 502 executes following operation:It matches colors from first in the e-book page When theme transition is to the second color matching theme, the marker color of the label in the e-book page is obtained, and, the e-book page exists Text color and paper color under second color matching theme;Determine the brightness of marker color, the brightness of text color and paper The brightness of color;According to the brightness of the brightness of text color and paper color, the brightness of marker color is adjusted;Display adjustment is bright Marker color after degree.

In a kind of optional embodiment, program 510 is for making processor 502 in the brightness according to text color With the brightness of paper color, when adjusting the brightness of marker color, determine in the brightness of text color and the brightness of paper color compared with Big brightness;According to the determining brightness, the brightness of marker color is adjusted.

In a kind of optional embodiment, program 510 for so that processor 502 according to the determining brightness, When adjusting the brightness of marker color, according to the setting ratio of the determining brightness, the brightness of marker color is adjusted.

In a kind of optional embodiment, program 510 is for making processor 502 according to the determining brightness Setting ratio, when adjusting the brightness of marker color, according to the 1/2 of the determining brightness, adjust the brightness of marker color.

In a kind of optional embodiment, program 510 for so that processor 502 according to the determining brightness, Before the brightness for adjusting marker color, judge whether the determining brightness is less than the first luminance threshold of setting;If being less than, Then use the brightness of the first luminance threshold adjustment marker color;If being not less than, execute according to the determining brightness, adjustment The step of brightness of marker color.

In a kind of optional embodiment, program 510 is for making processor 502 in the brightness for determining text color Before brightness larger in the brightness of paper color, judge whether the e-book page is in night display pattern;If so, By the 1/2 of the brightness of text color, it is determined as the brightness for adjusting marker color;If it is not, then executing determining text color In brightness and the brightness of paper color the step of larger brightness.

In a kind of optional embodiment, program 510 is for making processor 502 in the brightness according to text color With the brightness of paper color, before the brightness for adjusting marker color, judge whether the brightness of paper color is less than the second luminance threshold Value;If being less than, the step of executing according to the brightness of text color and the brightness of paper color, adjust the brightness of marker color.

In a kind of optional embodiment, program 510 is for so that processor 502 states the bright of marker color in determination When degree, the brightness of text color and the brightness of paper color, by the word of the e-book page of acquisition, paper and label RGB color is converted to the hsv color of corresponding word, paper and label;According to the hsv color of word, paper and label, really Brightness, the brightness of paper color and the brightness of marker color of fixed corresponding text color.

In a kind of optional embodiment, program 510 is for so that mark of the processor 502 after display adjusts brightness When remembering color, the hsv color of the label after adjustment brightness is converted into RGB colors;Show the RGB color of label.

In a kind of optional embodiment, program 510 be additionally operable to so that processor 502 in the e-book page from first Before theme transition of matching colors to the second color matching theme, the face that user selects when operation is marked to the e-book page is received The colouring information is saved as the marker color by color information.

The specific implementation of each step may refer in the display methods embodiment that above-mentioned e-book marks in program 510 Corresponding description in corresponding steps and unit, this will not be repeated here.It is apparent to those skilled in the art that being Convenienct and succinct, the equipment of foregoing description and the specific work process of module of description can refer in preceding method embodiment Corresponding process description, details are not described herein.

Terminal device through this embodiment can enable the label of word content in e-book with e-book Match colors theme replacement and be adaptively adjusted, improve the bandwagon effect of e-book content of pages and the e-book reading of user Experience.

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 The part operation of two or more components/steps or components/steps can be also combined into new portion by more components/steps Part/step, to realize the purpose of the embodiment of the present invention.

It is above-mentioned to be realized in hardware, firmware according to the method for the embodiment of the present invention, or be implemented as being storable in note Application in recording medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk) or computer code, or be implemented through The original storage that network is downloaded is in long-range recording medium or nonvolatile machine readable media and will be stored in local record Jie Computer code in matter, to method described here can be stored in using all-purpose computer, application specific processor or Such application processing in the programmable or recording medium of specialized hardware (such as ASIC or FPGA).It is appreciated that calculating Machine, processor, microprocessor controller or programmable hardware include the storage group that can store or receive application or computer code Part (for example, RAM, ROM, flash memory etc.), when the application or computer code by computer, processor or hardware access and are held When row, the display methods of e-book label described here is realized.It is accessed in addition, working as all-purpose computer for realizing showing herein When the code of the e-book label display gone out, the execution of code is converted to all-purpose computer for executing the electricity being shown here The special purpose computer of philosophical works label display.

Those of ordinary skill in the art may realize that described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and method and step can be realized with electronic hardware or computer application and the combination of electronic hardware.These functions It is executed actually with hardware or application mode, depends on the specific application and design constraint of technical solution.Professional technique Personnel can use different methods to achieve the described function each specific application, but this realization should not be recognized For the range beyond 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, related skill The those of ordinary skill in art field can also make various in the case where not departing from the spirit and scope of the embodiment of the present invention Variation and modification, therefore all equivalent technical solutions also belong to the scope of the embodiment of the present invention, the patent of the embodiment of the present invention Protection domain should be defined by the claims.

An embodiment of the present invention provides the display methods that A1, a kind of e-book mark, including:

When the e-book page is from the first color matching theme transition to the second color matching theme, obtain in the e-book page Label marker color, and, the e-book page it is described second color matching theme under text color and paper face Color;

Determine the brightness of the brightness of the marker color, the brightness and the paper color of the text color;

According to the brightness of the brightness of the text color and the paper color, the brightness of the marker color is adjusted;

The marker color after display adjustment brightness.

A2, the method according to A1, wherein according to the brightness of the brightness of the text color and the paper color, The brightness of the marker color is adjusted, including:

Determine the brightness of the text color and brightness larger in the brightness of the paper color;

According to the determining brightness, the brightness of the marker color is adjusted.

A3, the method according to A2, wherein it is described according to the determining brightness, adjust the bright of the marker color Degree, including:

According to the setting ratio of the determining brightness, the brightness of the marker color is adjusted.

A4, the method according to A3, wherein the setting ratio according to the determining brightness adjusts the mark Remember the brightness of color, including:

According to the 1/2 of the determining brightness, the brightness of the marker color is adjusted.

A5, according to A2-A4 any one of them methods, wherein described according to the determining brightness, described in adjustment Before the brightness of marker color, the method further includes:

Judge whether the determining brightness is less than the first luminance threshold of setting;

If being less than, the brightness of the marker color is adjusted using first luminance threshold;

If being not less than, described according to the determining brightness, the step of adjusting the brightness of the marker color is executed.

A6, the method according to A2, wherein in the bright of the brightness and the paper color for determining the text color In degree before larger brightness, the method further includes:

Judge whether the e-book page is in night display pattern;

If so, by the 1/2 of the brightness of the text color, it is determined as the brightness for adjusting the marker color;

If it is not, then executing larger bright in the brightness of the determination text color and the brightness of the paper color The step of spending.

A7, the method according to A1, wherein according to the bright of the brightness of the text color and the paper color Degree, before the brightness for adjusting the marker color, the method further includes:

Judge whether the brightness of the paper color is less than the second luminance threshold;

If being less than, the brightness of the brightness according to the text color and the paper color is executed, described in adjustment The step of brightness of marker color.

A8, according to A1-A4 any one of them methods, wherein the brightness of the determination marker color, the text The brightness of the brightness of word color and the paper color, including:

The RGB color of the word of the e-book page of acquisition, paper and label is converted into corresponding word, paper The hsv color opened and marked;

According to the hsv color of the word, paper and label, the brightness of corresponding text color, paper color are determined The brightness of brightness and marker color.

A9, the method according to A8, wherein the marker color after the display adjustment brightness, including:

The hsv color of the label after adjustment brightness is converted into RGB color;

Show the RGB color of the label.

A10, the method according to A1, wherein led from the first color matching theme transition to the second color matching in the e-book page Before topic, the method further includes:

The colouring information that user selects when operation is marked to the e-book page is received, the colouring information is protected Save as the marker color.

The embodiment of the present invention additionally provides the display device of B11, a kind of e-book label, including:

Acquisition module is used for when the e-book page is from the first color matching theme transition to the second color matching theme, described in acquisition The marker color of label in the e-book page, and, word face of the e-book page under the second color matching theme Color and paper color;

Determining module, for determining the brightness of the marker color, the brightness of the text color and the paper face The brightness of color;

Module is adjusted, the brightness of the brightness and the paper color according to the text color is used for, adjusts the label The brightness of color;

Display module, for showing the marker color after adjusting brightness.

B12, the device according to B11, wherein the adjustment module includes:

First brightness determining module, brightness for determining the text color and in the brightness of the paper color compared with Big brightness;

Execution module is adjusted, for according to the determining brightness, adjusting the brightness of the marker color.

B13, the device according to B12, wherein adjustment execution module, for the setting according to the determining brightness Ratio adjusts the brightness of the marker color.

B14, the device according to B13, wherein the adjustment execution module, for according to the determining brightness 1/2, adjust the brightness of the marker color.

B15, according to B12-B14 any one of them devices, wherein the adjustment module further includes:

First judgment module, for, according to the determining brightness, adjusting the label face in the adjustment execution module Before the brightness of color, judge whether the determining brightness is less than the first luminance threshold of setting;

First execution module, if the judging result for first judgment module is less than bright using described first Spend the brightness of marker color described in adjusting thresholds;If the judging result of first judgment module is not less than described in Execution module is adjusted to execute.

B16, the device according to B12, wherein described device further includes:

Second judgment module, brightness for determining the text color in the first brightness determining module and described In the brightness of paper color before larger brightness, judge whether the e-book page is in night display pattern;

Second execution module, if the judging result for second judgment module is yes, by the text color The 1/2 of brightness is determined as the brightness for adjusting the marker color;If it is not, then being held into the first brightness determining module Row.

B17, the device according to B11, wherein described device further includes:

Third judgment module, for the brightness and the paper color in the adjustment module according to the text color Brightness, before the brightness for adjusting the marker color, judge the paper color brightness whether be less than the second luminance threshold Value;

Third execution module, if the judging result for the third judgment module is less than into the adjustment mould Block executes.

B18, according to B12-B14 any one of them devices, wherein the determining module includes:

Conversion module, for being converted to the RGB colors of the word of the e-book page obtained, paper and label The hsv color of corresponding word, paper and label;

Second brightness determining module determines corresponding word for the hsv color according to the word, paper and label The brightness of color, the brightness of paper color and marker color brightness.

B19, the device according to B18, wherein the display module, for the label after brightness will to be adjusted Hsv color is converted to RGB color;Show the RGB color of the label.

B20, the device according to B11, wherein described device further includes:

Preserving module, for before from the first color matching theme transition to the second color matching theme, receiving and using in the e-book page The colouring information is saved as the label face by the colouring information that family is selected when operation is marked to the e-book page Color.

The embodiment of the present invention additionally provides C21, a kind of terminal device, including:Processor, memory, communication interface and logical Believe bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;

The memory makes the processor execute such as storing an at least executable instruction, the executable instruction The corresponding operation of display methods of A1-A10 any one of them e-book label.

Claims (17)

1. a kind of display methods of e-book label, including:
When the e-book page is from the first color matching theme transition to the second color matching theme, the label in the e-book page is obtained Marker color, and, the e-book page it is described second color matching theme under text color and paper color;
Determine the brightness of the brightness of the marker color, the brightness and the paper color of the text color;
Determine the brightness of the text color and brightness larger in the brightness of the paper color;
Judge whether the determining larger brightness is less than the first luminance threshold of setting;
If being less than, the brightness of the marker color is adjusted using first luminance threshold;
If being not less than, according to the determining larger brightness, the brightness of the marker color is adjusted;
The marker color after display adjustment brightness.
2. it is described according to the determining larger brightness according to the method described in claim 1, wherein, adjust the label The brightness of color, including:
According to the setting ratio of the determining larger brightness, the brightness of the marker color is adjusted.
3. according to the method described in claim 2, wherein, the setting ratio according to the determining larger brightness is adjusted The brightness of the whole marker color, including:
According to the 1/2 of the determining larger brightness, the brightness of the marker color is adjusted.
4. according to the method described in claim 1, wherein, in the bright of the brightness and the paper color for determining the text color In degree before larger brightness, the method further includes:
Judge whether the e-book page is in night display pattern;
If so, by the 1/2 of the brightness of the text color, it is determined as the brightness for adjusting the marker color;
If it is not, then executing the step of the brightness and larger brightness in the brightness of the paper color of the determination text color Suddenly.
5. according to the method described in claim 1, wherein, according to the determining larger brightness, adjusting the label face Before the brightness of color, the method further includes:
Judge whether the brightness of the paper color is less than the second luminance threshold;
If being less than, described according to the determining larger brightness, the step of adjusting the brightness of the marker color is executed.
6. according to claim 1-5 any one of them methods, wherein the brightness of the determination marker color, the text The brightness of the brightness of word color and the paper color, including:
The RGB color of the word of the e-book page of acquisition, paper and label is converted into corresponding word, paper and mark The hsv color of note;
According to the hsv color of the word, paper and label, the brightness of corresponding text color, the brightness of paper color are determined With the brightness of marker color.
7. according to the method described in claim 6, wherein, the marker color after the display adjustment brightness, including:
The hsv color of the label after adjustment brightness is converted into RGB color;
Show the RGB color of the label.
8. according to the method described in claim 1, wherein, being led from the first color matching theme transition to the second color matching in the e-book page Before topic, the method further includes:
The colouring information that user selects when operation is marked to the e-book page is received, the colouring information is saved as into institute State marker color.
9. a kind of display device of e-book label, including:
Acquisition module, for when the e-book page is from the first color matching theme transition to the second color matching theme, obtaining the electronics The marker color of label in page face, and, the e-book page it is described second color matching theme under text color and Paper color;
Determining module, for determining the bright of the brightness of the marker color, the brightness of the text color and the paper color Degree;
Adjust module, including the first brightness determining module, adjustment execution module, the first judgment module and the first execution module;
Wherein, the first brightness determining module, brightness for determining the text color and in the brightness of the paper color compared with Big brightness;
Execution module is adjusted, for according to the determining larger brightness, adjusting the brightness of the marker color;
First judgment module, for, according to the determining larger brightness, adjusting the label in the adjustment execution module Before the brightness of color, judge whether the determining larger brightness is less than the first luminance threshold of setting;
First execution module, if for first judgment module judging result be less than, use first luminance threshold Value adjusts the brightness of the marker color;If the judging result of first judgment module is not less than into the adjustment Execution module executes;
Display module, for showing the marker color after adjusting brightness.
10. device according to claim 9, wherein the adjustment execution module, for according to determining described larger The setting ratio of brightness adjusts the brightness of the marker color.
11. device according to claim 10, wherein the adjustment execution module, for according to determining described larger Brightness 1/2, adjust the brightness of the marker color.
12. device according to claim 9, wherein described device further includes:
Second judgment module, the brightness for determining the text color in the first brightness determining module and the paper face In the brightness of color before larger brightness, judge whether the e-book page is in night display pattern;
Second execution module, if the judging result for second judgment module is yes, by the brightness of the text color 1/2, be determined as the brightness for adjusting the marker color;It is executed if it is not, then entering the first brightness determining module.
13. device according to claim 9, wherein described device further includes:
Third judgment module, for, according to the determining larger brightness, adjusting the label in the adjustment execution module Before the brightness of color, judge whether the brightness of the paper color is less than the second luminance threshold;
Third execution module, if the judging result for the third judgment module is less than into adjustment execution mould Block executes.
14. according to claim 9-13 any one of them devices, wherein the determining module includes:
Conversion module, it is corresponding for being converted to the RGB color of the word of the e-book page obtained, paper and label The hsv color of word, paper and label;
Second brightness determining module determines corresponding text color for the hsv color according to the word, paper and label Brightness, the brightness of paper color and the brightness of marker color.
15. device according to claim 14, wherein the display module, for the label after brightness will to be adjusted Hsv color be converted to RGB color;Show the RGB color of the label.
16. device according to claim 9, wherein described device further includes:
Preserving module, for before from the first color matching theme transition to the second color matching theme, receiving user in the e-book page and existing The colouring information selected when operation is marked to the e-book page, the colouring information is saved as into the marker color.
17. a kind of terminal device, 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 makes the processor execute as right is wanted for storing an at least executable instruction, the executable instruction The corresponding operation of display methods for asking 1-8 any one of them e-book to mark.
CN201611193098.2A 2016-12-21 2016-12-21 Display methods, device and the terminal device of e-book label CN106598436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611193098.2A CN106598436B (en) 2016-12-21 2016-12-21 Display methods, device and the terminal device of e-book label

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611193098.2A CN106598436B (en) 2016-12-21 2016-12-21 Display methods, device and the terminal device of e-book label

Publications (2)

Publication Number Publication Date
CN106598436A CN106598436A (en) 2017-04-26
CN106598436B true CN106598436B (en) 2018-07-20

Family

ID=58602384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611193098.2A CN106598436B (en) 2016-12-21 2016-12-21 Display methods, device and the terminal device of e-book label

Country Status (1)

Country Link
CN (1) CN106598436B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463307A (en) * 2017-07-31 2017-12-12 北京京东尚科信息技术有限公司 Document display method and device
CN107577654B (en) * 2017-09-14 2019-01-25 掌阅科技股份有限公司 E-book color matching method, electronic equipment and storage medium based on cover analysis

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508666A (en) * 2011-11-11 2012-06-20 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting application prompt message in application program
CN102591848A (en) * 2010-11-22 2012-07-18 微软公司 Selection of foreground characteristics based on background
CN104423909A (en) * 2013-08-26 2015-03-18 联想(北京)有限公司 Information processing method and electronic device
CN105549928A (en) * 2015-12-02 2016-05-04 广州阿里巴巴文学信息技术有限公司 Color matching method and device of display content
CN105912321A (en) * 2016-04-01 2016-08-31 乐视控股(北京)有限公司 Word color setting method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090102886A (en) * 2008-03-27 2009-10-01 엘지전자 주식회사 Display apparatus and method for summarizing of electronic document

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591848A (en) * 2010-11-22 2012-07-18 微软公司 Selection of foreground characteristics based on background
CN102508666A (en) * 2011-11-11 2012-06-20 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting application prompt message in application program
CN104423909A (en) * 2013-08-26 2015-03-18 联想(北京)有限公司 Information processing method and electronic device
CN105549928A (en) * 2015-12-02 2016-05-04 广州阿里巴巴文学信息技术有限公司 Color matching method and device of display content
CN105912321A (en) * 2016-04-01 2016-08-31 乐视控股(北京)有限公司 Word color setting method and device

Also Published As

Publication number Publication date
CN106598436A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
Gasparini et al. Color balancing of digital photos using simple image statistics
Gijsenij et al. Improving color constancy by photometric edge weighting
US7068380B2 (en) Print media catalog service
EP1742178B1 (en) Contrast enhancement of images
Gijsenij et al. Computational color constancy: Survey and experiments
US8594420B2 (en) Color naming, color categorization and describing color composition of images
Mantiuk et al. Color correction for tone mapping
US20090136152A1 (en) Image correcting apparatus and method, and image correcting program, and look-up table creating apparatus and method, and look-up table creating program
Morovič Color gamut mapping
KR100714395B1 (en) Apparatus for adjusting color of input image selectively and method the same
CA2464315C (en) User definable image reference points
JP2005202469A (en) Image processor, image processing method and program
Agarwal et al. An overview of color constancy algorithms
EP1533994A2 (en) Apparatus and method for controlling the colors of a color image
US7394468B2 (en) Converted digital colour image with improved colour distinction for colour-blinds
CN101939977B (en) System and method for printing using variable-density white ink under-printed layer
US20150078662A1 (en) Method for noise-robust color changes in digital images
US20060203270A1 (en) Color converting device emphasizing a contrast of output color data corresponding to a black character
Smith et al. Apparent greyscale: A simple and fast conversion to perceptually accurate images and video
EP1404113A1 (en) Method for automatically processing digital image data
US20050152612A1 (en) Applying an adjusted image enhancement algorithm to a digital image
CA2308739A1 (en) Blending colors in the presence of transparency
EP1965348A1 (en) Gray-scale correcting method, gray-scale correcting device, gray-scale correcting program, and image device
Bianco et al. Color constancy using faces
Pouli et al. Progressive histogram reshaping for creative color transfer and tone reproduction

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