With a touch sensitive screen or other input device, a user may attempt to select text to perform a text operation. Unfortunately, some types of input devices are not very accurate. For example, it may be difficult to select a precise starting point and ending point of desired text. This may lead to user frustration with devices that have other desirable features.
The subject matter claimed herein is not limited to embodiments that solve any disadvantages or that operate only in environments such as those described above. Rather, this background is only provided to illustrate one exemplary technology area where some embodiments described herein may be practiced.
Briefly, aspects of the subject matter described herein relate to paragraph snapping. In aspects, a computing device receives user input regarding a selection of text. If the user input is expansion input, the computing device determines whether a set of one or more paragraph snapping conditions is satisfied. If the set of one or more paragraph snapping conditions is satisfied, the selection is snapped to the paragraph. If the user input is contraction input, the selection is shrunk and the paragraph snapping behavior is turned off for the paragraph until the selection activity is finished or until user input indicates that paragraph snapping behavior is to be re-enabled.
This Summary is provided to briefly identify some aspects of the subject matter that is further described below in the Detailed Description. This Summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The phrase “subject matter described herein” refers to subject matter described in the Detailed Description unless the context clearly indicates otherwise. The term “aspects” should be read as “at least one aspect.” Identifying aspects of the subject matter described in the Detailed Description is not intended to identify key or essential features of the claimed subject matter.
The aspects described above and other aspects of the subject matter described herein are illustrated by way of example and not limited in the accompanying figures in which like reference numerals indicate similar elements and in which:
As used herein, the term “includes” and its variants are to be read as open-ended terms that mean “includes, but is not limited to.” The term “or” is to be read as “and/or” unless the context clearly dictates otherwise. The term “based on” is to be read as “based at least in part on.” The terms “one embodiment” and “an embodiment” are to be read as “at least one embodiment.” The term “another embodiment” is to be read as “at least one other embodiment.”
As used herein, terms such as “a,” “an,” and “the” are inclusive of one or more of the indicated item or action. In particular, in the claims a reference to an item generally means at least one such item is present and a reference to an action means at least one instance of the action is performed.
Sometimes herein the terms “first”, “second”, “third” and so forth may be used. Without additional context, the use of these terms in the claims is not intended to imply an ordering but is rather used for identification purposes. For example, the phrases “first version” and “second version” do not necessarily mean that the first version is the very first version or was created before the second version or even that the first version is requested or operated on before the second version. Rather, these phrases are used to identify different versions.
Headings are for convenience only; information on a given topic may be found outside the section whose heading indicates that topic.
Other definitions, explicit and implicit, may be included below.
Aspects of the subject matter described herein are operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, or configurations that may be suitable for use with aspects of the subject matter described herein comprise personal computers, server computers—whether on bare metal or as virtual machines—, hand-held or laptop devices, multiprocessor systems, microcontroller-based systems, set-top boxes, programmable and non-programmable consumer electronics, network PCs, minicomputers, mainframe computers, personal digital assistants (PDAs), gaming devices, printers, appliances including set-top, media center, or other appliances, automobile-embedded or attached computing devices, other mobile devices, phone devices including cell phones, wireless phones, and wired phones, distributed computing environments that include any of the above systems or devices, and the like. While various embodiments may be limited to one or more of the above devices, the term computer is intended to cover the devices above unless otherwise indicated.
Aspects of the subject matter described herein 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, and so forth, which perform particular tasks or implement particular abstract data types. Aspects of the subject matter described herein 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.
Alternatively, or in addition, the functionality described herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
With reference to
The processing unit 120 may be connected to a hardware security device 122. The security device 122 may store and be able to generate cryptographic keys that may be used to secure various aspects of the computer 110. In one embodiment, the security device 122 may comprise a Trusted Platform Module (TPM) chip, TPM Security Device, or the like.
The computer 110 typically includes a variety of computer-readable media. Computer-readable media can be any available media that can be accessed by the computer 110 and includes both volatile and nonvolatile media, and removable and non-removable media. By way of example, and not limitation, computer-readable media may comprise computer storage media and communication media.
Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes RAM, ROM, EEPROM, solid state storage, flash memory or other memory technology, CD-ROM, digital versatile discs (DVDs) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computer 110. Computer storage media does not include communication media.
Communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. Combinations of any of the above should also be included within the scope of computer-readable media.
The system memory 130 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 131 and random access memory (RAM) 132. A basic input/output system 133 (BIOS), containing the basic routines that help to transfer information between elements within computer 110, such as during start-up, is typically stored in ROM 131. RAM 132 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 120. By way of example, and not limitation,
The computer 110 may also include other removable/non-removable, volatile/nonvolatile computer storage media. By way of example only,
The drives and their associated computer storage media, discussed above and illustrated in
A user may enter commands and information into the computer 110 through input devices such as a keyboard 162 and pointing device 161, commonly referred to as a mouse, trackball, or touch pad. Other input devices (not shown) may include a microphone (e.g., for inputting voice or other audio), joystick, game pad, satellite dish, scanner, a touch-sensitive screen, a writing tablet, a camera (e.g., for inputting gestures or other visual input), or the like. These and other input devices are often connected to the processing unit 120 through a user input interface 160 that is coupled to the system bus, but may be connected by other interface and bus structures, such as a parallel port, game port or a universal serial bus (USB).
Through the use of one or more of the above-identified input devices a Natural User Interface (NUI) may be established. A NUI, may rely on speech recognition, touch and stylus recognition, gesture recognition both on screen and adjacent to the screen, air gestures, head and eye tracking, voice and speech, vision, touch, gestures, machine intelligence, and the like. Some exemplary NUI technology that may be employed to interact with a user include touch sensitive displays, voice and speech recognition, intention and goal understanding, motion gesture detection using depth cameras (such as stereoscopic camera systems, infrared camera systems, RGB camera systems, and combinations thereof), motion gesture detection using accelerometers/gyroscopes, facial recognition, 3D displays, head, eye, and gaze tracking, immersive augmented reality and virtual reality systems, as well as technologies for sensing brain activity using electric field sensing electrodes (EEG and related methods).
A monitor 191 or other type of display device is also connected to the system bus 121 via an interface, such as a video interface 190. In addition to the monitor, computers may also include other peripheral output devices such as speakers 197 and printer 196, which may be connected through an output peripheral interface 195.
The computer 110 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 180. The remote computer 180 may be a personal computer, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to the computer 110, although only a memory storage device 181 has been illustrated in
When used in a LAN networking environment, the computer 110 is connected to the LAN 171 through a network interface or adapter 170. When used in a WAN networking environment, the computer 110 may include a modem 172 or other means for establishing communications over the WAN 173, such as the Internet. The modem 172, which may be internal or external, may be connected to the system bus 121 via the user input interface 160 or other appropriate mechanism. In a networked environment, program modules depicted relative to the computer 110, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation,
As mentioned previously, precise selection of text may be challenging with certain types of devices.
Turning to
As shown in
The pane 215 may display one or more paragraphs of text. As illustrated, the pane 215 includes 2 paragraphs of text (e.g., paragraphs 220 and 225). A user may select text from the window 200 using traditional user input devices (e.g., mouse, keyboard, and the like) or any type of Natural User Interface (NUI), which has been described previously. For example, when the window 200 is displayed on a touch sensitive screen, the user may, in one embodiment, select a word by tapping a finger on the area corresponding to the selection 230.
Although a touch sensitive screen and user interaction regarding touching are sometimes mentioned herein, there is no intention to limit user input to these types of interactions. Where these types of interactions are described, it is to be understood that in other embodiments, other user input interactions may be substituted that are functionally equivalent to the user interactions described. Thus, user input that involves touching a touch sensitive screen and dragging a finger along the screen may be performed, in other embodiments, through the use of traditional input devices and/or through the use of a NUI.
After the user has selected a word (or indicated the starting point of a selection), the user may begin expanding the selection 230 by providing expansion input. For example, with a touch sensitive screen, the user may touch with a finger close to a handle (not shown) on the right side of the selection 230 and may begin dragging the finger to the right and/or down on the touch sensitive screen. As the user drags a finger, the selection 230 may expand to identify text that is now part of the selection 230.
As another example, with a touch sensitive screen, the user may touch with a finger close to a handle (not shown) on the left side of the selection 230 and may begin dragging the finger to the left and/or up on the touch sensitive screen. As the user drags a finger, the selection 230 may expand to identify text that is now part of the selection 230.
Paragraph snapping actions may occur as described below in conjunction with
Turning to
At block 515, expansion input is received with respect to the selection. For example, referring to
Expansion input may also include input in a direction opposite of text flow. For example, a user may provide expanding input by placing a finger on the start of the selection 230 and dragging the finger to the left and/or up from the selection 230.
At block 520, the selection is resized in accordance with the expansion input. For example, referring to
At block 525, if the selection as resized satisfies a set of one or more paragraph snapping conditions, the actions continue at block 530; otherwise, the actions continue at block 540. Below are indicated some exemplary paragraph snapping conditions. The examples below are not intended to be all-inclusive or exhaustive. Indeed, based on the teachings herein, those skilled in the art may recognize other examples that fall within the spirit and scope of aspects of the subject matter described herein. Exemplary paragraph snapping conditions include:
1. A selection includes at least N lines of text and the paragraph includes 2N lines of text. For example, if a selection includes 3 lines of text and a paragraph includes 6 lines of text, this snapping condition may be satisfied.
2. A selection includes at least X lines of text and the paragraph includes Y lines of text, where Y is greater than X, and X and Y are hard-coded or configurable. For example, if X=3 and Y=5 and if 3 lines of text of a paragraph 5 lines long are selected, this snapping condition may be satisfied.
3. A selection is greater than a pre-defined percentage of the paragraph. For example, in one implementation, the snapping percentage may be 50%. In another implementation, the snapping percentage may be 75%. In another implementation, the snapping percentage may be X where X is any percentage between 0 and 100.
The pre-defined percentage of the paragraph may be hard-coded or configurable. For example, user input may be received that may be used to define the pre-defined percentage. For example, in one implementation, a user may indicate one of three types of snapping behavior, namely: aggressive, non-aggressive, and no snapping.
For example, if the user indicates aggressive snapping behavior, the pre-defined percentage may be determined as 50% (or another percentage). If the user indicates non-aggressive snapping behavior, the pre-defined percentage may be determined as 75% (or another percentage). If the user indicates no snapping, paragraph snapping may be disabled.
As another example, a user may be able to enter an actual percentage. For example, a user interface may allow a user to enter a percentage that is to be used when paragraph snapping is enabled.
The snapping percentage may be based on lines, sentences, characters, words, area, or the like without departing from the spirit or scope of aspects of the subject matter described herein.
4. A previous paragraph has already been selected and the user expands the selection over a next paragraph. For example, referring to
5. A selection starts at the beginning of a paragraph and includes an amount of text of the paragraph that is over a threshold. For example, referring to
6. A combination of two or more of the above.
At block 530, the selection is snapped to the paragraph. For example, referring to
At block 535, snapping of the paragraph is indicated on an output device. For example, referring to
The visual indication illustrated in
At block 540, other actions, if any, may be performed.
In addition, additional actions may be performed at block 525 as part of determining whether paragraph snapping conditions are met. These additional actions may include, for example:
1. Detecting whether the expansion input is provided via a touch screen, and, if not, disabling paragraph snapping behavior.
2. Detecting that the selection as resized expands into white space (e.g., the blank space between paragraphs), and visually indicating that the selection includes the entire paragraph but does not include the white space.
3. Determining that selection input is expansion input if the selection input is in a direction of flow of the text.
Turning to
At block 615, paragraph snapping is cancelled. For example, referring to
At block 620, the selection is made smaller in accordance with the contraction input. For example, referring to
In addition, after paragraph snapping is cancelled, paragraph snapping rules may be disabled. Once disabled, a user may select specific parts of a paragraph by providing expanding or contracting input for the selection.
At block 625, other actions, if any, may be performed. For example, if additional user input indicates that the selection is to be expanded to a second paragraph, paragraph snapping behavior may be re-enabled.
The processing unit 120 of
As can be seen from the foregoing detailed description, aspects have been described related to paragraph snapping. While aspects of the subject matter described herein are susceptible to various modifications and alternative constructions, certain illustrated embodiments thereof are shown in the drawings and have been described above in detail. It should be understood, however, that there is no intention to limit aspects of the claimed subject matter to the specific forms disclosed, but on the contrary, the intention is to cover all modifications, alternative constructions, and equivalents falling within the spirit and scope of various aspects of the subject matter described herein.