Method and device for determining text editing position of touch equipment

文档序号:1113332 发布日期:2020-09-29 浏览:16次 中文

阅读说明:本技术 一种确定触摸设备文本编辑位置的方法和装置 (Method and device for determining text editing position of touch equipment ) 是由 张亚博 于 2019-03-19 设计创作,主要内容包括:本发明公开了一种确定触摸设备文本编辑位置的方法和装置,涉及计算机技术领域。该方法的一具体实施方式包括:根据文本编辑定位指令生成定位区域,文本编辑定位指令用于确定文本编辑的位置,定位区域位于触摸设备的屏幕区域之内;将待编辑的文本区域在定位区域内移动以确定文本编辑的位置,其中,定位区域内设置有定位光标。该实施方式能够解决无法定位到行首、行尾、顶行、末行等的问题;通过使文本区域相对于屏幕区域移动,可以对任意大小的文本区域进行文本编辑,且无需限定文本区域不得超出屏幕区域,适用范围更广,实用性更强。(The invention discloses a method and a device for determining a text editing position of touch equipment, and relates to the technical field of computers. One embodiment of the method comprises: generating a positioning area according to a text editing positioning instruction, wherein the text editing positioning instruction is used for determining the position of text editing, and the positioning area is positioned in a screen area of the touch equipment; and moving the text area to be edited in the positioning area to determine the text editing position, wherein a positioning cursor is arranged in the positioning area. The implementation mode can solve the problem that the head line, the tail line, the top line, the tail line and the like of the line cannot be positioned; through making the text region move for the screen region, can carry out the text editing to the text region of arbitrary size, and need not to restrict the text region and must not exceed the screen region, application scope is wider, and the practicality is stronger.)

1. A method for determining a text editing position of a touch device, comprising:

generating a positioning area according to a text editing positioning instruction, wherein the text editing positioning instruction is used for determining the position of text editing, and the positioning area is positioned in a screen area of touch equipment;

and moving a text region to be edited in the positioning region to determine the position of text editing, wherein a positioning cursor is arranged in the positioning region.

2. The method of claim 1, wherein moving a text region to be edited within the positioning region comprises:

moving the text region to be edited within the positioning region by moving the text region to be edited within and/or outside the positioning region.

3. The method according to claim 2, wherein a speed of moving the text region to be edited within the positioning region does not exceed a speed of moving the text region to be edited outside the positioning region.

4. The method of claim 1, wherein the positioning area is used to enlarge the text by performing a globalization process on the text.

5. The method of claim 4, wherein the positioning area is obtained by spheronizing the text to achieve magnification of the text by a fisheye lens.

6. An apparatus for determining a text editing position of a touch device, comprising:

the positioning area generating module is used for generating a positioning area according to a text editing positioning instruction, wherein the text editing positioning instruction is used for determining the position of text editing, and the positioning area is positioned in a screen area of the touch equipment;

and the editing position determining module is used for moving the text region to be edited in the positioning region to determine the position of text editing, wherein a positioning cursor is arranged in the positioning region.

7. The apparatus of claim 1, wherein the edit location determination module is further configured to:

moving the text region to be edited within the positioning region by moving the text region to be edited within and/or outside the positioning region.

8. The apparatus of claim 7, wherein a speed of moving the text region to be edited within the positioning region does not exceed a speed of moving the text region to be edited outside the positioning region.

9. The apparatus of claim 1, wherein the positioning area is used to enlarge the text by performing a globalization process on the text.

10. The apparatus of claim 9, wherein the positioning area is used for magnifying the text by a fisheye lens by performing a spheronization process on the text.

11. An electronic device for determining a text editing position of a touch device, comprising:

one or more processors;

a storage device for storing one or more programs,

when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.

12. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-5.

Technical Field

The invention relates to the technical field of computers, in particular to a method and a device for determining a text editing position of touch equipment.

Background

When a text is edited on a touch device (such as a touch screen mobile phone, a touch screen tablet computer and the like) which is provided with a touch screen and can be operated through the touch screen, the following methods are mainly used for positioning the editing position:

