A kind of display state adjustment method, device and equipment
Technical field
This specification is related to field of computer technology more particularly to a kind of display state adjustment method, device and equipment.
Background technique
With the continuous development of network technology and terminal technology, application program becomes can not in people's daily life and work
Or scarce tool, people can carry out copy editor by application program, be also possible to carry out web page editing by application program
Deng.
In general, in documents editing, in order to enrich the form of expression of document, the documents such as office application or page Designer
Multiple format can be set in edit tool, and document format is the pith that document content is presented, and can influence document most
Whole bandwagon effect, by different document formats, so that document is under corresponding editing mode, to edit the document.However,
There is no effectively feedover to above-mentioned editing mode to document editing tool, that is to say, that user is only in input character or selection
Corresponding edit effect can be just seen after character, and can not know to be currently at normal document editing state or certain spy
Under different document editing state, so that the feedforward of document editing state is not intuitive, and then it may result in user and carry out instead
Multiple operation and test, reduce the efficiency and user experience of text input.Therefore, in documents editing field, need one kind to text
Shelves editing mode carries out the technical solution effectively to feedover in real time.
Summary of the invention
The purpose of this specification embodiment is to provide a kind of display state adjustment method, device and equipment, to provide one kind
The technical solution effectively to feedover in real time can be carried out to document editing state.
To realize that above-mentioned technical proposal, this specification embodiment are realized in:
A kind of display state adjustment method that this specification embodiment provides, the method includes:
When detecting that destination document is in target editing mode, obtains the corresponding cursor of the target editing mode and present
State;
Display state of the cursor in the destination document is adjusted to the cursor in present condition.
Optionally, the target editing mode includes multiple, and each target editing mode is corresponding with cursor in status
State,
The display state by cursor in the destination document is adjusted to the cursor in present condition, including:
It is in present condition according to the corresponding cursor of each target editing mode, successively to the cursor in the target text
Display state in shelves is adjusted, and obtains the cursor in the superimposed cursor of present condition.
Optionally, the target editing mode includes at least one of following:Font-weight, font inclination, color value and
Underscore.
Optionally, if the target editing mode is font-weight, the cursor is in present condition for characterizing institute
State cursor overstriking;
If the target editing mode is font inclination, the cursor inclines the cursor for characterizing in present condition
Tiltedly display;
If the target editing mode is color value, the cursor is in present condition for characterizing the color of the cursor
It is adjusted to the corresponding color of the color value;
If the target editing mode is underscore, the cursor is deposited in present condition for characterizing the cursor later
In underscore.
Optionally, it is described when detecting that destination document is in target editing mode before, the method also includes:
The information and the first cursor that receive the first editing mode are in the information of present condition;
The information of first editing mode and first cursor are arrived into editor's shape in the corresponding storage of information of present condition
State and cursor are in the corresponding relationship of present condition.
Optionally, the method also includes:
The information and the second cursor that receive the first editing mode are in the information of present condition;
It is in the information of present condition using the information of first editing mode and second cursor, replaces the corresponding pass
The information of first editing mode in system and first cursor are in the information of present condition.
A kind of display state adjusting device that this specification embodiment provides, described device include:
Cursor state acquisition module, for obtaining the target when detecting that destination document is in target editing mode
The corresponding cursor of editing mode is in present condition;
Cursor state adjusts module, is in for display state of the cursor in the destination document to be adjusted to the cursor
Present condition.
Optionally, the target editing mode includes multiple, and each target editing mode is corresponding with cursor in status
State,
The cursor state adjusts module, for being in present condition according to the corresponding cursor of each target editing mode,
Successively the display state to the cursor in the destination document is adjusted, and it is superimposed in present condition to obtain the cursor
Cursor.
Optionally, the target editing mode includes at least one of following:Font-weight, font inclination, color value and
Underscore.
Optionally, if the target editing mode is font-weight, the cursor is in present condition for characterizing institute
State cursor overstriking;
If the target editing mode is font inclination, the cursor inclines the cursor for characterizing in present condition
Tiltedly display;
If the target editing mode is color value, the cursor is in present condition for characterizing the color of the cursor
It is adjusted to the corresponding color of the color value;
If the target editing mode is underscore, the cursor is deposited in present condition for characterizing the cursor later
In underscore.
Optionally, described device further includes:
First information receiving module, for receive the first editing mode information and the first cursor be in present condition information;
Information storage module, for being in the information of present condition by the information of first editing mode and first cursor
Corresponding storage is to editing mode and cursor in the corresponding relationship of present condition.
Optionally, described device further includes:
Second information receiving module, for receive the first editing mode information and the second cursor be in present condition information;
Information replacement module, for use first editing mode information and second cursor be in present condition letter
Breath, the information and first cursor of replacing first editing mode in the corresponding relationship are in the information of present condition.
A kind of display state that this specification embodiment provides adjusts equipment, and the display state adjustment equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed
Manage device:
When detecting that destination document is in target editing mode, obtains the corresponding cursor of the target editing mode and present
State;
Display state of the cursor in the destination document is adjusted to the cursor in present condition.
By the technical solution of above this specification embodiment offer as it can be seen that this specification embodiment is by detecting target
When document is in target editing mode, obtaining the corresponding cursor of target editing mode is in present condition, then, by cursor in target text
Display state in shelves is adjusted to cursor in present condition, in this way, it is only necessary to which user selects to need document editing state to be used (i.e.
Target editing mode), and trigger destination document and be under the target editing mode, it can be by the display shape of cursor in destination document
State is adjusted to cursor corresponding with target editing mode in present condition, so that carrying out to document editing state effective in real time
Feedforward, moreover, the feedforward of document editing state is very intuitive, user can be directly acquainted with target text in present condition by cursor
Editing mode locating for shelves, does not need the editing mode that user judges document by way of operating and testing, improves text
The efficiency and user experience of input.
Detailed description of the invention
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or
Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only
The some embodiments recorded in this specification, for those of ordinary skill in the art, in not making the creative labor property
Under the premise of, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of display state adjustment method embodiment of this specification;
Fig. 2 is a kind of display status diagram of cursor of this specification;
Fig. 3 is the display status diagram of this specification another kind cursor;
Fig. 4 is a kind of display status diagram for inputting text of this specification;
Fig. 5 is that this specification another kind shows state adjustment method embodiment;
Fig. 6 in the setting of the corresponding relationship of present condition or is modified showing for the page for a kind of editing mode of this specification and cursor
It is intended to;
Fig. 7 is this specification another kind editing mode and cursor in the setting of the corresponding relationship of present condition or the modification page
Schematic diagram;
Fig. 8 A is the display status diagram of another cursor of this specification;
Fig. 8 B is the display status diagram of another cursor of this specification;
Fig. 9 is the display status diagram of another cursor of this specification;
Figure 10 is a kind of display state adjusting device embodiment of this specification;
Figure 11 is that a kind of display state of this specification adjusts apparatus embodiments.
Specific embodiment
This specification embodiment provides a kind of display state adjustment method, device and equipment.
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation
Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described
Embodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual,
Every other embodiment obtained by those of ordinary skill in the art without making creative efforts, all should belong to
The range of this specification protection.
Embodiment one
As shown in Figure 1, this specification embodiment provides a kind of display state adjustment method, the executing subject of this method can be with
For terminal device or server, wherein the terminal device can such as personal computer equipment, can also as mobile phone, plate electricity
The mobile terminal devices such as brain, the terminal device can be the terminal device that user uses.The server can be independent service
Device is also possible to the server cluster being made of multiple servers, moreover, the server can be the background service of a certain business
Device is also possible to the background server etc. of certain website (such as websites or payment application).The server can have
Copy editor or webpage design function.This method can be used for editing in the processing of word or file or web document, for simplification
The treatment process of this programme is illustrated in the present embodiment by taking executing subject is terminal device as an example, the case where for server,
It can be handled according to following related contents, details are not described herein.This method can specifically include following steps:
In step s 102, when detecting that destination document is in target editing mode, it is corresponding to obtain target editing mode
Cursor be in present condition.
Wherein, destination document can be any document, and destination document can be any form of document, for example, office is answered
With the document of creation, document of page Designer editor etc., specifically such as, word document or the document of jsp format etc..Target is compiled
Volume state can be preset free position, such as the editing mode of font-weight, font heeling condition and underscore
Editing mode etc..Cursor can be the state that is presented of cursor during editor's document in present condition, such as cursor overstriking is aobvious
Show that corresponding state, cursor inclination show corresponding state etc..
In an implementation, with the continuous development of network technology and terminal technology, application program become people's daily life and
Indispensable tool in work, people can by application program carry out copy editor, be also possible to by application program into
Row web page editing etc..
In general, (including the editor by office application progress word or file, or passing through page Designer in documents editing
Carry out the editor etc. of web document) in, in order to enrich the form of expression of document, the documents such as office application or page Designer are compiled
Multiple format can be set in the tool of collecting, and document format is the pith that document content is presented, and can influence the final of document
Bandwagon effect, by different document formats, so that document is under corresponding editing mode, to edit the document, for example, being
Prompting document reader pays attention to certain partial content, and the format analysis processing of font-weight can be carried out to the contents of the section, at this point, should
Document can be under the editing mode of font-weight, after user inputs character or selection character, the character of input or the word of selection
Symbol can be by overstriking etc., however, there is no effectively feedover to above-mentioned editing mode to document editing tool, that is to say, that user is only
Corresponding edit effect can just be seen after input character or selection character by having, and can not know that being currently at normal document compiles
Under the state of collecting or certain special document editing state (editing mode of such as above-mentioned font-weight), so that document
The feedforward of editing mode is not intuitive, and then may result in user and operated and tested repeatedly, reduces the effect of text input
Rate and user experience.For this purpose, this specification embodiment provides the technical solution that a kind of pair of document editing state is feedovered in real time,
It can specifically include the following contents:
For one or more editor's shapes to have can be set in carrying out the office application or page Designer of copy editor
State, for example, font-weight editing mode or font inclination (or italic) editing mode etc., different editing modes can be right
Document is edited accordingly, and due to the editing mode change of document or in the case where certain specifies editing mode, user can only inputted
Just can be appreciated that the display effect of the editing mode after character, and can not the use to the editing mode timely feedovered, and
It feedovers to realize to certain editing mode, can consider the mode to feedover first, since document is in the process of editor
In, cursor can follow current editor's progress and editor position always, therefore can choose mode of the cursor as feedforward.This
Outside, in order to which the editing mode to document feedovers, a variety of different cursors can be set for cursor in present condition, for example, light
The inclined state of state, font etc. of overstriking is marked, furthermore it is possible to which corresponding documents editing is arranged in present condition for different cursors
State, for example, the editing mode of font-weight can correspond to the cursor of cursor overstriking in present condition, alternatively, the inclined volume of font
The state of collecting can correspond to the inclined cursor of cursor in present condition etc., specifically may be set according to actual conditions, and this specification is implemented
Example does not limit this.In practical applications, above-mentioned editing mode and cursor can be with tables in the corresponding relationship of present condition
Form storage.
When user by document editing tool certain document (i.e. destination document) is edited when, if user need using
Certain editing mode (i.e. target editing mode) can then pass through the triggering terminals such as the edit key that provides in document editing tool
Equipment adjusts the editing mode of the destination document, i.e., destination document is adjusted to target by editing mode default or current and compiled
The state of collecting, for example, as shown in Fig. 2, current editing mode, which is that font is non-, to be added when user carries out copy editor by office application
Thick editing mode, at this point, (i.e. " B " in Fig. 3 is pressed as shown in figure 3, user can click the overstriking key in office application
Key), at this point, terminal device can determine that user needs to carry out the character of subsequent input overstriking processing, terminal device can be incited somebody to action
The editing mode of destination document is adjusted to the editing mode of font-weight.At this point, terminal device can monitor at destination document
In target editing mode, the available target editing mode of terminal device, and target editor shape is searched in the above correspondence relationship
State, if finding the target editing mode, the available corresponding cursor of target editing mode is in present condition, for example,
Based on above-mentioned example, target editing mode is the editing mode of font-weight, then corresponding cursor can be cursor in present condition
Overstriking etc..If not finding target editing mode, it can determine that terminal device does not need change cursor in destination document
In display state, but still shown in destination document with current display state.
In step S104, display state of the cursor in destination document is adjusted to the cursor in present condition.
In an implementation, through the above steps the processing of S102 determine the corresponding cursor of target editing mode in after present condition,
Display state of the current cursor in destination document can be adjusted, and cursor is presented in destination document with cursor
Status display adjusts text so that user understands the dbjective state that destination document is presently in time to user convenient for user in time
The editing mode of shelves.For example, the example based on above-mentioned steps S102, as shown in figure 3, target editing mode is the volume of font-weight
The state of collecting, then corresponding cursor can be cursor overstriking in present condition, at this point, terminal device can be by cursor by non-overstriking state
It is adjusted to overstriking state, as shown in Figures 2 and 3, the cursor in Fig. 2 is non-overstriking state, and the cursor in Fig. 3 becomes overstriking shape
State, at this point, as shown in figure 4, if user inputs new character into destination document, the fresh character being input in destination document
The form of font-weight will be presented.
This specification embodiment provides a kind of display state adjustment method, by detect destination document be in target compile
When the state of collecting, obtaining the corresponding cursor of target editing mode is in present condition, then, by display state of the cursor in destination document
It is adjusted to cursor in present condition, in this way, it is only necessary to user selects to need document editing state (i.e. target editing mode) to be used,
And trigger destination document and be under the target editing mode, the display state of cursor in destination document can be adjusted to and target
The corresponding cursor of editing mode is in present condition, so that effective feedforward in real time is carried out to document editing state, moreover, literary
The feedforward of shelves editing mode is very intuitive, and user can be directly acquainted with editor's shape locating for destination document in present condition by cursor
State does not need the editing mode that user judges document by way of operating and testing, improves the efficiency and use of text input
Family experience.
Embodiment two
As shown in figure 5, this specification embodiment provides a kind of display state adjustment method, the executing subject of this method can be with
For terminal device or server, wherein the terminal device can such as personal computer equipment, can also as mobile phone, plate electricity
The mobile terminal devices such as brain, the terminal device can be the terminal device that user uses.The server can be independent service
Device is also possible to the server cluster being made of multiple servers, moreover, the server can be the background service of a certain business
Device is also possible to the background server etc. of certain website (such as websites or payment application).The server can have
Copy editor or webpage design function.This method can be used for editing in the processing of word or file or web document, for simplification
The treatment process of this programme is illustrated in the present embodiment by taking executing subject is terminal device as an example, the case where for server,
It can be handled according to following related contents, details are not described herein.This method can specifically include following steps:
In step S502, the information and the first cursor that receive the first editing mode are in the information of present condition.
Wherein, the first editing mode can be any editing mode, such as editing mode, the font of font-weight are inclined
Editing mode and the editing mode of underscore etc..First cursor can be cursor corresponding with the first editing mode in present condition
In present condition, for example, the first editing mode is the editing mode of font-weight, the first cursor can be cursor overstriking in present condition
State etc..
In an implementation, editing mode and light can be set in the document editing tools such as office application or page Designer
For mark in the setting and modification mechanism of the corresponding relationship of present condition, which can be by triggering pre-set key or link etc.
Started, for example, as shown in fig. 6, the triggering key of above-mentioned mechanism can be set in document editing tool, when user needs
When creating or modifying above-mentioned corresponding relationship, the triggering key can be clicked, terminal device is available and shows above-mentioned corresponding pass
It may include that editing mode input frame and cursor are inputted in present condition in the setting of system or the modification page, the setting or the modification page
The information that the first editing mode is inputted in status entry box can be presented in frame, user to editing mode input frame and cursor respectively
(title or coding of such as the first editing mode) and the first cursor in present condition information (such as the first cursor be in present condition name
Claim or coding etc.), after the completion of input, the setting can be clicked or modify the determination key in the page, at this point, terminal device can be with
Editing mode input frame is obtained respectively and the information inputted in status entry box is presented in cursor, so that terminal device can receive
The information of first editing mode and the first cursor are in the information of present condition.
In addition, in addition to that can realize the creation to above-mentioned corresponding relationship and modification by way of above-mentioned input frame
Outside, the creation and modification to above-mentioned corresponding relationship can also be realized otherwise, for example, as shown in fig. 7, can also be at this
Editing mode choice box is set in setting or the modification page and cursor is in present condition choice box, above-mentioned editing mode choice box and light
Mark may each be in present condition choice box and be presented in a manner of pulling down selection, i.e. editing mode choice box or cursor when the user clicks
When in present condition choice box, terminal device can be in present condition in editing mode choice box or cursor in the form of drop-down list
The lower section of choice box shows multiple and different editing mode or cursor in present condition, and user can be by selecting in drop-down list
One editing mode or cursor create or modify above-mentioned corresponding relationship in present condition, for example, user can select in editing mode
The editing mode that font-weight is selected in the drop-down list below frame is selected, and can be in the case where cursor is in below present condition choice box
Draw the state etc. that cursor overstriking is selected in list.After the completion of selection, user can click the setting or modify the determination in the page
Key, at this point, terminal device can receive to the information of the first editing mode and the first cursor be in present condition information.
In step S504, the information of the first editing mode and the first cursor are arrived in the corresponding storage of information of present condition and compiled
The state of collecting and cursor are in the corresponding relationship of present condition.
In addition, the processing of S502 and step S504 through the above steps, creation or modification editing mode and cursor are in status
After the corresponding relationship of state, it can also modify to the content in above-mentioned corresponding relationship, specifically may refer to following step S506
With the related content of step S508.
In step S506, the information and the second cursor that receive the first editing mode are in the information of present condition.
Wherein, the second cursor in present condition can be from above-mentioned first cursor in the different cursor of present condition in present condition,
For example, the first cursor is the state of cursor overstriking in present condition, the second cursor in present condition can be cursor, and normal (or cursor is not
Overstriking) state etc..
In an implementation, the concrete processing procedure modified to editing mode and cursor in the corresponding relationship of present condition can be with
Referring to the correlation procedure of above-mentioned steps S502, details are not described herein.
It is in the information of present condition using the information of the first editing mode and the second cursor in step S508, replacement corresponds to
The information of the first editing mode in relationship and the first cursor are in the information of present condition.
In an implementation, terminal device receive the first editing mode information and the second cursor in present condition information after,
The information comprising the first editing mode can be searched whether in the above correspondence relationship, if comprising that can be based on the correspondence
Relationship, obtaining corresponding first cursor of the first editing mode is in present condition, and can be by the first editing mode in corresponding relationship
Information and the first cursor information for replacing with the first editing mode respectively in the information of present condition and the second cursor in present condition
Information.
In step S510, when detecting that destination document is in target editing mode, it is corresponding to obtain target editing mode
Cursor be in present condition.
Wherein, target editing mode can be any editing mode that destination document can be presented, such as target editing mode
It at least may include one of following:The editing modes such as font-weight, italic (i.e. font inclination), color value and underscore.
The specific processing of above-mentioned steps S510 may refer to a kind of related content of step S102 of above-described embodiment, herein not
It repeats again.
In step S512, display state of the cursor in destination document is adjusted to cursor in present condition.
The specific processing of above-mentioned steps S512 may refer to a kind of related content of step S104 of above-described embodiment, herein not
It repeats again.
It should be noted that target editing mode is different, corresponding cursor can also be different in present condition, and different
Cursor can characterize different meanings in present condition, for example, if target editing mode is the editing mode of font-weight, phase
The cursor answered can be used for characterizing by the cursor overstriking of terminal device in present condition;If target editing mode is italic (or word
Body inclination) editing mode, then corresponding cursor can be used for characterizing by the inclination display of the cursor of terminal device in present condition;Such as
Fruit target editing mode is the editing mode of color value, then corresponding cursor can be used for characterizing by the light of terminal device in present condition
Target color is adjusted to the corresponding color of color value, and color value therein can be the numerical value of the color of font, or be also possible to word
The numerical value etc. of the background color of symbol;If target editing mode is the editing mode of underscore, corresponding cursor is in present condition
It can be used for characterizing after the cursor of terminal device that there are underscores etc..
Above-mentioned different cursor can be illustrated in present condition respectively below, if target editing mode is italic
The editing mode of (or font inclination) can then be adjusted the cursor in destination document by current normal display as shown in Figure 2
It is whole to be shown for inclination as shown in Figure 8 A, at this point, the fresh character of user's input, terminal device will be shown in such a way that font is inclined
Show.
If target editing mode is the editing mode of color value, at this point, user selected a kind of color (such as yellow or
Green etc.), which, which can be used for characterizing, is adjusted to the color etc. to the font color or background color of the fresh character of input, eventually
End equipment can be by the cursor color in destination document, by current normal color as shown in Figure 2 or default color (such as black
Deng) it is adjusted to the corresponding color of the color value (i.e. above-mentioned yellow or green etc.), at this point, the fresh character of user's input, terminal device
It will be with the corresponding color of above-mentioned color value (i.e. above-mentioned yellow or green etc.) display font color or background color.
If target editing mode is the editing mode of underscore, can be by the cursor in destination document, by current
Normal display as shown in Figure 2 is adjusted to the cursor that can characterize as shown in Figure 8 B, and there are the display modes of underscore later
(underscore is such as added below cursor), at this point, the fresh character of user's input, terminal device will be in the fresh character of input
Underscore is added below.In practical applications, can characterize after the cursor there are the display mode of underscore in addition to it is above-mentioned
It is added outside underscore below cursor, can also include a variety of characteristic manners, specifically may be set according to actual conditions, this explanation
Book embodiment does not limit this.
In addition, in practical applications, target editing mode may include multiple, moreover, each target editing mode can be with
A cursor is corresponding in present condition, different target editing modes, corresponding cursor can be different in present condition, then above-mentioned
The concrete processing procedure of step S512 can also be:It is in present condition according to the corresponding cursor of each target editing mode, it is successively right
Display state of the cursor in destination document is adjusted, and obtains cursor in the superimposed cursor of present condition.
In an implementation, for example, target editing mode includes the editing mode and the inclined editing mode of font of font-weight,
The corresponding cursor of the editing mode of font-weight is the state of cursor overstriking in present condition, and the inclined editing mode of font is corresponding
Cursor in present condition be the inclined state of cursor, due to user adjust destination document editing mode when, often successively according to
The secondary above-mentioned two editing mode of adjustment, e.g., the key that user first clicks font-weight enters font-weight to trigger destination document
Editing mode, then, user clicks the inclined key of font again and enters the inclined editing mode of font to trigger destination document,
Alternatively, user, which first clicks the inclined key of font, enters the inclined editing mode of font, then, Yong Huzai to trigger destination document
The key of font-weight is clicked to trigger the editing mode etc. that destination document enters font-weight, at this point, terminal device can root
The sequencing of documents editing mechanism is triggered according to user, and destination document is successively adjusted to corresponding editing mode (as first by mesh
Mark document is adjusted to the editing mode of font-weight, then, then destination document is adjusted to inclined editing mode of font etc.),
The state of cursor overstriking and the inclined state of cursor may finally be overlapped, obtain cursor in the superimposed light of present condition
Mark, i.e., as shown in figure 9, obtaining cursor overstriking and inclined state etc..
Above-mentioned processing mode shown in Fig. 9 is only that target editing mode includes the case where two editing modes, is actually being answered
It can also include more than two editing modes, for including the case where that more than two editing modes can be according to upper in
Related content is stated, details are not described herein.
This specification embodiment provides a kind of display state adjustment method, by detect destination document be in target compile
When the state of collecting, obtaining the corresponding cursor of target editing mode is in present condition, then, by display state of the cursor in destination document
It is adjusted to cursor in present condition, in this way, it is only necessary to user selects to need document editing state (i.e. target editing mode) to be used,
And trigger destination document and be under the target editing mode, the display state of cursor in destination document can be adjusted to and target
The corresponding cursor of editing mode is in present condition, so that effective feedforward in real time is carried out to document editing state, moreover, literary
The feedforward of shelves editing mode is very intuitive, and user can be directly acquainted with editor's shape locating for destination document in present condition by cursor
State does not need the editing mode that user judges document by way of operating and testing, improves the efficiency and use of text input
Family experience.
Embodiment three
The above are the display state adjustment methods that this specification embodiment provides, and are based on same thinking, and this specification is real
It applies example and a kind of display state adjusting device is also provided, as shown in Figure 10.
The display state adjusting device includes:Cursor state acquisition module 1001 and cursor state adjust module 1002,
In:
Cursor state acquisition module 1001, for when detecting that destination document is in target editing mode, described in acquisition
The corresponding cursor of target editing mode is in present condition;
Cursor state adjusts module 1002, for display state of the cursor in the destination document to be adjusted to the light
Mark is in present condition.
In this specification embodiment, the target editing mode include it is multiple, each target editing mode is corresponding with
Cursor is in present condition,
The cursor state adjusts module 1002, for being in status according to the corresponding cursor of each target editing mode
State, successively the display state to the cursor in the destination document is adjusted, and is obtained the cursor and is superimposed in present condition
Cursor afterwards.
In this specification embodiment, the target editing mode includes at least one of following:Font-weight, font are inclined
Tiltedly, color value and underscore.
In this specification embodiment, if the target editing mode is font-weight, the cursor is used in present condition
In characterization by the cursor overstriking;
If the target editing mode is font inclination, the cursor inclines the cursor for characterizing in present condition
Tiltedly display;
If the target editing mode is color value, the cursor is in present condition for characterizing the color of the cursor
It is adjusted to the corresponding color of the color value;
If the target editing mode is underscore, the cursor is deposited in present condition for characterizing the cursor later
In underscore.
In this specification embodiment, described device further includes:
First information receiving module, for receive the first editing mode information and the first cursor be in present condition information;
Information storage module, for being in the information of present condition by the information of first editing mode and first cursor
Corresponding storage is to editing mode and cursor in the corresponding relationship of present condition.
In this specification embodiment, described device further includes:
Second information receiving module, for receive the first editing mode information and the second cursor be in present condition information;
Information replacement module, for use first editing mode information and second cursor be in present condition letter
Breath, the information and first cursor of replacing first editing mode in the corresponding relationship are in the information of present condition.
This specification embodiment provides a kind of display state adjusting device, by detect destination document be in target compile
When the state of collecting, obtaining the corresponding cursor of target editing mode is in present condition, then, by display state of the cursor in destination document
It is adjusted to cursor in present condition, in this way, it is only necessary to user selects to need document editing state (i.e. target editing mode) to be used,
And trigger destination document and be under the target editing mode, the display state of cursor in destination document can be adjusted to and target
The corresponding cursor of editing mode is in present condition, so that effective feedforward in real time is carried out to document editing state, moreover, literary
The feedforward of shelves editing mode is very intuitive, and user can be directly acquainted with editor's shape locating for destination document in present condition by cursor
State does not need the editing mode that user judges document by way of operating and testing, improves the efficiency and use of text input
Family experience.
Example IV
The above are the display state adjusting devices that this specification embodiment provides, and are based on same thinking, and this specification is real
It applies example and a kind of display state adjustment equipment is also provided, as shown in figure 11.
The display state adjustment equipment can be terminal device provided by the above embodiment or server.
Display state adjustment equipment can generate bigger difference because configuration or performance are different, may include one or one
A above processor 1101 and memory 1102 can store one or more storages using journey in memory 1102
Sequence or data.Wherein, memory 1102 can be of short duration storage or persistent storage.The application program for being stored in memory 1102 can
To include one or more modules (diagram is not shown), each module may include to one in display state adjustment equipment
Family computer executable instruction.Further, processor 1101 can be set to communicate with memory 1102, in display shape
State adjusts the series of computation machine executable instruction executed in memory 1102 in equipment.Display state adjustment equipment can also wrap
One or more power supplys 1103 are included, one or more wired or wireless network interfaces 1104, one or more
Input/output interface 1105, one or more keyboards 1106.
Specifically in this example it is shown that state adjustment equipment includes memory and one or more journey
Sequence, perhaps more than one program is stored in memory and one or more than one program may include one for one of them
Or more than one module, and each module may include refers to executable to the series of computation machine in display state adjustment equipment
Enable, and be configured to be executed this by one or more than one processor or more than one program include for carry out with
Lower computer executable instructions:
When detecting that destination document is in target editing mode, obtains the corresponding cursor of the target editing mode and present
State;
Display state of the cursor in the destination document is adjusted to the cursor in present condition.
In this specification embodiment, the target editing mode include it is multiple, each target editing mode is corresponding with
Cursor is in present condition,
The display state by cursor in the destination document is adjusted to the cursor in present condition, including:
It is in present condition according to the corresponding cursor of each target editing mode, successively to the cursor in the target text
Display state in shelves is adjusted, and obtains the cursor in the superimposed cursor of present condition.
In this specification embodiment, the target editing mode includes at least one of following:Font-weight, font are inclined
Tiltedly, color value and underscore.
In this specification embodiment, if the target editing mode is font-weight, the cursor is used in present condition
In characterization by the cursor overstriking;
If the target editing mode is font inclination, the cursor inclines the cursor for characterizing in present condition
Tiltedly display;
If the target editing mode is color value, the cursor is in present condition for characterizing the color of the cursor
It is adjusted to the corresponding color of the color value;
If the target editing mode is underscore, the cursor is deposited in present condition for characterizing the cursor later
In underscore.
In this specification embodiment, it is described when detecting that destination document is in target editing mode before, further include:
The information and the first cursor that receive the first editing mode are in the information of present condition;
The information of first editing mode and first cursor are arrived into editor's shape in the corresponding storage of information of present condition
State and cursor are in the corresponding relationship of present condition.
In this specification embodiment, further include:
The information and the second cursor that receive the first editing mode are in the information of present condition;
It is in the information of present condition using the information of first editing mode and second cursor, replaces the corresponding pass
The information of first editing mode in system and first cursor are in the information of present condition.
This specification embodiment provides a kind of display state adjustment equipment, by detecting that destination document be in target volume
When the state of collecting, obtaining the corresponding cursor of target editing mode is in present condition, then, by display state of the cursor in destination document
It is adjusted to cursor in present condition, in this way, it is only necessary to user selects to need document editing state (i.e. target editing mode) to be used,
And trigger destination document and be under the target editing mode, the display state of cursor in destination document can be adjusted to and target
The corresponding cursor of editing mode is in present condition, so that effective feedforward in real time is carried out to document editing state, moreover, literary
The feedforward of shelves editing mode is very intuitive, and user can be directly acquainted with editor's shape locating for destination document in present condition by cursor
State does not need the editing mode that user judges document by way of operating and testing, improves the efficiency and use of text input
Family experience.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can
With or may be advantageous.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller
Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited
Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc.
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when specification one or more embodiment.
It should be understood by those skilled in the art that, the embodiment of this specification can provide as method, system or computer journey
Sequence product.Therefore, complete hardware embodiment, complete software embodiment or knot can be used in this specification one or more embodiment
The form of embodiment in terms of conjunction software and hardware.Moreover, this specification one or more embodiment can be used at one or more
A wherein includes computer-usable storage medium (the including but not limited to magnetic disk storage, CD- of computer usable program code
ROM, optical memory etc.) on the form of computer program product implemented.
The embodiment of this specification is referring to the method, equipment (system) and computer journey according to this specification embodiment
The flowchart and/or the block diagram of sequence product describes.It should be understood that flow chart and/or box can be realized by computer program instructions
The combination of the process and/or box in each flow and/or block and flowchart and/or the block diagram in figure.It can provide this
A little computer program instructions are to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
Processor to generate a machine so that the finger executed by the processor of computer or other programmable data processing devices
It enables and generates to specify in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification can provide as the production of method, system or computer program
Product.Therefore, this specification one or more embodiment can be used complete hardware embodiment, complete software embodiment or combine software
With the form of the embodiment of hardware aspect.Moreover, this specification one or more embodiment can be used it is one or more wherein
It include computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, the light of computer usable program code
Learn memory etc.) on the form of computer program product implemented.
This specification one or more embodiment can computer executable instructions it is general on
It hereinafter describes, such as program module.Generally, program module includes executing particular task or realization particular abstract data type
Routine, programs, objects, component, data structure etc..Can also practice in a distributed computing environment this specification one or
Multiple embodiments, in these distributed computing environments, by being executed by the connected remote processing devices of communication network
Task.In a distributed computing environment, the local and remote computer that program module can be located at including storage equipment is deposited
In storage media.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely the embodiments of this specification, are not limited to this specification.For art technology
For personnel, this specification can have various modifications and variations.It is all made any within the spirit and principle of this specification
Modification, equivalent replacement, improvement etc., should be included within the scope of the claims of this specification.