Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, an electronic document operation processing method according to an embodiment of the present application includes the steps of:
s101, when a specific operation instruction of a user for the electronic document is detected, determining a content block corresponding to an operation position of the specific operation instruction.
In the embodiment of the application, when a user wants to perform an operation (for example, "copy", "mark" or "share") on a certain part of interested content in an electronic document while viewing the electronic document, the user generally issues a specific operation instruction to initiate selection in order to select the part of the interested content. In an exemplary embodiment of the present application, the specific operation instruction may include a specific operation gesture; for example, for a user using a touch screen, the specific operation instruction may be to press the screen for a long time, to double-click the screen, or to slide the screen in a specific direction, or the like. Wherein the long press may be a click (click) screen where the duration exceeds a predetermined time (e.g., 2 seconds); the double click may be a double click of a certain point on the screen within a set short time (e.g. 1 second). In another exemplary embodiment of the present application, the specific operation instruction may be other operations; for example, for a user using a mouse, the specific operation instruction may be clicking a left button of the mouse and pressing and holding down a start slide; for the user using the touch pad, the specific operation instruction may be to click the left button of the touch pad and press and hold the start slide. The above is merely illustrative, and in other embodiments of the present application, other specific operational instructions may be employed.
In the embodiment of the application, the content block is a part or all of the content of the electronic document. For example, a word, phrase or phrase of an electronic document (e.g., "having a multi-molecule system", "non-cellular morphology", etc.), a natural sentence (e.g., "from an inorganic substance, small organic molecules are formed, then large organic molecules are formed, and then a multi-molecule system is formed, until a single prokaryotic cell with original metabolic function is generated"), a natural segment, and so on.
In the embodiment of the application, when a user performs operations such as marking and copying on an electronic document through a client, after the client confirms the operation type selected by the user, the operation type selected by the user on the electronic document and content block information corresponding to the operation type are recorded, and then the information is provided to a server side. The content block information for the operation type may include an electronic document identifier, a content block identifier, and a content block range. The server side maintains a content block list for users to access, and the content block list records the mapping relation among the electronic document identification, the content block range, the operation type and the operation times. As shown in table 1 below:
TABLE 1
Electronic document identification
|
Content chunk identification
|
Content chunk range
|
Operation type identification
|
Number of operations
|
DZWD0001
|
NR0001
|
0000-0123
|
1 (replication)
|
5
|
DZWD0001
|
NR0001
|
0000-0123
|
2 (Mark)
|
6
|
DZWD0001
|
NR0001
|
0000-0123
|
3 (share)
|
9
|
DZWD0001
|
NR0001
|
0000-0123
|
4 (search)
|
3
|
DZWD0001
|
NR0002
|
0456-0500
|
1 (replication)
|
4
|
DZWD0001
|
NR0002
|
0456-0500
|
2 (Mark)
|
8
|
DZWD0001
|
NR0002
|
0456-0500
|
3 (share)
|
7
|
DZWD0001
|
NR0002
|
0456-0500
|
4 (search)
|
2 |
The electronic document identification is used for uniquely identifying one electronic document; the content block identifier is used for uniquely identifying one content block; the content block range is used to identify that the content block corresponds to a content range in the electronic document, wherein the content range may be a start-stop character position of the part of content in the electronic document. For a certain electronic document it is certain how many characters it contains and the character positions of these characters in the electronic document. For example, the following electronic document includes 149 characters (except for double quotation marks):
"birth of life can be described roughly as follows: organic matter micromolecules are generated from inorganic matters, organic matter macromolecules are formed, and then the organic matter macromolecules reach a multi-molecule system until prokaryotic single cells with original metabolism functions are generated. If it is said that the evolution of life from chemical molecules in non-cellular form to cellular form is the first breakthrough in the evolution of life, then the evolution of life from anaerobic prokaryotic life to aerobic eukaryotic life is the second breakthrough, which opens the path to human evolution. "
If the "multi-molecule system" is used as a content block, the range of the corresponding content block is 0043 + 0047, that is, the starting position of the "multi-molecule system" in the electronic document is 0043 th character position, and the ending position is 0047 th character position (in this exemplary scenario, the electronic document takes Unicode as an example, and in the Unicode encoding mode, one character occupies two bytes, so that no matter whether one character is a chinese character, an alphabet, a punctuation mark, or the like, it occupies one character position).
In this embodiment of the application, the determining the content block corresponding to the operation position of the specific operation instruction may include:
first, an operation position of the specific operation instruction is determined. In an exemplary embodiment of the present application, when a position (a dual cursor position shown in fig. 2a) on the touch screen is pressed for a long time on the screen displaying the contents of the electronic document), the position of the pressed position in the screen is confirmed, and what contents of the electronic document are displayed on the current screen is also determined, so that the position of the pressed position corresponding to the electronic document is also determined.
Then, whether a content block containing the operation position exists is searched from a content block list on the server side. In the embodiment of the application, when the client detects a specific operation instruction of a user for an electronic document, the client may initiate an inquiry request to the server side to confirm whether a content block list of the server side includes a content block of the operation position.
And if the content block containing the operation position exists, determining the content block corresponding to the operation position of the specific operation instruction. In some embodiments of the present application, the operation position of the specific operation instruction may correspond to one or more content blocks. For example, in an exemplary embodiment of the present application, there are two adjacent content chunks: a content block X and a content block Y; the content of the content block X is 'generating organic micromolecules from inorganic matters and then forming organic macromolecules'; the content of the content block Y is 'organic macromolecule is formed again and then a multi-molecule system is formed'. When a certain position (such as the double cursor position shown in fig. 2a) on the touch screen is pressed for a long time, the document content corresponding to the position is exactly located in the shared portion of the content block X and the content block Y, and then the content blocks corresponding to the position are the content block X and the content block Y.
In other embodiments of the present application, if the content block list on the server side does not include the content block at the operation position, the server-side library may automatically add the information related to the content block in the content block list, that is, record a mapping relationship between an electronic document identifier, a content block range, an operation type, and an operation number corresponding to the content block.
In the embodiment of the present application, the content block list maintained by the server side may be one or multiple, and may be specifically set as needed. For example, when the data size is large, the content block list may be arranged into a plurality of tables according to the electronic document, so as to facilitate management and quick query.
S102, judging whether the operation times of the user group of the electronic document on the appointed operation type of the content block meet a preset condition or not.
In one embodiment of the present application, the user group of the electronic document may be a set of all users or a designated part of users using the same client. For example, the iReader reader has three users, namely a user A, a user B and a user C, which all perform specified operation on the same electronic document D; correspondingly, the appointed operations of the user A, the user B and the user C on the electronic document D are recorded on the server side of the iReader reader. In another embodiment of the present application, the user group of the electronic document may further include a set of users who operate the same electronic document using different clients. For example, the iReader reader and the QQ reader are different readers, but the iReader server side and the QQ reader server side can share data according to the prearrangement. Therefore, the content block list on the iReader server side and the content block list on the QQ reading server side can be updated cooperatively. For example, if the user a, the user B and the user C are recorded in the content block list on the iReader server side and respectively perform one copy operation on the same content block E of the electronic document D, the increment of the copy times of the content block E of the electronic document D in the content block list on the iReader server side is 3; correspondingly, the ireder server side notifies the QQ reading server side in time, so that the copy times of the content block E of the electronic document D in the content block list of the QQ reading server side are updated cooperatively, that is, the increment of the copy times of the content block E of the electronic document D in the content block list of the QQ reading server side is also 3.
In the embodiment of the present application, the specified operation type may be any one or more of "copy", "share", "mark", and "search". When the specified operation type is 'copy', the operation times are the sum of the copy times of the same content block by the user group of the electronic document. When the specified operation type is 'copy' and 'label', the operation times are the sum of the copy times of the user group of the electronic document to the same content block plus the label times of the user group of the electronic document to the content block. In addition, when there is more than one content block corresponding to the operation position of the specific operation instruction, the judgment can be separately performed for each content block.
In an embodiment of the present application, the preset condition may be a preset threshold, for example, 50 times, 100 times, 200 times, and the like. Correspondingly, the meeting of the preset condition may be: and the operation times of the user group of the electronic document on the appointed operation type of a certain content block reach a preset threshold value.
S103, when the operation times meet the preset conditions, automatically selecting the content blocks from the electronic document for the user to operate.
In the embodiment of the application, when the operation times meet the preset condition, the content block can be automatically selected according to the content range of the content block inquired from the content block list on the server side. For example, the operation position of a specific operation instruction (such as the double-cursor position shown in fig. 2a) is located in a content block (the content is that "the birth process of life can be roughly described as that organic small molecules are generated from inorganic substances, then organic large molecules are formed, and then the organic large molecules are converted into a multi-molecule system until prokaryotic single cells with original metabolism functions are generated"), and when the operation times of the user group aiming at the specified operation type of the content block meet the preset condition, the client will automatically select the content block, as shown in fig. 2 b.
In another embodiment of the present application, when the operation times satisfy the preset condition, the client may provide the user with an option of the specified operation type, such as "mark", "copy", and "share" options in fig. 2b, fig. 3, and fig. 4, for the user to select.
In another embodiment of the present application, when the number of operations satisfies the preset condition, the content block is highlighted for the user to view. In an exemplary embodiment of the present application, the highlighting may be a different background color display from the rest, such as shown in fig. 2 b; underlined highlighting is also possible, such as shown in FIG. 3; but also a bold display, a highlight display, etc. In another embodiment of the present application, when the number of operations satisfies the preset condition, the number of operations of the specified operation type may be displayed while highlighting the content block, for example, as shown in fig. 4.
In another embodiment of the present application, after the content block is automatically selected from the electronic document, when a selection range adjustment instruction of the user is received, a currently automatically selected content range may be adjusted according to the selection range adjustment instruction, and then an operation option is selected. Thus, when the user is not satisfied with the automatically selected content, the content range can be freely adjusted as needed. The free adjustment may be a narrowing (as shown in fig. 5a, in which the underlined part is the original automatically selected range) or an expanding (as shown in fig. 5b, in which the underlined part is the original automatically selected range).
In another embodiment of the present application, when there are a plurality of content blocks corresponding to the operation positions, and the number of operations of the user group on the specified operation type of more than one content block satisfies a preset condition, the automatically selecting the content block from the electronic document may be: and automatically selecting all content blocks meeting preset conditions from the electronic document. As shown in fig. 6a, the electronic document includes two content blocks: a first block of contents (the underlined part, i.e. "organic small molecules are formed from inorganic substances and organic large molecules are formed again") and a second block of contents (the underlined part, i.e. "organic large molecules are formed again and the system is polymolecular"). When the exact position of the operation of the specific operation instruction is located in the common part of the two content blocks, i.e., the "reformed organic macromolecules", and both the first content block and the second content block satisfy the preset condition, the automatically selected range is the union of the first content block and the second content block, as shown in fig. 6 b.
In the embodiment of the application, when a specific operation instruction of a user for an electronic document is detected, a content block corresponding to an operation position of the instruction is determined; when the operation times of the specified operation types of the content blocks of the user group of the electronic document meet the preset conditions, the content blocks are automatically selected from the electronic document to be operated by the user.
While the process flows described above include operations that occur in a particular order, it should be appreciated that the processes may include more or less operations that are performed sequentially or in parallel (e.g., using parallel processors or a multi-threaded environment).
Referring to fig. 7, an electronic document operation processing apparatus according to an embodiment of the present application includes:
a content block determination module 71, configured to determine, when a specific operation instruction of a user for an electronic document is detected, a content block corresponding to an operation position of the specific operation instruction;
a condition judging module 72, configured to judge whether the operation frequency of the user group of the electronic document on the specified operation type of the content block meets a preset condition;
and the content block selection module 73 is configured to, when the operation times meet the preset condition, automatically select the content block from the electronic document for the user to operate.
The electronic document operation processing device of the embodiment of the present application corresponds to the electronic document operation processing method, and therefore, for a detailed description of the electronic document operation processing device of the embodiment of the present application, please refer to the electronic document operation processing method, which is not described herein again.
The electronic document operation processing device of the embodiment of the application can be a client, office software and the like. The client may be a dedicated client or a general-purpose client. In an embodiment of the present application, the dedicated client may be an electronic book reader, such as a Kindle reader, a QQ reader, an ireder reader, or the like; in another embodiment of the present application, the dedicated client may also be other clients, such as an online shopping client (e.g., a kyoto client, etc.), an instant messaging client (e.g., a WeChat, etc.), and the like. The generic client may be a browser (e.g., an IE browser, etc.). Such as Microsoft Office Word, WPS, and the like.
Referring to fig. 8, an electronic device according to an embodiment of the present application is shown. The electronic device may include a processor, an internal bus, a memory and a memory at a hardware level, and may also include hardware required for other services. The processor reads the corresponding computer program from the memory into the memory and then runs the computer program to form the electronic document operation processing device on the logic level. Of course, besides the software implementation, the present application does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices. Wherein, when the electronic document operation processing device is processed by the processor, the following steps are executed:
when a specific operation instruction of a user for an electronic document is detected, determining a content block corresponding to an operation position of the specific operation instruction;
judging whether the operation times of the user group of the electronic document on the appointed operation type of the content block meet a preset condition or not;
and when the operation times meet the preset condition, automatically selecting the content block from the electronic document for the user to operate.
The electronic device of the embodiment of the present application corresponds to the electronic document operation processing apparatus, and therefore, for a detailed description of the electronic device of the embodiment of the present application, please refer to the electronic document operation processing apparatus, which is not described herein again.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardsradware (Hardware Description Language), vhjhd (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The apparatuses or modules illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.