1. directly clicking a position which needs to be subjected to text editing in the text area by a finger so as to enable a cursor to appear at a corresponding position;

2. and after long-time pressing by fingers, magnifying a plurality of characters in the line, and dragging a cursor to a position where text editing is required.

In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:

1. fingers are generally larger than characters, and the cursor can not be accurately positioned when the cursor is directly clicked or dragged in a text area to position the cursor, even the cursor repeatedly wanders among a plurality of characters, so that user trouble is caused;

2. amplifying a plurality of characters in the current line through the magnifier, wherein the characters in the left, right, upper and lower lines of the amplified characters can be covered, which also causes user trouble;

3. positioning difficulties can also arise due to screen edge problems if the location at which text editing is required is at the beginning or end of a line.

Disclosure of Invention

In view of this, embodiments of the present invention provide a method and an apparatus for determining a text editing position of a touch device, which can solve the problem that a head line, a tail line, a top line, a last line, and the like cannot be located; through making the text region move for the screen region, can carry out the text editing to the text region of arbitrary size, and need not to restrict the text region and must not exceed the screen region, application scope is wider, and the practicality is stronger.

To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of determining a text editing position of a touch device.

A method of determining a touch device text editing location, comprising: generating a positioning area according to a text editing positioning instruction, wherein the text editing positioning instruction is used for determining the position of text editing, and the positioning area is positioned in a screen area of touch equipment; and moving a text region to be edited in the positioning region to determine the position of text editing, wherein a positioning cursor is arranged in the positioning region.

Optionally, moving the text region to be edited within the positioning region includes: moving the text region to be edited within the positioning region by moving the text region to be edited within and/or outside the positioning region.

Optionally, the speed of moving the text region to be edited within the positioning region does not exceed the speed of moving the text region to be edited outside the positioning region.

Optionally, the positioning area is used for enlarging the text by performing a sphericizing process on the text.

Optionally, the positioning area is processed by sphericizing the text to realize the enlargement of the text by a fish-eye lens.

According to another aspect of the embodiment of the invention, an apparatus for determining a text editing position of a touch device is provided.

An apparatus for determining a text editing location of a touch device, comprising: the positioning area generating module is used for generating a positioning area according to a text editing positioning instruction, wherein the text editing positioning instruction is used for determining the position of text editing, and the positioning area is positioned in a screen area of the touch equipment; and the editing position determining module is used for moving the text region to be edited in the positioning region to determine the position of text editing, wherein a positioning cursor is arranged in the positioning region.

Optionally, the edit position determination module is further configured to: moving the text region to be edited within the positioning region by moving the text region to be edited within and/or outside the positioning region.

Optionally, the speed of moving the text region to be edited within the positioning region does not exceed the speed of moving the text region to be edited outside the positioning region.

Optionally, the positioning area is used for enlarging the text by performing a sphericizing process on the text.

Optionally, the positioning area is processed by sphericizing the text to realize the enlargement of the text by a fish-eye lens.

According to yet another aspect of the embodiments of the present invention, there is provided an electronic device for determining a text editing position of a touch device.

An electronic device for determining a text editing location of a touch device, comprising: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining the text editing position of the touch device provided by the embodiment of the invention.

According to yet another aspect of embodiments of the present invention, a computer-readable medium is provided.

A computer readable medium, on which a computer program is stored, which when executed by a processor implements a method for determining a text editing position of a touch device according to an embodiment of the present invention.

One embodiment of the above invention has the following advantages or benefits: the method comprises the steps that a positioning area is generated in a screen area of the touch device according to a text editing and positioning instruction, and then the text area to be edited moves in the positioning area to determine the text editing position, so that the problem that the head line, the tail line, the top line, the tail line and the like cannot be positioned is solved; the text area can be edited by moving the text area relative to the screen area, and the text area does not need to be limited to be beyond the screen area, so that the application range is wider, and the practicability is higher; meanwhile, the positioning area realizes the twisting processing such as text amplification by performing the sphericization processing on the text, so that the characters at the position to be positioned are in the most prominent amplification state, the recognition rate is improved, meanwhile, the characters in adjacent rows cannot be shielded, the fuzzy recognition of the characters cannot be influenced, the context is more coherent, and the user experience is better.

Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.

