Embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, it is real below in conjunction with the application
The accompanying drawing in example is applied, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described implementation
Example only some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, this area is common
The every other embodiment that technical staff is obtained under the premise of creative work is not made, should all belong to the application protection
Scope.
With reference to shown in Fig. 1, the electronic document operation processing method of the embodiment of the present application comprises the following steps:
S101, detect user be directed to electronic document specific operating instructions when, determine the specific operating instructions
Content blocks corresponding to operating position.
In the embodiment of the present application, when checking electronic document, when user wishes emerging to certain part sense in electronic document
Interest content operated (such as " duplication ", " mark " or " sharing ") when, to choose this partial content, user can typically send out
Go out specific operating instructions, to start selection.In the exemplary embodiment of the application, described specific operating instructions can be with
Including specific operation gesture;For example, for the user using touch-screen, the specific operating instructions can be long-press screens, double
Hit screen or slide screen etc. to specific direction.Wherein, described long-press can be click on holding for (click) screen certain
The continuous time exceedes the scheduled time (such as 2 seconds);Described double-click can be within the very short time (such as 1 second) of setting, to screen
Clicked on twice curtain certain.In another exemplary embodiment of the application, described specific operating instructions can be with
For others operation;For example, for the user using mouse, the specific operating instructions can be single left button mouse clicks and pin
Start to slide choosing;For the user using Trackpad, the specific operating instructions can be clicked Trackpad left button and pin beginning
Sliding choosing.It the above is only for example, in the other embodiment of the application, other specific operating instructions can be used.
In the embodiment of the present application, the content blocks are part or all of content of electronic document.It for example can be electronics
A words, phrase or the phrase (such as " having polymolecular system ", " acellular form " etc.) of document, a natural sentence
(for example " fluorescence probe is generated from inorganic matter, organic matter macromolecular is re-formed, then to polymolecular system, have until producing
The protokaryon of original metabolic function is unicellular."), paragragh etc..
In the embodiment of the present application, whenever there is user to be labeled by client to electronic document, when the operation such as replicating, visitor
Family end after the action type of user selection is confirmed, can record action type that the user selected the electronic document and
The targeted content block message of the action type, is then supplied to server side by described information.Wherein, action type is targeted
Content block message can include electronic document mark, content block identification and content blocks scope.Server side, which is safeguarded, to be available for using
Record has electronic document mark, content block identification, content blocks scope, behaviour in the content block list that family is accessed, the content block list
Make the mapping relations between type and number of operations.It is as shown in table 1 below:
Table 1
Electronic document is identified |
Content block identification |
Content blocks scope |
Action type is identified |
Number of operations |
DZWD0001 |
NR0001 |
0000-0123 |
1 (duplication) |
5 |
DZWD0001 |
NR0001 |
0000-0123 |
2 (marks) |
6 |
DZWD0001 |
NR0001 |
0000-0123 |
3 (sharing) |
9 |
DZWD0001 |
NR0001 |
0000-0123 |
4 (search) |
3 |
DZWD0001 |
NR0002 |
0456-0500 |
1 (duplication) |
4 |
DZWD0001 |
NR0002 |
0456-0500 |
2 (marks) |
8 |
DZWD0001 |
NR0002 |
0456-0500 |
3 (sharing) |
7 |
DZWD0001 |
NR0002 |
0456-0500 |
4 (search) |
2 |
Wherein, electronic document is identified for one electronic document of unique identification;Content block identification is used for unique identification one
Content blocks;Content blocks scope to identify the content blocks corresponding to the context in electronic document, wherein, described content model
It can be the start-stop character bit of the contents of the section in an electronic document to enclose.For the electronic document of a determination, it is comprising how many
What the character bit of character and these characters in an electronic document was to determine.149 words are for example included with next section of electronic document
Symbol is (except double quotation marks):
" birth process of life so can be described roughly:Fluorescence probe is generated from inorganic matter, is re-formed organic
Thing macromolecular, then to polymolecular system, it is unicellular until producing the protokaryon with original metabolic function.If, from non-
The life that the chemical molecular of cellular morphology develops into cellular morphology is first breakthrough in life evolution process, then from anaerobism
Protokaryon life to happiness oxygen eucaryon life be then second breakthrough, it opens the road for leading to the evolution of the mankind.”
Wherein, if by " polymolecular system " as a content blocks, its corresponding content blocks scope is 0043-0047,
I.e. the original position of " polymolecular system " in an electronic document is the 0043rd character bit, and final position is the 0047th character bit
(under this exemplary scenario, electronic document is that so that Unicode is encoded as an example, under Unicode coded systems, a character takes
Two bytes, therefore no matter a character is Chinese character, letter or punctuation mark etc., it accounts for a character bit).
In the embodiment of the present application, the content blocks corresponding to the operating position for determining the specific operating instructions can be wrapped
Include:
First, the operating position of the specific operating instructions is determined.In one exemplary embodiment of the application, have in displaying
On the screen of the content of electronic document, when the dual cursors position shown in certain (such as Fig. 2 a) on long-press touch-screen) when, grown
The position being in by it in screen is identifiable, and which content that current screen illustrates electronic document is also to determine
, therefore, it is long pressed the corresponding position in electronic document of part and also determines that.
Then, from the content block list of server side, search whether to include the content blocks of the operating position.This Shen
Please be in embodiment, client can be initiated look into when detecting user and being directed to the specific operating instructions of electronic document to server side
Request is ask, whether to include the content blocks of the operating position in the content block list of confirmed service device side.
Content blocks if including the operating position, it is determined that corresponding to the operating position of the specific operating instructions
Content blocks.In some embodiments of the present application, the operating position of the specific operating instructions can be one or more to that should have
Content blocks.For example in the exemplary embodiment of the application, there are two adjacent content blocks:Content blocks X and content blocks Y;
Content blocks X content is " generating fluorescence probe from inorganic matter, re-form organic matter macromolecular ";Content blocks Y content is
" re-form organic matter macromolecular, then to polymolecular system ".(pair as shown in Figure 2 a at a certain position on long-press touch-screen
Cursor position) when, the document content corresponding to the position is located exactly at content blocks X and content blocks Y shared part, then the position
Corresponding content blocks are content blocks X and content blocks Y.
In other embodiments of the application, if not including the operating position in the content block list of server side
Content blocks, then server side storehouse can add described content blocks relevant information automatically in the content block list, that is, record
Reflecting between the corresponding electronic document mark of the content blocks, content block identification, content blocks scope, action type and number of operations
Penetrate relation.
In embodiments herein, the content block list that server side is safeguarded can be one or multiple, specifically
It can be arranged as required to.For example when the larger theory of data volume, content block list can by electronic document difference, be arranged to multiple tables,
In order to manage and quick search.
S102, the user group for judging the electronic document, to the number of operations of the assigned operation type of the content blocks
Whether preparatory condition is met.
In one embodiment of the application, the user group of the electronic document can be the whole using same client
User or the set of specified portions user.Such as iReader readers have user A, user B and tri- users of user C, Ta Menjun
Assigned operation has been done to identical electronic document D;It is corresponding, the specified behaviour of user A, user B and user C to electronic document D
Make, can be recorded in the server side of iReader readers.In another embodiment of the application, the use of the electronic document
Family colony can also operate the set of the user of identical electronic document including the use of different clients.Such as iReader readers
It is different readers with QQ readers, but according to making an appointment, iReader server sides and QQ reading servers side can share
Data.Therefore, the content block list of iReader server sides and the content block list of QQ reading servers side can cooperate with renewal.
User A, user B and user C are have recorded in the such as content block list of iReader server sides respectively to the same of electronic document D
One content blocks E, which has been done, once replicates operation, then in the content block list of iReader server sides, for electronic document D content
The increment of block E number of copy times is 3;Corresponding, iReader server sides can notify QQ reading servers side in time, in order to
In the content block list of QQ reading servers side, the number of copy times for electronic document D content blocks E cooperates with renewal, i.e., QQ is read
In the content block list for reading server side, the increment for electronic document D content blocks E number of copy times is also 3.
In embodiments herein, the assigned operation type can be " duplication ", " sharing ", " mark " and " search " etc.
In any one or more.When assigned operation type is " duplication ", the number of operations is the user of the electronic document
Number of copy times sum of the colony to same content blocks.When assigned operation type is " duplication " and " mark ", the number of operations
For the electronic document user group to the user group of number of copy times sum+electronic documents of same content blocks to this
The labeled times sum of content blocks.In addition, when the content blocks corresponding to the operating position of the specific operating instructions have more than one
When individual, it can judge respectively for each content blocks.
In embodiments herein, the preparatory condition can be predetermined threshold value, such as 50 times, 100 times, 200 times etc..
Corresponding, the preparatory condition that meets can be:The user group of the electronic document, to the assigned operation class of a certain content blocks
The number of operations of type reaches predetermined threshold value.
S103, when the number of operations meets the preparatory condition, chosen automatically from the electronic document it is described in
Hold block, so that the user operates.
, can be according to from server side when the number of operations meets the preparatory condition in embodiments herein
The context of the content blocks inquired in content block list, chooses the content blocks automatically.For example, the behaviour of specific operating instructions
Making position (dual cursors position as shown in Figure 2 a), (its content is positioned at content blocks:" birth process of life can such outline
Ground is described:Fluorescence probe is generated from inorganic matter, organic matter macromolecular is re-formed, then to polymolecular system, until producing tool
Have the protokaryon of original metabolic function unicellular ") in, when operation of the user group for the assigned operation type of the content blocks
When number of times meets the preparatory condition, client can choose the content blocks automatically, as shown in Figure 2 b.
In another embodiment of the application, when the number of operations meets the preparatory condition, client can be to institute
The option that user provides the assigned operation type is stated, such as Fig. 2 b, Fig. 3 is selected with " mark ", " duplication " and " sharing " in Fig. 4
, so that the user selects.
In another embodiment of the application, when the number of operations meets the preparatory condition, highlight described
Content blocks, in order to which user checks.In the exemplary embodiment of the application, described highlight can be different from other portions
The different background color divided is shown, such as shown in Fig. 2 b;Can also be highlighting of underlining, such as shown in Fig. 3;May be used also
To be that overstriking shows, is highlighted etc..In another embodiment of the application, when the number of operations meets described default
During condition, while the content blocks are highlighted, the number of operations of the assigned operation type can also be shown, for example, is schemed
Shown in 4.
In another embodiment of the application, after the content blocks are chosen automatically from the electronic document, when connecing
When receiving the range of choice adjust instruction of the user, it can adjust what is currently chosen automatically according to the range of choice adjust instruction
Context, then reselection option of operation.So, can also basis when user is dissatisfied for the content chosen automatically
Need free Suitable content scope.Wherein, it is described freely adjust can be contracting choosing (as shown in Figure 5 a, wherein, with underscore
Part be original scope chosen automatically) or expand choosing (as shown in Figure 5 b, wherein, the part with underscore for it is original from
The dynamic scope chosen).
In another embodiment of the application, when the content blocks corresponding to the operating position have multiple, and the user
It is described from the electronics when colony meets preparatory condition to the number of operations of the assigned operation type of wherein more than one content blocks
Automatically the content blocks are chosen in document to be:It is automatic from the electronic document to choose wherein all preparatory conditions that meet
Content blocks.As shown in Figure 6 a, electronic document includes two content blocks:First content block (the part with underscore, i.e., " from nothing
Machine thing generates fluorescence probe, re-forms organic matter macromolecular ") and the second content blocks (with the part rule, i.e. " shape again
Into organic matter macromolecular, then to polymolecular system ").It is total to when the positive good position of the operation of specific operating instructions is located at two content blocks
In some parts " re-forming organic matter macromolecular ", and first content block and the second content blocks are when being satisfied by preparatory condition, then from
The scope of dynamic selection is the union of first content block and the second content blocks, as shown in Figure 6 b.
In the embodiment of the present application, detect user be directed to electronic document specific operating instructions when, determine the instruction
Content blocks corresponding to operating position;As the user group of electronic document, to the number of operations of the assigned operation type of content blocks
When meeting preparatory condition, content blocks are chosen automatically from electronic document, so that user operates, therefore, the embodiment of the present application can be
On the basis of the operation behavior for analyzing user group, be user automatically select user may content interested, from reducing use
Family is operated, and improves Consumer's Experience.
Although procedures described above flow includes the multiple operations occurred with particular order, it should however be appreciated that understand,
These processes can include more or less operations, and these operations can sequentially be performed or performed parallel (such as using parallel
Processor or multi-thread environment).
With reference to shown in Fig. 7, the electronic document operation processing unit of the embodiment of the present application includes:
Content blocks determining module 71, for detect user be directed to electronic document specific operating instructions when, determine institute
State the content blocks corresponding to the operating position of specific operating instructions;
Condition judgment module 72, the user group for judging the electronic document, to the assigned operation of the content blocks
Whether the number of operations of type meets preparatory condition;
Content blocks selecting module 73, for when the number of operations meets the preparatory condition, from the electronic document
In choose the content blocks automatically, for the user operate.
The electronic document operation processing unit of the embodiment of the present application is corresponding with above-mentioned electronic document operation processing method, therefore
The electronic document for being related to the embodiment of the present application operates the specific descriptions of processing unit, refers to above-mentioned electronic document operation processing
Method, will not be repeated here.
The electronic document operation processing unit of the embodiment of the present application can be client, office software etc..The client
Can be private client or general purpose client.In the application one embodiment, the private client can be e-book
Reader, such as Kindle readers, QQ readers, iReader readers;It is described in the application another embodiment
Private client can also be other clients, net purchase client (such as the client of Jingdone district), instant communication client
(such as wechat) etc..The general purpose client can be browser (such as IE browser).The office software is for example
Microsoft Office Word, WPS etc..
It is a kind of electronic equipment of the embodiment of the present application with reference to shown in Fig. 8.The electronic equipment can include in hardware view
Processor, internal bus, memory and internal memory, are also possible that the hardware required for other business certainly.Processor is from storage
Corresponding computer program is read in device into internal memory and then is run, electronic document operation processing dress is formed on logic level
Put.Certainly, in addition to software realization mode, the application is not precluded from other implementations, such as logical device or soft or hard
Mode that part is combined etc., that is to say, that the executive agent of following handling process is not limited to each logic unit, can also
It is hardware or logical device.Wherein, when the electronic document operation processing unit is handled by the processor, following step is performed
Suddenly:
Detect user be directed to electronic document specific operating instructions when, determine the operative position of the specific operating instructions
Put corresponding content blocks;
Judge the user group of the electronic document, it is whether full to the number of operations of the assigned operation type of the content blocks
Sufficient preparatory condition;
When the number of operations meets the preparatory condition, the content blocks are chosen automatically from the electronic document,
So that the user operates.
The electronic equipment of the embodiment of the present application is corresponding with above-mentioned electronic document operation processing unit, therefore is related to the application
The specific descriptions of the electronic equipment of embodiment, refer to above-mentioned electronic document operation processing unit, will not be repeated here.
In the 1990s, for a technology improvement can clearly distinguish be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (for the improvement of 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 is 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, PLD
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, its logic function is determined by user to device programming.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, without asking chip maker to design and make
Special IC chip.Moreover, nowadays, substitution manually makes IC chip, and this programming is also used instead mostly " patrols
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 have many kinds, 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 are most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also should
This understands, it is only necessary to slightly programming in logic and be programmed into method flow in integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method flow can be just readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
Device and storage can by the computer of the computer readable program code (such as software or firmware) of (micro-) computing device
Read medium, gate, switch, application specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and embedded 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 for the control logic of memory.It is also known in the art that except with
Pure computer readable program code mode is realized beyond controller, can be made completely by the way that method and step is carried out into programming in logic
Obtain controller and come real in the form of gate, switch, application specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc.
Existing identical function.Therefore this controller is considered a kind of hardware component, and various for realizing to including in it
The device of function can also be considered as the structure in hardware component.Or even, can be by for realizing that the device of various functions is regarded
For that not only can be the software module of implementation method but also can be the structure in hardware component.
Device or module that above-described embodiment is illustrated, can specifically be realized by computer chip or entity, or by with
The product of certain function is realized.It is a kind of typically to realize that equipment is computer.Specifically, computer can be for example personal meter
Calculation machine, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media player, navigation are set
The group of any equipment in standby, electronic mail equipment, game console, tablet PC, wearable device or these equipment
Close.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented
The function of each unit can be realized in same or multiple softwares and/or hardware during application.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to method according to embodiments of the present invention, equipment and computer program product flow chart and/or
Block diagram is described.It should be understood that can by each flow in computer program instructions implementation process figure and/or block diagram and/or
Square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided to arrive
All-purpose computer, special-purpose computer, the processor of Embedded Processor or other programmable data processing devices are to produce one
Machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for realizing in stream
The device for the function of being specified in one flow of journey figure or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal 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 instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of key elements are not only including those key elements, but also wrap
Include other key elements being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there is other identical element in process, method, commodity or the equipment of element.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.Deposited moreover, the application can use to can use in one or more computers for wherein including computer usable program code
The shape for the computer program product that storage media is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The application can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type
Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these DCEs, by
Remote processing devices connected by communication network perform task.In a distributed computing environment, program module can be with
Positioned at including in the local and remote computer-readable storage medium including storage device.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.It is real especially for system
Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art
For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent
Replace, improve etc., it should be included within the scope of claims hereof.