CN107463307A - Document display method and device - Google Patents

Document display method and device Download PDF

Info

Publication number
CN107463307A
CN107463307A CN201710638367.XA CN201710638367A CN107463307A CN 107463307 A CN107463307 A CN 107463307A CN 201710638367 A CN201710638367 A CN 201710638367A CN 107463307 A CN107463307 A CN 107463307A
Authority
CN
China
Prior art keywords
document
information
adjustment
color
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710638367.XA
Other languages
Chinese (zh)
Inventor
莫文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710638367.XA priority Critical patent/CN107463307A/en
Publication of CN107463307A publication Critical patent/CN107463307A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04804Transparency, e.g. transparent or translucent windows

Abstract

This application discloses document display method and device.One embodiment of this method includes:Satisfaction in response to determining the first preparatory condition, obtains the first adjustment information corresponding with the first reading model, wherein, the first adjustment information includes mask information;Picture in document is adjusted based on mask information;Document after display adjustment.The embodiment realizes to be imbued with and pointedly the picture in document is adjusted.

Description

Document display method and device
Technical field
The application is related to field of computer technology, and in particular to Internet technical field, more particularly to document display method And device.
Background technology
With the popularization of the mobile terminals such as mobile phone, tablet personal computer, deep change also occurs for the reading method of people.More Traditional reading method such as books, newspaper has been abandoned come more people, then has selected e-book reading mode.So also make using shifting Dynamic terminal reading e-book becomes a kind of trend and fashion.
Present people generally prefer that night reading electronic book, can be by the back of the body of e-book in order to protect the eyes of people The colors such as scape, character are adjusted to dead color system color.However, lack the mechanism being adjusted to picture in the prior art, it is therefore, existing Picture is generally not provided with some e-book, so also causes the richness of the content of e-book to reduce.
The content of the invention
The purpose of the embodiment of the present application is to propose a kind of improved document display method and device, to solve background above The technical problem that technology segment is mentioned.
In a first aspect, the embodiment of the present application provides a kind of document display method, this method includes:In response to determining first The satisfaction of preparatory condition, the first adjustment information corresponding with the first reading model is obtained, wherein, the first adjustment information includes mask Information;Picture in document is adjusted based on mask information;Document after display adjustment.
In certain embodiments, the first adjustment information also includes object brightness information, target background colouring information, target word Accord with colouring information;And before the document after display adjusts, in addition to:The brightness adjustment that the screen of document will be shown is target Brightness indicated by monochrome information;The background color of background in document is adjusted to the face indicated by target background colouring information Color;The character color of character in document is adjusted to the color indicated by target character colouring information;And after display adjustment Document, including:The document after adjustment is shown on screen after the adjustment.
In certain embodiments, the first preparatory condition includes at least one of following:User performs and switches to the first reading mould The operation of formula;Current time is in the first preset time period;And the intensity level of the light of current environment is default less than first Intensity threshold.
In certain embodiments, the picture in document is adjusted based on mask information, including:Obtain the chi of the picture in document Very little and position;Using mask information, generation and the size identical mask of the picture in document;Mask is set in a document On the position of picture, so that the picture in document is completely covered in mask.
In certain embodiments, this method also includes:In response to detecting that user performs the first behaviour to the picture in document Make, obtain the corresponding transparence information of the first operation, and the transparency of mask is adjusted to transparent corresponding to the first operation Spend the transparency indicated by information.
In certain embodiments, if the first operation is amplifieroperation, the transparence information corresponding to amplifieroperation is signified The transparency shown is directly proportional to the magnification ratio corresponding to amplifieroperation.
In certain embodiments, it is determined that after the satisfaction of the first preparatory condition, in addition to:Obtain the screen for showing document The monochrome information of present intensity, the Background color information of current background in document, the character face of current character in document Color information, as the second adjustment information corresponding with the second reading model.
In certain embodiments, this method also includes:Satisfaction in response to determining the second preparatory condition, document will be shown The brightness indicated by monochrome information in the luminance recovery of screen to the second adjustment information, by the background color of the background in document Recover to the color indicated by the Background color information in the second adjustment information, by the character color of the character in document recover to The color indicated by character color information in second adjustment information;Mask on the picture of covering in a document is removed; The document after recovering is shown on screen after recovery.
In certain embodiments, the second preparatory condition includes at least one of following:User performs and switches to the second reading mould The operation of formula;Current time is in the second preset time period;And the intensity level of the light of current environment is default higher than second Intensity threshold.
Second aspect, the embodiment of the present application provide a kind of document display device, and the device includes:First acquisition unit, The satisfaction in response to determining the first preparatory condition is configured to, obtains the first adjustment information corresponding with the first reading model, its In, the first adjustment information includes mask information;First adjustment unit, it is configured to adjust the figure in document based on mask information Piece;First display unit, the document being configured to after display adjustment.
In certain embodiments, the first adjustment information also includes object brightness information, target background colouring information, target word Accord with colouring information;And the device also includes:Second adjustment unit, the brightness adjustment of screen for being configured to that document will be shown are Brightness indicated by object brightness information;3rd adjustment unit, it is configured to the background color of the background in document being adjusted to Color indicated by target background colouring information;4th adjustment unit, it is configured to the character color tune of the character in document The whole color indicated by target character colouring information;And first display unit be further configured to:Screen after the adjustment The document after adjustment is shown on curtain.
In certain embodiments, the first preparatory condition includes at least one of following:User performs and switches to the first reading mould The operation of formula;Current time is in the first preset time period;And the intensity level of the light of current environment is default less than first Intensity threshold.
In certain embodiments, the first adjustment unit, including:Subelement is obtained, is configured to obtain the picture in document Size and position;Subelement is generated, is configured to utilize mask information, generation and the size identical of the picture in document are covered Layer;Subelement is set, is configured on the position of the picture by mask setting in a document, so that mask is completely covered in document Picture.
In certain embodiments, the device also includes:5th adjustment unit, it is configured in response to detecting user to text Picture in shelves performs the first operation, obtains the corresponding transparence information of the first operation, and the transparency of mask is adjusted to Transparency indicated by the corresponding transparence information of first operation.
In certain embodiments, if the first operation is amplifieroperation, the transparence information corresponding to amplifieroperation is signified The transparency shown is directly proportional to the magnification ratio corresponding to amplifieroperation.
In certain embodiments, the device also includes:Second acquisition unit, it is configured to obtain the screen of display document The monochrome information of present intensity, the Background color information of the current background in document, the character color of current character in document Information, as the second adjustment information corresponding with the second reading model.
In certain embodiments, the device also includes:Recovery unit, it is configured in response to determining the second preparatory condition Meet, will show document screen luminance recovery to the second adjustment information in monochrome information indicated by brightness, by document In the background color of background recover to the color indicated by the Background color information in the second adjustment information, by the word in document The character color of symbol recovers to the color indicated by the character color information in the second adjustment information;Removal unit, it is configured to Mask on the picture of covering in a document is removed;Second display unit, it is configured to show on screen after recovery extensive Document after multiple.
In certain embodiments, the second preparatory condition includes at least one of following:User performs and switches to the second reading mould The operation of formula;Current time is in the second preset time period;And the intensity level of the light of current environment is default higher than second Intensity threshold.
The third aspect, the embodiment of the present application provide a kind of terminal device, and the terminal device includes:One or more processing Device;Storage device, for storing one or more programs;When one or more programs are executed by one or more processors, make Obtain method of the one or more processors realization as described in any implementation in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable recording medium, are stored thereon with computer journey Sequence, the method as described in any implementation in first aspect is realized when the computer program is executed by processor.
The document display method and device that the embodiment of the present application provides, it is determined that the situation of the satisfaction of the first preparatory condition Under, obtain the first adjustment information corresponding with the first reading model;Then, adjusted based on the mask information in the first adjustment information Picture in document;Finally, the document after display adjustment.Pointedly the picture in document is adjusted it is achieved thereby that being imbued with It is whole, the picture in the document after so adjusting after can display adjustment, the content of the document contributed to after abundant adjustment.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that the embodiment of the present application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the document display method of the application;
Fig. 3 is the flow chart according to another embodiment of the document display method of the application;
Fig. 4 a are the schematic diagrames that the document before adjusting is shown on terminal device;
Fig. 4 b are the schematic diagrames that the document after adjusting is shown on terminal device;
Fig. 5 is the structural representation according to one embodiment of the document display device of the application;
Fig. 6 is adapted for the structural representation of the computer system of the terminal device for realizing the embodiment of the present application.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Be easy to describe, illustrate only in accompanying drawing to about the related part of invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the application in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the exemplary system of the embodiment of the document display method that can apply the application or document display device System framework 100.
As shown in figure 1, system architecture 100 can include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 provide communication link medium.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted with using terminal equipment 101,102,103 by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications can be installed on terminal device 101,102,103, such as read application, webpage Browser application, searching class application etc..
Terminal device 101,102,103 can be the various electronic equipments for having display screen and supporting document to read, and wrap Include but be not limited to smart mobile phone, tablet personal computer, E-book reader, pocket computer on knee and desktop computer etc..
Server 105 can be to provide the server of various services, such as to being shown on terminal device 101,102,103 Document provides the background server supported.Background server can be to the document that is received from terminal device 101,102,103 Obtain the data such as request and analyze etc. processing, and by result (such as document before adjusting) feed back to terminal device 101, 102、103。
It should be noted that the document display method that is provided of the embodiment of the present application typically by terminal device 101,102, 103 are performed, and correspondingly, document display device is generally positioned in terminal device 101,102,103.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realizing need Will, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the flow 200 of one embodiment of document display method according to the application is shown.This article Shelves display methods, comprises the following steps:
Step 201, in response to the satisfaction of the first preparatory condition of determination, the first adjustment corresponding with the first reading model is obtained Information.
In the present embodiment, electronic equipment (such as the terminal device shown in Fig. 1 in document display method operation thereon 101st, 102 in the case of the satisfaction for, 103) determining the first preparatory condition, electronic equipment from local or can communicate with connection Server (such as server 105 shown in Fig. 1) obtain corresponding with the first reading model the first adjustment information.Wherein, it is literary Shelves can be referred to as electronic document again, and it can include but is not limited to electronic document, electronic mail, electronic report forms, electronic drawing Etc..The reading model of document can include the first reading model and the second reading model, and the first reading model can be night Reading model, the second reading model can be reading models on daytime.First adjustment information can include mask information.As showing , the mask information in the first adjustment information can be the grey mask that transparency is 30%.
In the present embodiment, user can obtain text beforehand through electronic equipment from the server for communicate with connection Shelves.When user opens document using electronic equipment, electronic equipment generally can show document with the second reading model.When it is determined that When meeting the first preparatory condition, electronic equipment can obtain the first adjustment information corresponding with the first reading model, and based on the One adjustment information is adjusted to document, to realize that electronic equipment shows document with the first reading model.
In some optional implementations of the present embodiment, the first preparatory condition can include but is not limited to below at least One:
1st, user performs the operation for switching to the first reading model.As an example, it can be provided with document display interface Switching key corresponding with the first reading model, when user clicks on switching key corresponding with the first reading model, then illustrate Now meet the first preparatory condition.Wherein, switching key corresponding with the first reading model can be physical button, can also It is virtual key.If switching key corresponding with the first reading model is virtual key, switching corresponding with the first reading model Button can be directly displayed on document display interface, can not also be directly displayed on document display interface.For example, usual feelings Switching key corresponding with the first reading model is not shown on condition Documents display interface, when user is clicked on document display interface Predeterminated position when, can just show switching key corresponding with the first reading model on document display interface.
2nd, current time is in the first preset time period.Specifically, electronic equipment can pre-set first it is default when Between section;It is then determined that whether current time is in the first preset time period;If last current time is in the first preset time In section, then illustrate now to meet the first preparatory condition.
3rd, the intensity level of the light of current environment is less than the first preset strength threshold value.Specifically, electronic equipment can be advance First preset strength threshold value is set;Then the intensity level of the light of current environment and the first preset strength threshold value are also compared Compared with;Finally, if the intensity level of the light of current environment is less than the first preset strength threshold value, illustrate that now meeting first presets Condition.
Step 202, the picture in document is adjusted based on mask information.
In the present embodiment, based on the first adjustment information acquired in step 201, electronic equipment can be based on first and adjust The picture in mask information adjustment document in whole information.As an example, if the mask information in the first adjustment information is transparent The grey mask for 30% is spent, electronic equipment can be melted the grey mask that transparency is 30% with the picture in document Close, generate and show the picture after fusion.
In some optional implementations of the present embodiment, electronic equipment can also be in the following way in document Picture is adjusted:
First, electronic equipment can obtain size and the position of the picture in document.If the as an example, picture in document It is rectangle picture, electronic equipment can obtain dimension information of the length and width as picture of picture, and electronic equipment may be used also To obtain coordinate of four summits of picture in default two-dimensional coordinate system as the positional information of picture.Wherein, two dimension is preset Plane residing for coordinate system can be the plane residing for the screen of electronic equipment, and the origin for presetting two-dimensional coordinate system can be electronics Any point in plane residing for the screen of equipment, the X-axis for presetting two-dimensional coordinate system can be residing for the screen of electronic equipment Plane on any straight line, the Y-axis of default two-dimensional coordinate system can be in plane residing for the screen of electronic equipment with X The vertical any straight line of axle.
Then, electronic equipment can utilize mask information, generation and the size identical mask of the picture in document.As Example, if the picture in document is rectangle picture, electronic equipment can generate the length with the length and width all same of picture Square mask.
Finally, electronic equipment can be set mask on the position of picture in a document, so that text is completely covered in mask Picture in shelves.As an example, if the picture in document is rectangle picture, electronic equipment can be by four summits of mask point Do not overlapped with four summits of picture, and mask is arranged on to the top of picture.
Step 203, the document after display adjustment.
In the present embodiment, electronic equipment can show the document after adjustment picture on screen.
In some optional implementations of the present embodiment, in response to detecting that user performs the to the picture in document One operation, the corresponding transparence information of the first operation is obtained, and the transparency of mask is adjusted to corresponding to the first operation Transparency indicated by transparence information.As an example, transparency adjustment bar can be provided with picture in document, work as electronics When equipment detects that user performs regulation operation to the transparency adjustment bar on the picture in document, transparency regulation can be obtained The regulation ratio of bar, and to adjust the transparency that ratio correspondingly adjusts the mask on the picture of covering in a document.Wherein, thoroughly Lightness adjustment bar can be entity adjustment bar or virtual adjustment bar.If transparency adjustment bar is virtual adjustment bar, transparent Degree adjustment bar can be directly displayed on picture in a document, can not also be directly displayed on picture in a document.It is for example, logical Transparency adjustment bar is not shown on picture in reason condition Documents, when user clicks on the predeterminated position on the picture in document When, transparency adjustment bar can be just shown on the picture in document.
In some optional implementations of the present embodiment, if the first operation is amplifieroperation, amplifieroperation institute is right The transparency indicated by transparence information answered is directly proportional to the magnification ratio corresponding to amplifieroperation.If as an example, user Picture is enlarged into 2 times of photo current, then the transparency for the mask being covered on picture will be adjusted to current transparent degree 2 times.If picture is enlarged into full screen display by user, the transparency for the mask being covered on picture will be adjusted to full impregnated It is bright.
The document display method that the embodiment of the present application provides, it is determined that in the case of the satisfaction of the first preparatory condition, obtain The first adjustment information corresponding with the first reading model;Then, based in the mask information adjustment document in the first adjustment information Picture;Finally, the document after display adjustment.Pointedly the picture in document is adjusted it is achieved thereby that being imbued with, this Picture in document after sample adjustment after can display adjustment, the content of the document contributed to after abundant adjustment.
With further reference to Fig. 3, it illustrates the flow 300 of another of document display method embodiment.The document is shown The flow 300 of method, comprises the following steps:
Step 301, in response to the satisfaction of the first preparatory condition of determination, the first adjustment corresponding with the first reading model is obtained Information.
In the present embodiment, electronic equipment (such as the terminal device shown in Fig. 1 in document display method operation thereon 101st, 102 in the case of the satisfaction for, 103) determining the first preparatory condition, electronic equipment from local or can communicate with connection Server (such as server 105 shown in Fig. 1) obtain corresponding with the first reading model the first adjustment information.Wherein, it is literary Shelves can be referred to as electronic document again, and it can include but is not limited to electronic document, electronic mail, electronic report forms, electronic drawing Etc..The reading model of document can include the first reading model and the second reading model, and the first reading model can be night Reading model, the second reading model can be reading models on daytime.First adjustment information can include object brightness information, target Background color information, target character colouring information and mask information.As an example, the object brightness information in the first adjustment information Can be the 25% of present intensity, the target background colouring information in the first adjustment information can be Dark grey, the first adjustment letter Target character colouring information in breath can be light grey, and the mask information in the first adjustment information can be that transparency is 30% Grey mask.
Step 302, monochrome information, the background of current background in document of the present intensity for the screen for showing document are obtained The character color information of current character in colouring information, document, as the second adjustment information corresponding with the second reading model.
In the present embodiment, in the case of the satisfaction that the second preparatory condition is determined in electronic equipment, electronic equipment can obtain Take in the monochrome information of present intensity of the screen of display document, the Background color information of current background in document, document The character color information of current character, and preserved as the second adjustment information corresponding with the second reading model.It is real It is typically that document is shown with the second reading model on electronic equipment when user opens document using electronic equipment in trampling.
Step 303, the picture in document is adjusted based on mask information.
In the present embodiment, based on the first adjustment information acquired in step 301, electronic equipment can be based on first and adjust The picture in mask information adjustment document in whole information.As an example, if the mask information in the first adjustment information is transparent The grey mask for 30% is spent, electronic equipment can be melted the grey mask that transparency is 30% with the picture in document Close, generate and show the picture after fusion.
Step 304, brightness of the brightness adjustment of the screen of document indicated by object brightness information will be shown.
In the present embodiment, document can will be shown based on the first adjustment information acquired in step 301, electronic equipment Electronic equipment screen brightness adjustment be the first adjustment information in object brightness information indicated by brightness.As showing Example, if the object brightness information in the first adjustment information is the 25% of present intensity, electronic equipment can adjust the brightness of screen It is whole for the 25% of present intensity.
Step 305, the background color of the background in document is adjusted to the color indicated by target background colouring information.
In the present embodiment, based on the first adjustment information acquired in step 301, electronic equipment can be by document The background color of background is adjusted to the color indicated by the target background colouring information in the first adjustment information.If as an example, Target background colouring information in first adjustment information is Dark grey, and electronic equipment can be by the background color of the background in document It is adjusted to Dark grey.
Step 306, the character color of the character in document is adjusted to the color indicated by target character colouring information.
In the present embodiment, based on the first adjustment information acquired in step 301, electronic equipment can be by document The character color of character is adjusted to the color indicated by the target character colouring information in the first adjustment information.If as an example, Target character colouring information in first adjustment information is light grey, and electronic equipment can be by the character color of the character in document It is adjusted to light grey.
Step 307, the document after adjustment is shown on screen after the adjustment.
In the present embodiment, electronic equipment can show adjustment background color, character face on the screen after adjusting brightness Document after color and picture.
Step 308, in response to determining the satisfaction of the second preparatory condition, the luminance recovery of screen of document will be shown to second The brightness indicated by monochrome information in adjustment information, the background color of the background in document is recovered into the second adjustment information Background color information indicated by color, the character color of the character in document is recovered to the character in the second adjustment information Color indicated by colouring information.
In the present embodiment, in the case of the satisfaction that the second preparatory condition is determined in electronic equipment, electronic equipment can be with base The second acquired adjustment information in step 302, the luminance recovery of screen of document will be shown into the second adjustment information Brightness indicated by monochrome information, the background color of the background in document is recovered to the background color in the second adjustment information to believe The indicated color of breath, the character color of the character in document is recovered signified to the character color information in the second adjustment information The color shown.
In some optional implementations of the present embodiment, the second preparatory condition can include but is not limited to below at least One:
1st, user performs the operation for switching to the second reading model.As an example, it can be provided with document display interface Switching key corresponding with the second reading model, when user clicks on switching key corresponding with the second reading model, then illustrate User performs the operation for switching to the second reading model, now just meets the second preparatory condition.Wherein, mould is read with second Switching key corresponding to formula can be physical button or virtual key.If switching corresponding with the second reading model is pressed Key is virtual key, and switching key corresponding with the second reading model can be directly displayed on document display interface, can also It is not directly displayed on document display interface.
2nd, current time is in the second preset time period.Specifically, electronic equipment can pre-set second it is default when Between section;It is then determined that whether current time is in the second preset time period;If last current time is in the second preset time In section, then illustrate now to meet the second preparatory condition.
3rd, the intensity level of the light of current environment is higher than the second preset strength threshold value.Specifically, electronic equipment can be advance Second preset strength threshold value is set;Then by the intensity level of the light of current environment compared with the second preset strength threshold value; Finally, if the intensity level of the light of current environment is higher than the second preset strength threshold value, illustrate now to meet the second default bar Part.
Step 309, the mask covered on picture in a document is removed.
In the present embodiment, in the case of the satisfaction that the second preparatory condition is determined in electronic equipment, electronic equipment can incite somebody to action Mask on the picture of covering in a document removes.For example, electronic equipment can be by the mask on the picture of covering in a document Delete, the transparency of the mask on the picture of covering in a document can also be adjusted to all-transparent.
Step 310, the document after recovering is shown on screen after recovery.
In the present embodiment, electronic equipment can be shown on the screen after recovering brightness recovers background color, character face Document after color and picture.
The embodiment of the present application provides an application scenarios of document display method.In the application scenarios, when user makes When opening document with terminal device, the document before adjustment can be shown on terminal device, wherein, the document before adjustment can be such as figure Shown in 4a.Afterwards, when user clicks on the switching key corresponding with the first reading model on document display interface, terminal device The first adjustment information corresponding with the first reading model can be obtained, wherein, the object brightness information in the first adjustment information can To be the 25% of present intensity, the target background colouring information in the first adjustment information can be Dark grey, the first adjustment information In target character colouring information can be light grey, the mask information in the first adjustment information can be that transparency is 30% Grey mask.Then, terminal device can will show that the brightness adjustment of the screen of document is the 25% of present intensity, by document The background color of background be adjusted to Dark grey, the character color of the character in document is adjusted to light grey, and by transparency Covered for 30% grey mask on picture in a document.Finally, tune is shown on the screen that terminal device can be after the adjustment Document after whole, wherein, the document after adjustment can be as shown in Figure 4 b.When user clicks on being read with second on document display interface Corresponding to reading mode during switching key, terminal device can will show brightness of the luminance recovery of the screen of document to before adjusting, The background color of background in document is recovered into the background color to adjustment, by the character color of the character in document recover to Character color before adjustment, and the mask on the picture of covering in a document is removed, finally, terminal device can be after recovery Screen on show recover after document, wherein, the document after recovery can be as shown in fig. 4 a.
From figure 3, it can be seen that compared with embodiment corresponding to Fig. 2, the flow of the document display method in the present embodiment 300 add the step of recovering document.Thus, the scheme of the present embodiment description determines expiring for the second preparatory condition in electronic equipment In the case of foot, electronic equipment can be rapidly to showing background color, the text of the background in the brightness of screen of document, document Picture in the character color and document of character in shelves is recovered, it is achieved thereby that rapidly showing on screen after recovery Show the document after recovering.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of display of document to fill The one embodiment put, the device embodiment is corresponding with the embodiment of the method shown in Fig. 2, and the device specifically can apply to respectively In kind electronic equipment.
As shown in figure 5, the document display device 500 of the present embodiment can include:First acquisition unit 501, first adjusts The display unit 503 of unit 502 and first.Wherein, first acquisition unit 501, it is configured in response to determining the first preparatory condition Satisfaction, obtain corresponding with the first reading model the first adjustment information, wherein, the first adjustment information includes mask information;The One adjustment unit 502, it is configured to adjust the picture in document based on mask information;First display unit 503, is configured to The document after adjustment is shown on screen after adjustment.
In the present embodiment, in document display device 500:First acquisition unit 501, the first adjustment unit 502 and first The specific processing of display unit 503 and its caused technique effect can respectively with reference to the step 201 in the corresponding embodiment of figure 2, The related description of step 202 and step 203, will not be repeated here.
In some optional implementations of the present embodiment, the first adjustment information can also include object brightness information, Target background colouring information, target character colouring information;And document display device 500 can also include:Second adjustment unit (not shown), it is configured to brightness of the brightness adjustment indicated by object brightness information by the screen of document is shown;The Three adjustment unit (not shown)s, it is configured to the background color of the background in document being adjusted to target background colouring information Indicated color;4th adjustment unit (not shown), it is configured to the character color of the character in document being adjusted to Color indicated by target character colouring information;And first display unit 503 be further configured to:Screen after the adjustment Document after upper display adjustment
In some optional implementations of the present embodiment, the first preparatory condition can include but is not limited to below at least One:User performs the operation for switching to the first reading model;Current time is in the first preset time period;And work as front ring The intensity level of the light in border is less than the first preset strength threshold value.
In some optional implementations of the present embodiment, the first adjustment unit 502 can include:Obtain subelement (not shown), it is configured to obtain size and the position of the picture in document;Generate subelement (not shown), configuration For utilizing mask information, generation and the size identical mask of the picture in document;Subelement (not shown) is set, matched somebody with somebody The position for the picture by mask setting in a document is put, so that the picture in document is completely covered in mask.
In some optional implementations of the present embodiment, document display device 500 can also include:5th adjustment is single First (not shown), it is configured to, in response to detecting that user performs the picture in document the first operation, obtain the first behaviour Make corresponding transparence information, and indicated by the transparence information that the transparency of mask is adjusted to corresponding to the first operation Transparency.
In some optional implementations of the present embodiment, if the first operation is amplifieroperation, amplifieroperation institute is right The transparency indicated by transparence information answered is directly proportional to the magnification ratio corresponding to amplifieroperation.
In some optional implementations of the present embodiment, document display device 500 can also include:Second obtains list First (not shown), it is configured to obtain the current back of the body in the monochrome information of the present intensity for the screen for showing document, document The character color information of the Background color information of scape, the current character in document, as corresponding with the second reading model second Adjustment information.
In some optional implementations of the present embodiment, document display device 500 can also include:Recovery unit (not shown), the satisfaction in response to determining the second preparatory condition is configured to, the luminance recovery of the screen of document will be shown The brightness indicated by monochrome information into the second adjustment information, the background color of the background in document is recovered to the second adjustment The color indicated by Background color information in information, the character color of the character in document is recovered into the second adjustment information Character color information indicated by color;Removal unit (not shown), it is configured to the picture in a document by covering On mask remove;Second display unit (not shown), it is configured to show the text after recovering on screen after recovery Shelves.
In some optional implementations of the present embodiment, the second preparatory condition can include but is not limited to below at least One:User performs the operation for switching to the second reading model;Current time is in the second preset time period;And work as front ring The intensity level of the light in border is higher than the second preset strength threshold value.
Below with reference to Fig. 6, it illustrates suitable for for realizing the computer system 600 of the terminal device of the embodiment of the present application Structural representation.Terminal device shown in Fig. 6 is only an example, to the function of the embodiment of the present application and should not use model Shroud carrys out any restrictions.
As shown in fig. 6, computer system 600 includes CPU (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into program in random access storage device (RAM) 603 from storage part 608 and Perform various appropriate actions and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interfaces 605 are connected to lower component:Importation 606 including keyboard, mouse etc.;Including such as liquid crystal Show the output par, c 607 of device (LCD) etc. and loudspeaker etc.;Storage part 608 including hard disk etc.;And including such as LAN The communications portion 609 of the NIC of card, modem etc..Communications portion 609 performs via the network of such as internet Communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media 611, such as disk, CD, magneto-optic Disk, semiconductor memory etc., it is arranged on as needed on driver 610, in order to the computer program root read from it Part 608 is stored according to needing to be mounted into.
Especially, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product, it includes being carried on computer-readable medium On computer program, the computer program include be used for execution flow chart shown in method program code.In such reality To apply in example, the computer program can be downloaded and installed by communications portion 609 from network, and/or from detachable media 611 are mounted.When the computer program is performed by CPU (CPU) 601, perform what is limited in the present processes Above-mentioned function.
It should be noted that the above-mentioned computer-readable medium of the application can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer-readable recording medium for example can be but unlimited In:Electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than combination.Computer can Reading the more specifically example of storage medium can include but is not limited to:Electrically connecting with one or more wires, portable meter Calculation machine disk, hard disk, random access storage device (RAM), read-only storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory device or The above-mentioned any appropriate combination of person.In this application, computer-readable recording medium can be any includes or storage program Tangible medium, the program can be commanded execution system, device either device use or it is in connection.And in this Shen Please in, computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, its In carry computer-readable program code.The data-signal of this propagation can take various forms, and include but is not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable Any computer-readable medium beyond storage medium, the computer-readable medium can send, propagate or transmit for by Instruction execution system, device either device use or program in connection.The journey included on computer-readable medium Sequence code can be transmitted with any appropriate medium, be included but is not limited to:Wirelessly, electric wire, optical cable, RF etc., or it is above-mentioned Any appropriate combination.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation The part of one module of table, program segment or code, the part of the module, program segment or code include one or more use In the executable instruction of logic function as defined in realization.It should also be noted that marked at some as in the realization replaced in square frame The function of note can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actually It can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.Also to note Meaning, the combination of each square frame and block diagram in block diagram and/or flow chart and/or the square frame in flow chart can be with holding Function as defined in row or the special hardware based system of operation are realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be set within a processor, for example, can be described as:A kind of processor bag Include first acquisition unit, the first adjustment unit and the first display unit.Wherein, the title of these units is not under certain conditions The restriction to the unit in itself is formed, for example, first acquisition unit is also described as " in response to determining the first preparatory condition Satisfaction, obtain the unit of corresponding with the first reading model the first adjustment information ".
As on the other hand, present invention also provides a kind of computer-readable medium, the computer-readable medium can be Included in terminal device described in above-described embodiment;Can also be individualism, and without be incorporated the terminal device in. Above computer computer-readable recording medium carries one or more program, when said one or multiple programs are held by the terminal device During row so that the terminal device:Satisfaction in response to determining the first preparatory condition, obtains corresponding with the first reading model first Adjustment information, wherein, the first adjustment information includes mask information;Picture in document is adjusted based on mask information;After the adjustment Screen on show adjustment after document.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to the technology that the particular combination of above-mentioned technical characteristic forms Scheme, while should also cover in the case where not departing from foregoing invention design, carried out by above-mentioned technical characteristic or its equivalent feature The other technical schemes for being combined and being formed.Such as features described above has similar work(with (but not limited to) disclosed herein The technical scheme that the technical characteristic of energy is replaced mutually and formed.

Claims (16)

1. a kind of document display method, it is characterised in that methods described includes:
Satisfaction in response to determining the first preparatory condition, obtains the first adjustment information corresponding with the first reading model, wherein, institute Stating the first adjustment information includes mask information;
Picture in document is adjusted based on the mask information;
Document after display adjustment.
2. according to the method for claim 1, being characterised by, first adjustment information also includes object brightness information, mesh Mark Background color information, target character colouring information;And
Before document after the display adjustment, in addition to:
Brightness of the brightness adjustment of the screen of the document indicated by the object brightness information will be shown;
The background color of background in the document is adjusted to the color indicated by the target background colouring information;
The character color of character in the document is adjusted to the color indicated by the target character colouring information;And
Document after the display adjustment, including:
The document after adjustment is shown on screen after the adjustment.
3. according to the method for claim 1, it is characterised in that first preparatory condition includes at least one of following:
User performs the operation for switching to first reading model;
Current time is in the first preset time period;And
The intensity level of the light of current environment is less than the first preset strength threshold value.
4. according to the method for claim 1, it is characterised in that described to be adjusted based on the mask information in the document Picture, including:
Obtain size and the position of the picture in the document;
Using the mask information, generation and the size identical mask of the picture in the document;The mask is arranged on On the position of picture in the document, so that the picture in the document is completely covered in the mask.
5. according to the method for claim 4, it is characterised in that methods described also includes:
In response to detecting that user performs the first operation to the picture in the document, obtain saturating corresponding to first operation Lightness information, and the transparency of the mask is adjusted to transparent indicated by the corresponding transparence information of first operation Degree.
6. according to the method for claim 5, it is characterised in that if first operation is amplifieroperation, the amplification Transparency indicated by the corresponding transparence information of operation is directly proportional to the magnification ratio corresponding to the amplifieroperation.
7. according to the method for claim 2, it is characterised in that it is determined that after the satisfaction of the first preparatory condition, in addition to:
The background color of the monochrome information of the present intensity of the screen of the acquisition display document, the current background in the document Information, the character color information of current character in the document, as the second adjustment information corresponding with the second reading model.
8. according to the method for claim 7, it is characterised in that methods described also includes:
In response to determine the second preparatory condition satisfaction, will show the document screen luminance recovery to described second adjustment The brightness indicated by monochrome information in information, the background color of the background in the document is recovered to the described second adjustment to believe The color indicated by Background color information in breath, the character color of the character in the document is recovered to the described second adjustment The color indicated by character color information in information;
The mask on the picture of covering within said document is removed;
The document after recovering is shown on screen after recovery.
9. according to the method for claim 8, it is characterised in that second preparatory condition includes at least one of following:
User performs the operation for switching to second reading model;
Current time is in the second preset time period;And
The intensity level of the light of current environment is higher than the second preset strength threshold value.
10. a kind of document display device, it is characterised in that described device includes:
First acquisition unit, the satisfaction in response to determining the first preparatory condition is configured to, obtained and first reading model Corresponding first adjustment information, wherein, first adjustment information includes object brightness information, target background colouring information, mesh Marking-up accords with colouring information and mask information;
First adjustment unit,
It is configured to adjust the picture in document based on the mask information;
First display unit, the document being configured to after display adjustment.
11. device according to claim 10, it is characterised in that first adjustment information also includes object brightness and believed Breath, target background colouring information, target character colouring information;And
Described device also includes:
Second adjustment unit, it is configured to the brightness adjustment for showing the screen of the document is signified for the object brightness information The brightness shown;
3rd adjustment unit, it is configured to the background color of the background in the document being adjusted to the target background color letter The indicated color of breath;
4th adjustment unit, it is configured to the character color of the character in the document being adjusted to the target character color letter The indicated color of breath;And
First display unit is further configured to:
The document after adjustment is shown on screen after the adjustment.
12. device according to claim 10, it is characterised in that first adjustment unit, including:
Subelement is obtained, is configured to obtain size and the position of the picture in the document;
Subelement is generated, is configured to utilize the mask information, generation and the size identical of the picture in the document are covered Layer;
Subelement is set, is configured on the position of the picture by mask setting within said document, so that the mask The picture in the document is completely covered.
13. device according to claim 11, it is characterised in that described device also includes:
Second acquisition unit, it is configured to obtain the monochrome information of the present intensity for the screen for showing the document, the document In the Background color information of current background, the character color information of current character in the document, read as with second Second adjustment information corresponding to pattern.
14. device according to claim 13, it is characterised in that described device also includes:
Recovery unit, the satisfaction in response to determining the second preparatory condition is configured to, the brightness of the screen of the document will be shown Recover to the brightness indicated by the monochrome information in second adjustment information, the background color of the background in the document is extensive Color indicated by the multiple Background color information in second adjustment information, by the character color of the character in the document Recover to the color indicated by the character color information in second adjustment information;
Removal unit, it is configured to remove the mask covered on picture within said document;
Second display unit, it is configured to show the document after recovering on screen after recovery.
15. a kind of terminal device, it is characterised in that the terminal device includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are by one or more of computing devices so that one or more of processors are real The now method as described in any in claim 1-9.
16. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The method as described in any in claim 1-9 is realized when being executed by processor.
CN201710638367.XA 2017-07-31 2017-07-31 Document display method and device Pending CN107463307A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710638367.XA CN107463307A (en) 2017-07-31 2017-07-31 Document display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710638367.XA CN107463307A (en) 2017-07-31 2017-07-31 Document display method and device

Publications (1)

Publication Number Publication Date
CN107463307A true CN107463307A (en) 2017-12-12

Family

ID=60547128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710638367.XA Pending CN107463307A (en) 2017-07-31 2017-07-31 Document display method and device

Country Status (1)

Country Link
CN (1) CN107463307A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062645A (en) * 2018-07-11 2018-12-21 北京字节跳动网络技术有限公司 The method and apparatus of processing information for terminal
CN109614192A (en) * 2018-12-07 2019-04-12 北京金山云网络技术有限公司 Page brightness display methods and device
CN110930302A (en) * 2018-08-30 2020-03-27 珠海金山办公软件有限公司 Picture processing method and device, electronic equipment and readable storage medium
CN111611037A (en) * 2020-05-09 2020-09-01 掌阅科技股份有限公司 View object processing method for electronic book, electronic device and storage medium
CN113655934A (en) * 2021-08-30 2021-11-16 咪咕数字传媒有限公司 Electronic file display method and device, computing equipment and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984488A (en) * 2014-05-26 2014-08-13 联想(北京)有限公司 Information processing method and electronic equipment
CN104252327A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Reading mode start method and device
CN104347051A (en) * 2014-06-30 2015-02-11 腾讯科技(深圳)有限公司 Method and system for adjusting screen brightness
CN105144067A (en) * 2013-03-15 2015-12-09 苹果公司 Device, method, and graphical user interface for adjusting the appearance of a control
CN106598436A (en) * 2016-12-21 2017-04-26 掌阅科技股份有限公司 Method and apparatus for displaying e-book mark, and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105144067A (en) * 2013-03-15 2015-12-09 苹果公司 Device, method, and graphical user interface for adjusting the appearance of a control
CN104252327A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Reading mode start method and device
CN103984488A (en) * 2014-05-26 2014-08-13 联想(北京)有限公司 Information processing method and electronic equipment
CN104347051A (en) * 2014-06-30 2015-02-11 腾讯科技(深圳)有限公司 Method and system for adjusting screen brightness
CN106598436A (en) * 2016-12-21 2017-04-26 掌阅科技股份有限公司 Method and apparatus for displaying e-book mark, and terminal device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062645A (en) * 2018-07-11 2018-12-21 北京字节跳动网络技术有限公司 The method and apparatus of processing information for terminal
CN110930302A (en) * 2018-08-30 2020-03-27 珠海金山办公软件有限公司 Picture processing method and device, electronic equipment and readable storage medium
CN110930302B (en) * 2018-08-30 2024-03-26 珠海金山办公软件有限公司 Picture processing method and device, electronic equipment and readable storage medium
CN109614192A (en) * 2018-12-07 2019-04-12 北京金山云网络技术有限公司 Page brightness display methods and device
CN111611037A (en) * 2020-05-09 2020-09-01 掌阅科技股份有限公司 View object processing method for electronic book, electronic device and storage medium
CN111611037B (en) * 2020-05-09 2023-04-07 掌阅科技股份有限公司 View object processing method for electronic book, electronic device and storage medium
CN113655934A (en) * 2021-08-30 2021-11-16 咪咕数字传媒有限公司 Electronic file display method and device, computing equipment and computer storage medium

Similar Documents

Publication Publication Date Title
CN107463307A (en) Document display method and device
CN106980508A (en) Method and apparatus for generating the page
CN105094759B (en) A kind of browse mode switching handling method and device
CN106896937A (en) Method and apparatus for being input into information
CN103164231A (en) Input method virtual keyboard skin management method and device
CN107093164A (en) Method and apparatus for generating image
CN108924440B (en) Sticker display method, device, terminal and computer-readable storage medium
CN107977946A (en) Method and apparatus for handling image
CN106960062A (en) Webpage capture method and system
CN106599857A (en) Image identification method, apparatus, computer-readable storage medium and terminal device
CN106919406A (en) A kind of desktop application component issue, update method and device
CN109345439A (en) Picture guard method, device, medium and electronic equipment
CN104765528A (en) Display method and device of virtual keyboard
CN109255355A (en) Image processing method, device, terminal, electronic equipment and computer-readable medium
JP7261732B2 (en) Method and apparatus for determining character color
CN110266994A (en) A kind of video call method, video conversation apparatus and terminal
CN109635223A (en) Page display method and device
CN110162757A (en) A kind of tableau format extracting method and system
CN112016077B (en) Page information acquisition method and device based on sliding track simulation and electronic equipment
CN112965779A (en) Page mode switching method, device and equipment
CN107704171A (en) Electronic book displaying method, terminal and computer-readable recording medium
CN104657991A (en) Picture processing method
CN104951309B (en) The page decoration method and system of displaying sytlized font and a kind of client device
CN114528816B (en) Collaborative editing information display method and device, electronic equipment and readable medium
CN105045893A (en) Adaptation method and apparatus for picture in webpage

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171212

RJ01 Rejection of invention patent application after publication