Drawings

The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:

FIG. 1 is a schematic diagram of the main steps of a method for determining a text editing position of a touch device according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of the location relationship of various regions of one embodiment of the present invention;

FIG. 3 is a diagram illustrating the overall implementation of an embodiment of the present invention;

FIG. 4 is a diagram illustrating an implementation effect of a cursor at the head of a row according to an embodiment of the present invention;

FIG. 5 is a diagram illustrating an implementation of a cursor at the end of a row according to an embodiment of the present invention;

FIG. 6 is a schematic diagram of the main modules of an apparatus for determining the text editing position of a touch device according to an embodiment of the present invention;

FIG. 7 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;

fig. 8 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.

Detailed Description

Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

In order to solve the problems in the prior art, the invention provides a method and a device for determining a text editing position of touch equipment, wherein the text editing position is determined by moving a text area to be edited in a positioning area generated in a screen area of the touch equipment, so that the problems that the head line, the tail line, the top line, the tail line and the like cannot be positioned are solved; the text area can be edited by moving the text area relative to the screen area, and the text area does not need to be limited to be beyond the screen area, so that the application range is wider, and the practicability is higher; meanwhile, the positioning area realizes the twisting processing such as text amplification by performing the sphericization processing on the text, so that the characters at the position to be positioned are in the most prominent amplification state, the recognition rate is improved, meanwhile, the characters in adjacent rows cannot be shielded, the fuzzy recognition of the characters cannot be influenced, the context is more coherent, and the user experience is better.

Fig. 1 is a schematic diagram of main steps of a method for determining a text editing position of a touch device according to an embodiment of the present invention. As shown in fig. 1, the method for determining a text editing position of a touch device according to an embodiment of the present invention mainly includes the following steps S101 and S102.

Step S101: generating a positioning area according to a text editing positioning instruction, wherein the text editing positioning instruction is used for determining the position of text editing, and the positioning area is positioned in a screen area of the touch equipment;

step S102: and moving the text area to be edited in the positioning area to determine the text editing position, wherein a positioning cursor is arranged in the positioning area.

According to the technical scheme of the invention, when a user wants to edit the text, the position of the text editing needs to be positioned firstly. At this time, the system of the touch device may analyze the text editing positioning instruction according to the operation of the user (for example, the user presses the screen and drags the cursor position, or presses a finger to slide on the screen to drag the positioning cursor position), and then process the text editing positioning instruction, that is, generate a positioning area according to the text editing positioning instruction, where the positioning area is located in the screen area of the touch device. In particular, a positioning region may be added on the upper layer of the text region. The positioning area is used for performing enlargement processing on the text, so that determination of the text editing position can be performed more accurately. The size of the positioning area can be flexibly set according to the requirement, and generally, the width of the positioning area is preferably not more than half of the screen area. As can be understood by those skilled in the art, if the positioning area is too large, most of the whole screen area is the positioning area, which may affect the visual experience; if the positioning area is too small, it is not enough to display 5 characters in front and at the back, and the positioning result cannot be accurate.

In one embodiment of the invention, in order to enable the user to see the text content of the adjacent rows or adjacent columns when the text is enlarged, the user can better judge the text editing position from the whole content, and therefore, the positioning area is used for enlarging the text by performing the spherical processing on the text. Preferably, the positioning area may be circular or elliptical in shape, so that the spheronization process can be more conveniently performed. The sphericizing process refers to the process of shifting, extending and deforming the image or text in a region, and achieves the effect similar to that of using a spherical lens for viewing. Spherical lens means that the inner and outer surfaces of the lens are spherical surfaces, or one surface is spherical surface and the other half is plane surface. After the globalization process, the image or text in the area has various effects such as enlargement, reduction or distortion. Some image processing software commonly used at present can realize spherical processing, such as image processing software Adobe Photoshop (abbreviated as "PS") developed and released by Adobe Systems.

In consideration of the difficulty in text recognition, when the text is subjected to the sphericizing processing, the enlargement effect on the text can be set by setting a sphericizing value (for adjusting different degrees of distortion of sphericizing). In a preferred embodiment of the invention, the text is magnified by the fisheye lens by setting the sphericized numerical value so that the positioning area has the fisheye lens effect. The fisheye lens effect refers to an effect when an image or a character in an area is seen through the fisheye lens, and the fisheye lens belongs to a special lens in an ultra-wide-angle lens, and the visual angle of the fisheye lens is required to reach or exceed the range which can be seen by human eyes. In order to maximize the angle of view of the lens, the front lens of the lens is short in diameter and is parabolic and convex toward the front of the lens, much like the fish eye, so called "fish-eye lens".

In the technical scheme of the invention, after the positioning area is generated, when the user moves the text area, the positioning area does not disappear automatically, but stays at the original position until the user needs to regenerate the positioning area at other positions or the text editing of the user is finished.

According to an embodiment of the present invention, when the text region to be edited is moved within the positioning region in step S102, specifically, the text region to be edited may be moved within the positioning region by moving the text region to be edited within and/or outside the positioning region. In the embodiment of the present invention, regardless of the positional relationship (whether intersecting, containing, etc.) between the text region and the positioning region, when the user moves the text region to be edited, the text region may be moved at any position within the screen region (including within the positioning region and outside the positioning region), so that the text region moves within the positioning region, and the position of the text editing is determined by the positioning cursor provided within the positioning region.

According to still another embodiment of the present invention, a speed of moving the text region to be edited within the positioning region does not exceed a speed of moving the text region to be edited outside the positioning region. When the user moves the text area in the positioning area, the description is that the position where the positioning cursor stays (namely the text editing position) is required to be accurately judged, namely the position is finely adjusted, so the moving speed is slower; when the text area is moved outside the positioning area, the description does not determine which text editing, i.e. coarse position adjustment, is to be performed on a specific segment or line, so that the moving speed is faster. In practical application, the two speeds can be flexibly set to required values according to requirements, can be equal or unequal, and can be used for distinguishing coarse adjustment and fine adjustment or not.

According to an embodiment of the present invention, when distinguishing between coarse tuning and fine tuning, if the positioning region is located outside the text region to be edited, the text region to be edited is moved at least partially into the positioning region by moving the text region to be edited outside the positioning region, and then the text region to be edited is moved again within the positioning region to accurately determine the text editing position.

In addition, when the text area to be edited moves in the positioning area, the position for text editing can be determined by setting the positioning cursor in the positioning area. In the prior art, a mature algorithm exists, for example, taking a windows system as an example, and cursor positioning can be achieved by calling a setConsole CursorPosition function for positioning a cursor position in an API (Application Programming Interface). That is to say, as long as the text area to be edited moves in the positioning area, the function can automatically judge the specific position where the cursor stays, and the text editing position is determined.

According to the implementation process of the embodiment of the present invention described above, it can be seen that the following strategies are adopted in determining the text editing position (positioning cursor) in one specific embodiment of the present invention:

1. the generated positioning area has an unchanged position relative to the screen area;

2. moving the text region to be edited at all positions of the screen region, including inside the positioning region and outside the positioning region, so that the relative position of the text region to the screen region or the positioning region is changed, but moving the text region to be edited inside the positioning region does not exceed moving the text region to be edited outside the positioning region;

3. any position of the text area can be moved into the positioning area, and the head line, the tail line, the top line and the tail line can be accurately positioned.

The following describes a specific implementation process of the technical scheme of the invention with reference to specific embodiments.

Fig. 2 is a schematic diagram of the positional relationship of the respective regions according to an embodiment of the present invention. As shown in fig. 2, the positional relationship of the screen region a, the text region B, and the positioning region D is shown, wherein the positioning region D is located at the midpoint of the screen region a. In addition, since the positioning region D is exemplified by the fact that the fish-eye lens effect can be achieved in the embodiment, and the projection of the positioning region D is a perfect circle, in the implementation of the program, a circumscribed square region C of the positioning region D can also be set for determining the position of the positioning region D.

In fig. 2, the screen area a is an area visible to the user, and the upper left corner position thereof is defined as (A.x, A.y); the text area B is a text area to be edited, the text area can be moved by operations such as dragging by a user, the position of the upper left corner of the text area is defined as (B.x, B.y), and the text area B is not limited to be the same as the size of the screen area A or be located in the screen area A completely; the square area C is used for determining the position of the positioning area D, and the position of the upper left corner thereof is defined as (C.x, C.y); the positioning region D is a region having a spheroidizing effect, the spheroidizing value is set to 65% (which is a parameter value in the image processing software PS), and the position is indicated by a center, defined as a center p (p.x, p.y). In the embodiment of the present invention, the radius of the positioning region D is 3 cm (which can be flexibly set, and is preferably enough to display the upper and lower 5 lines of characters), the position of the center p is (A.x + a.width/2,

a.y + a.height/2), the position of the upper left corner of the square region C is (A.x + a.width/2-positioning region D radius, A.y + a.height/2-positioning region D radius). Wherein, a.width refers to the width of the screen area a, and a.height refers to the height of the screen area a. In addition, the width b.width and height b.height of the text region B, and the width c.width and height c.height of the square region C are also shown in the figure. The width and height of the text area B are not limited to be equal to the width and height of the screen area a, respectively, and may be any other size, which is not limited in the present invention.

In the embodiment shown in fig. 2, the cursor in the positioning region D is set to be located at the center of the positioning region D, and then, when the text region B is moved, the point where the center p is located is at the position corresponding to the text region B (p.x-B.x, p.y-By); then, the setconsollecurrsorposition function is called (taking windows system as an example) to move the cursor, so that the text editing position can be positioned.

Fig. 3 is a schematic diagram of the overall implementation effect of an embodiment of the invention. As shown in fig. 3, the positioning region is used for realizing a fisheye lens effect, for example, when the text region is moved to the positioning region, the text at the middle position of the region is enlarged, the text at the edge is distorted and reduced, but the whole text content is not blocked, so that the user can conveniently judge the specific position of text editing through the whole content of the text.

Fig. 4 is a schematic diagram of an implementation effect of a cursor located at the head of a row according to an embodiment of the present invention. As shown in fig. 4, the positioning region can realize a fisheye lens effect, and the cursor can be accurately positioned at the head of the line by moving the text region. Similarly, the cursor can be accurately positioned to the top row by moving the text area, thereby solving the problem of positioning difficulty caused by the problem of the edge of the screen.

Fig. 5 is a schematic diagram of an implementation effect of a cursor located at the tail of a row according to an embodiment of the present invention. As shown in fig. 5, the positioning region can be used to accurately position the cursor to the tail of the line by moving the text region, for example, to achieve the fisheye lens effect. Likewise, the cursor may also be accurately positioned to the last line by moving the text region. When the text area is moved out of the positioning area, the cursor automatically disappears.

Fig. 6 is a schematic diagram of main blocks of an apparatus for determining a text editing position of a touch device according to an embodiment of the present invention. As shown in fig. 6, an apparatus 600 for determining a text editing position of a touch device according to an embodiment of the present invention mainly includes a positioning area generating module 601 and an editing position determining module 602.

A positioning area generating module 601, configured to generate a positioning area according to a text editing positioning instruction, where the text editing positioning instruction is used to determine a text editing position, and the positioning area is located in a screen area of a touch device;

an editing position determining module 602, configured to move a text region to be edited in a positioning region to determine a position of text editing, where a positioning cursor is disposed in the positioning region.

According to an embodiment of the present invention, the edit position determination module 602 may be further configured to: the text region to be edited is moved within the positioning region by moving the text region to be edited within and/or outside the positioning region.

According to another embodiment of the present invention, a speed of moving the text region to be edited within the positioning region does not exceed a speed of moving the text region to be edited outside the positioning region.

According to the technical scheme of the embodiment of the invention, the positioning area is used for amplifying the text by performing the sphericizing treatment on the text.

According to another embodiment of the invention, the positioning area is processed by spheronization of the text to achieve magnification of the text by a fisheye lens.

According to the technical scheme of the embodiment of the invention, the positioning area is generated in the screen area of the touch equipment according to the text editing and positioning instruction, and then the text area to be edited is moved in the positioning area to determine the text editing position, so that the problem that the head line, the tail line, the top line, the tail line and the like cannot be positioned is solved; the text area can be edited by moving the text area relative to the screen area, and the text area does not need to be limited to be beyond the screen area, so that the application range is wider, and the practicability is higher; meanwhile, the positioning area realizes the twisting processing such as text amplification by performing the sphericization processing on the text, so that the characters at the position to be positioned are in the most prominent amplification state, the recognition rate is improved, meanwhile, the characters in adjacent rows cannot be shielded, the fuzzy recognition of the characters cannot be influenced, the context is more coherent, and the user experience is better.

Fig. 7 illustrates an exemplary system architecture 700 of a method of determining a text editing position of a touch device or an apparatus for determining a text editing position of a touch device to which embodiments of the invention may be applied.

As shown in fig. 7, the system architecture 700 may include terminal devices 701, 702, 703, a network 704, and a server 705. The network 704 serves to provide a medium for communication links between the terminal devices 701, 702, 703 and the server 705. Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.

A user may use the terminal devices 701, 702, 703 to interact with a server 705 over a network 704, to receive or send messages or the like. The terminal devices 701, 702, 703 may have installed thereon various communication client applications, such as a shopping-like application, a web browser application, a search-like application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only).

The terminal devices 701, 702, 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.

The server 705 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 701, 702, 703. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.

It should be noted that the method for determining the text editing position of the touch device provided by the embodiment of the present invention is generally executed by the server 705, and accordingly, the apparatus for determining the text editing position of the touch device is generally disposed in the server 705.

It should be understood that the number of terminal devices, networks, and servers in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.

Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use with a terminal device or server implementing an embodiment of the present invention. The terminal device or the server shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.

As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.

The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.

In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 801.

It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The units or modules described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware. The described units or modules may also be provided in a processor, and may be described as: a processor includes a localization area generation module and an edit location determination module. The names of these units or modules do not in some cases constitute a limitation to the units or modules themselves, and for example, the positioning region generation module may also be described as a "module for generating a positioning region from text editing positioning instructions".

As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: generating a positioning area according to a text editing positioning instruction, wherein the text editing positioning instruction is used for determining the position of text editing, and the positioning area is positioned in a screen area of touch equipment; and moving a text region to be edited in the positioning region to determine the position of text editing, wherein a positioning cursor is arranged in the positioning region.

According to the technical scheme of the embodiment of the invention, the positioning area is generated in the screen area of the touch equipment according to the text editing and positioning instruction, and then the text area to be edited is moved in the positioning area to determine the text editing position, so that the problem that the head line, the tail line, the top line, the tail line and the like cannot be positioned is solved; the text area can be edited by moving the text area relative to the screen area, and the text area does not need to be limited to be beyond the screen area, so that the application range is wider, and the practicability is higher; meanwhile, the positioning area realizes the twisting processing such as text amplification by performing the sphericization processing on the text, so that the characters at the position to be positioned are in the most prominent amplification state, the recognition rate is improved, meanwhile, the characters in adjacent rows cannot be shielded, the fuzzy recognition of the characters cannot be influenced, the context is more coherent, and the user experience is better.

The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:平面排版方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!