WO2013178156A1 - 触摸屏字符显示方法及装置 - Google Patents
触摸屏字符显示方法及装置 Download PDFInfo
- Publication number
- WO2013178156A1 WO2013178156A1 PCT/CN2013/079818 CN2013079818W WO2013178156A1 WO 2013178156 A1 WO2013178156 A1 WO 2013178156A1 CN 2013079818 W CN2013079818 W CN 2013079818W WO 2013178156 A1 WO2013178156 A1 WO 2013178156A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- area
- character
- occlusion
- region
- equation
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0412—Digitisers structurally integrated in a display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04886—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/041—Indexing scheme relating to G06F3/041 - G06F3/045
- G06F2203/04101—2.5D-digitiser, i.e. digitiser detecting the X/Y position of the input means, finger or stylus, also when it does not touch, but is proximate to the digitiser's interaction surface and also measures the distance of the input means within a short range in the Z direction, possibly with a separate measurement setup
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04808—Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen
Definitions
- the present invention relates to the field of mobile communications, and in particular, to a touch screen character display method and apparatus.
- touch screen input methods have become more and more popular. While convenient for people to use, touch screen input also has more inconveniences in use. For example: The touch screen has no touch on the keyboard, which makes the user often touch multiple keys on the screen, resulting in unnecessary input.
- the text selection since the font is generally much smaller than the finger area, a finger will block several characters, and it is difficult to accurately locate the part of the content and the starting position of the character to be selected by the user. Usually it is necessary to repeatedly press repeatedly to be able to locate successfully, which greatly inconveniences for user use.
- the present invention provides a touch screen character display method and apparatus to solve the problem of inaccurate character positioning and character selection when performing touch screen input of a terminal in the related art.
- the present invention provides a touch screen character display method, including: determining that a user touches an occlusion area of a touch screen when detecting that a position where a character is displayed on a touch screen exceeds a predetermined time threshold; acquiring an occluded character under the occlusion area, and character
- the predetermined enlarged area on the touch screen except the occlusion area is independently displayed and enlarged; the contact of the user in the predetermined enlarged area is detected, and the characters of the occlusion area are positioned and/or selected according to the detected contact.
- the present invention also provides a touch screen character display device, comprising: a detection determining module configured to determine an occlusion area in which the user touches the touch screen when detecting that the position at which the user touches the touch screen displays the character exceeds a predetermined time threshold;
- the display enlargement module is configured to obtain the occluded characters in the occlusion area, and independently display and enlarge the characters on the touch screen in a predetermined enlarged area except the occlusion area;
- the character processing module is configured to detect the contact of the user in the predetermined enlarged area And locate and select the characters in the occlusion area based on the detected contact.
- the beneficial effects of the present invention are as follows:
- the related technology is solved by independently displaying and amplifying the occluded characters under the occlusion area on a predetermined enlarged area on the touch screen, and by detecting the operation of the user in the predetermined enlarged area, positioning or selecting characters.
- the problem of inaccurate character positioning and character selection is easy to occur when the touch screen input of the terminal is performed, which can improve the success rate of the user selecting characters and locating characters, and breaks through the bottleneck of intelligent terminal positioning and text accuracy selection.
- FIG. 1 is a flowchart of a method for displaying a touch screen character according to an embodiment of the present invention
- FIG. 2 is a flowchart of detailed processing of a method for displaying a touch screen character according to an embodiment of the present invention
- FIG. 3 is a finger touch of an embodiment of the present invention
- FIG. 4 is a schematic diagram of positioning characters according to an embodiment of the present invention
- FIG. 5 is a schematic diagram of screen area definition and coordinate conversion according to an embodiment of the present invention
- FIG. 6 is a selection of an embodiment of the present invention
- FIG. 7 is a detailed processing flowchart of character selection according to an embodiment of the present invention
- FIG. 8 is a detailed processing flowchart of text positioning according to an embodiment of the present invention
- FIG. 9 is a structure of a touch screen character display device according to an embodiment of the present invention; schematic diagram. DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings.
- the embodiment of the present invention provides a touch screen character display method and device, and the embodiment of the present invention is based on the user's usage habits and The finger area feature gives a friendly character positioning and input scheme that will greatly improve performance in this area.
- the present invention will be further described in detail below in conjunction with the drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
- FIG. 1 is a flowchart of a touch screen character display method according to an embodiment of the present invention.
- a touch screen character display according to an embodiment of the present invention is shown. The method includes the following steps: Step 101: When it is detected that the location where the user touches the touch screen displays the character exceeds the predetermined time threshold, determine that the user touches the occlusion area of the touch screen; when detecting that the user touches the touch screen, the position where the character is not displayed exceeds the predetermined time threshold. Or; when it is detected that the user touches the touch screen does not exceed the predetermined time threshold, it does not respond to the user's operation.
- determining that the user touches the occlusion area of the touch screen specifically includes: determining a radius of the occlusion area according to formula 1.
- Step 102 Acquire an occluded character in the occlusion area, and independently display and enlarge the character on a predetermined enlarged area of the touch screen except the occlusion area;
- the coordinate system of the entire touch screen display area is an XOY coordinate system
- the coordinate system of the predetermined enlargement area is a ⁇ ' coordinate system, wherein the coordinate value of the 0' point in the ⁇ coordinate system is (X Q , Yo)
- the entire touch screen display area is the D1 area
- the occlusion area in the D1 area is the D3 area
- the rectangle with the D3 area as the inscribed circle is the D2 area
- the predetermined enlarged area is in the ⁇ ' ⁇ '
- Step 103 Detect a contact of the user in the predetermined enlarged area, and locate and/or select a character of the occlusion area according to the detected contact.
- the step 103 includes the following processing: when detecting that the user contacts the predetermined enlarged area, recording a predetermined enlarged area start position touched by the user, and determining whether the user continues to make sliding contact in the predetermined enlarged area, and if the determination is negative, according to the predetermined
- the starting position of the enlarged area is used to calculate the starting position of the corresponding occlusion area in the occlusion area, and the cursor is moved to the character corresponding to the start position of the occlusion area; if the determination is yes, the predetermined enlarged area ending position of the user contact is recorded, according to Calculating a starting position of the enlarged area and a predetermined ending position of the enlarged area to calculate a corresponding starting position of the occlusion area and an ending position of the occlusion area, and selecting a corresponding character between the starting position of the occlusion area and the ending position of the occlusion area .
- step 103 according to the starting position of the predetermined enlarged area, calculating the starting position of the corresponding occlusion area in the occlusion area, and moving the cursor to the character corresponding to the starting position of the occlusion area, specifically includes: Get the center coordinate ( ', y.') of the starting position of the D4 area touched by the user, and calculate the original coordinates ( , y c ) corresponding to the center coordinate ( ', y c ') in the occlusion area according to Equation 4 and Equation 5. :
- the cursor is set in the two character gaps closest to the original coordinates ( , y c ); in step 103, the predetermined enlarged region end position of the user contact is recorded, according to Calculating a starting position of the enlarged area and a predetermined ending position of the enlarged area to calculate a corresponding starting position of the occlusion area and an ending position of the occlusion area, and selecting a corresponding character between the starting position of the occlusion area and the ending position of the occlusion area Specifically, the method includes: obtaining the center coordinate ( 1 ', y cl ') of the starting position of the D4 region touched by the user, and calculating the original coordinate corresponding to the central coordinate (x cl ', yd*) in the occlusion region according to the formula 6 and the formula ⁇ (x cl , yci);
- Step 201 detecting that the user touches the screen action and the duration of pressing exceeds a certain time threshold Ts;
- Step 202 The terminal determines whether the area pressed by the user includes a text character.
- Step 203 Obtain the area and shape of the touch screen press.
- Step 205 Acquire a horizontal character that is currently circled within a radius of Rr. In step 206, the circled horizontal characters are independently displayed and enlarged.
- step 206 the coordinate system definition is first performed.
- the coordinate systems of the original screen and the enlarged screen are set to XOY and ⁇ ', respectively.
- D1, D2, D3, and D4 areas respectively.
- Table 1 The meaning of each area and the coordinate system used are shown in Table 1 below: Table 1
- the two coordinate systems have a stretching and translation relationship.
- Step 207 the user touches the screen in the new text display area;
- Step 208 the location where the user touches the screen;
- Step 209 determining whether the user slides to select the text, if the determination is yes, go to step 210, otherwise, go to step 211;
- 210 when the user presses in the zoom-in area, the start position of the press is recorded, and the user continues to slide horizontally and then release on the screen, then the user is considered to be the purpose of selecting multiple characters, as shown in FIG. When the character is in position, the enlarged area display disappears, and the character between the start position and the end position selected by the user of the original text is selected and highlighted (see the shaded portion of the figure).
- the detailed selection processing operation step is as shown in FIG.
- Step 212 if the user's finger does not continue to slide horizontally on the screen, but is pressed and released, the user is considered Only the positioning character is displayed, and the enlarged area display disappears. As shown in Fig. 4, the cursor position of the original text is moved to the character just positioned by the user.
- the detailed positioning processing steps are as shown in FIG. 8, and will be described in detail later; Step 212, the operation ends.
- 7 is a detailed processing flowchart of text selection according to an embodiment of the present invention. As shown in FIG. 7, the text selection according to the embodiment of the present invention includes the following processing: Step 701: Acquire a D3 area, and circle its circumscribed rectangle to determine a D2 area.
- Step 702 Obtain the length and width parameters a and b of the D3 region, and the offset coordinates (xl, yl) corresponding to the 0 point of the screen;
- Step 703 read the preset screen expansion ratios M and N, by using the above From the XOY coordinate to the calculation formula of the ⁇ ' coordinate, the D4 region is calculated;
- Step 704 the background color of the D4 region is rendered to be different from the original screen color to achieve a good contrast effect;
- Step 706 the user presses in the D4 area;
- Step 707 Acquire a central coordinate of the pressed area (x'cl, y'cl);
- Step 708 calculate the original coordinate of the D3 area by using a calculation formula from the ⁇ ' coordinate to the ⁇ coordinate
- Step 709 according to the coordinates (xl, yl), the cursor is placed in the two character gaps closest to the original screen distance (xl, yl);
- Step 710 the user releases after sliding the D4;
- Step 711 Obtaining the center coordinate of the loose area (x'c2, y'c2) ;
- step 712 calculating the original coordinate (x2, y2) of the D3 region by calculating the formula from the ⁇ ' coordinate to the ⁇ coordinate;
- Step 713 according to The coordinates (x2, y2) are placed in the two character gaps closest to the original screen distance (x2, y2);
- Step 714 the characters from the start cursor to the end cursor are selected in the original coordinates.
- Step 801 Acquire a D3 area, and circle its circumscribed rectangle to determine D2.
- Step 802 obtaining length and width parameters a and b of the D3 region, and corresponding offset coordinates (xl, yl) at the 0 point of the screen;
- Step 803, reading the preset screen expansion ratios M and N The above calculation formula from the XOY coordinate to the ⁇ ' coordinate calculates the D4 region;
- Step 804 the background color of the D4 region is rendered to be different from the original screen color to achieve a good contrast effect;
- step 806 the user presses in the D4 area;
- step 807 obtains the center coordinate of the pressed area (x'c, y'c);
- Step 808 through the above ⁇ ' The formula for calculating the coordinate to the ⁇ coordinate, and calculating the original coordinate (x, y) of the D3 region;
- the characters that are occluded under the occlusion area are independently displayed and enlarged in a predetermined enlarged area on the touch screen, and the operation is performed by detecting the operation of the user in the predetermined enlarged area.
- the positioning or selection solves the problem that the character positioning and the character selection are inaccurate when the touch screen input of the terminal is performed in the related art, and the user can select characters and positioning in webpage browsing, webpage content selection, text file content selection.
- the success rate of characters breaks through the bottleneck of intelligent terminal positioning and text accuracy selection.
- the technical solution of the embodiment of the present invention does not need to specifically increase the hardware cost, and can be implemented by simple software modification by using the module of the product itself.
- FIG. 9 is a schematic structural diagram of a touch screen character display device according to an embodiment of the present invention. As shown in FIG. 9, a touch screen character display according to an embodiment of the present invention is shown.
- the device includes: a detection determination module 90, a display amplification module 92, and a character processing module 94.
- the respective modules of the embodiments of the present invention are described in detail below.
- the detection determining module 90 is configured to determine that the user touches the occlusion area of the touch screen when detecting that the position where the user touches the character on the touch screen exceeds the predetermined time threshold; specifically, the detection determining module 90 is specifically configured to: determine the occlusion area according to the formula 1 Radius
- R r R t + d r Formula 1; wherein R t is the maximum radius of the user's actual touch pressing area detected by the touch screen, 4 is a preset estimated value; and the occlusion area is determined according to the radius R.
- the display amplification module 92 is configured to acquire the occluded characters in the occlusion area, and independently display and enlarge the characters on the touch screen in a predetermined enlarged area except the occlusion area;
- the coordinate system of the entire touch screen display area is an XOY coordinate system
- the coordinate system where the predetermined enlargement area is located is the ⁇ ' coordinate system, where the coordinate value of the 0' point in the ⁇ coordinate system is (X Q , Y Q ), and in the XOY coordinate system, the entire touch screen display area is the D1 area, the D1 area
- the inner occlusion area is the D3 area, and the rectangle with the D3 area as the inscribed circle is the D2 area, and in the ⁇
- the character processing module 94 is configured to detect a user's contact at a predetermined magnified area and to position and/or select a character of the occlusion area based on the detected contact.
- the character processing module 94 specifically includes: a detection determining module configured to: when detecting that the user contacts the predetermined enlarged area, record a predetermined enlarged area start position contacted by the user, and determine whether the user continues to perform sliding contact in the predetermined enlarged area. If the judgment is no, the character positioning module is called; if the determination is yes, the character selection module is called; the character positioning module is set to calculate the corresponding occlusion area starting position in the occlusion area according to the starting position of the predetermined enlarged area, and move the cursor Specifically, the character positioning module is specifically configured to: obtain a center coordinate (', y.') of the starting position of the D4 region touched by the user, and calculate according to formula 4 and formula 5.
- a detection determining module configured to: when detecting that the user contacts the predetermined enlarged area, record a predetermined enlarged area start position contacted by the user, and determine whether the user continues to perform sliding contact in the predetermined enlarged area. If the judgment is no, the character positioning module is
- the cursor is set in the two character gaps closest to the original coordinates ( , y c );
- a character selection module configured to record a predetermined enlarged area end position of the user contact, and calculate a corresponding occlusion area start position and an occlusion area end position in the occlusion area according to the predetermined enlarged area start position and the predetermined enlarged area end position, and the occlusion is blocked
- the character corresponding to the position between the start position of the area and the end position of the occlusion area is selected.
- the character selection module is specifically set to: obtain the center coordinate (x el ', y el ') of the starting position of the D4 region touched by the user, and calculate the occlusion region and the center coordinate according to the formula 6 and the formula ( (x cl ', yd* Corresponding original coordinates (x cl , yci ) ;
- the characters that are occluded under the occlusion area are independently displayed and enlarged in a predetermined enlarged area on the touch screen, and the operation is performed by detecting the operation of the user in the predetermined enlarged area.
- the positioning or selection solves the problem that the character positioning and the character selection are inaccurate when the touch screen input of the terminal is performed in the related art, and the user can select characters and positioning in webpage browsing, webpage content selection, text file content selection.
- the success rate of characters breaks through the bottleneck of intelligent terminal positioning and text accuracy selection.
- the technical solution of the embodiment of the present invention does not need to specifically increase the hardware cost, and can be implemented by simple software modification by using the module of the product itself.
- modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
- any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
- Each feature disclosed in the specification including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent, or similar purpose, unless otherwise stated.
- the invention can also be implemented to perform this Some or all of the devices or device programs (e.g., computer programs and computer program products) of the methods described herein.
- a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
- the word “comprising” does not exclude the presence of the elements or the steps in the claims.
- the invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item.
- the use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明公开了一种触摸屏字符显示方法及装置。该方法包括:当检测到用户接触触摸屏上显示有字符的位置超过预定时间阈值时,确定用户接触触摸屏的遮挡区域;获取遮挡区域下被遮挡的字符,并将字符在触摸屏上除遮挡区域之外的预定放大区域进行独立显示和放大;检测用户在预定放大区域的接触,并根据检测到的接触对遮挡区域的字符进行定位和选择。借助于本发明的技术方案,能够提高用户选择字符和定位字符的成功率,突破了智能终端定位和选择文本准确性的瓶颈。
Description
触摸屏字符显示方法及装置 技术领域 本发明涉及移动通讯领域, 特别是涉及一种触摸屏字符显示方法及装置。 背景技术 在相关技术中, 随着智能手机和其他智能产品的兴起, 触屏输入方式已经变得越 来越普及。 在方便人们使用的同时, 触屏输入也存在较多的使用上的不便。 例如: 触 屏无键盘机的触感, 使得用户经常会在屏幕上触到多个键, 导致不必要的输入。 此外, 在进行文本选择时, 由于一般情况下字体要比手指面积小得多, 就会出现 一个手指挡住了好几个字符, 难以准确定位出用户要选中的部分内容和字符的起始位 置。 通常需要反复按下多次才可能定位成功, 这样极大的为用户使用带来不便。 发明内容 本发明提供一种触摸屏字符显示方法及装置, 以解决相关技术中在进行终端的触 屏输入时易发生字符定位和字符选择不准确的问题。 本发明提供一种触摸屏字符显示方法, 包括: 当检测到用户接触触摸屏上显示有字符的位置超过预定时间阈值时, 确定用户接 触触摸屏的遮挡区域; 获取遮挡区域下被遮挡的字符, 并将字符在触摸屏上除遮挡区域之外的预定放大 区域进行独立显示和放大; 检测用户在预定放大区域的接触, 并根据检测到的接触对遮挡区域的字符进行定 位和 /或选择。 本发明还提供了一种触摸屏字符显示装置, 包括: 检测确定模块, 设置为当检测到用户接触触摸屏上显示有字符的位置超过预定时 间阈值时, 确定用户接触触摸屏的遮挡区域;
显示放大模块, 设置为获取遮挡区域下被遮挡的字符, 并将字符在触摸屏上除遮 挡区域之外的预定放大区域进行独立显示和放大; 字符处理模块, 设置为检测用户在预定放大区域的接触, 并根据检测到的接触对 遮挡区域的字符进行定位和选择。 本发明有益效果如下: 通过将遮挡区域下被遮挡的字符在触摸屏上的预定放大区域进行独立显示和放 大, 并通过检测用户在预定放大区域的操作, 对字符进行定位或选择, 解决了相关技 术中在进行终端的触屏输入时易发生字符定位和字符选择不准确的问题, 能够提高用 户选择字符和定位字符的成功率, 突破了智能终端定位和选择文本准确性的瓶颈。 上述说明仅是本发明技术方案的概述, 为了能够更清楚了解本发明的技术手段, 而可依照说明书的内容予以实施, 并且为了让本发明的上述和其它目的、 特征和优点 能够更明显易懂, 以下特举本发明的具体实施方式。 附图说明 通过阅读下文优选实施方式的详细描述, 各种其他的优点和益处对于本领域普通 技术人员将变得清楚明了。 附图仅用于示出优选实施方式的目的, 而并不认为是对本 发明的限制。 而且在整个附图中, 用相同的参考符号表示相同的部件。 在附图中: 图 1是本发明实施例的触摸屏字符显示方法的流程图; 图 2是本发明实施例的触摸屏字符显示方法的详细处理的流程图; 图 3是本发明实施例的手指触屏时按压区域与实际遮挡区域的示意图; 图 4是本发明实施例的定位字符的示意图; 图 5是本发明实施例的屏幕区域定义和坐标转换的示意图; 图 6是本发明实施例的选择文本的示意图; 图 7是本发明实施例的文字选择的详细处理流程图; 图 8是本发明实施例的文字定位的详细处理流程图; 图 9是本发明实施例的触摸屏字符显示装置的结构示意图。
具体实施方式 下面将参照附图更详细地描述本公开的示例性实施例。 虽然附图中显示了本公开 的示例性实施例, 然而应当理解, 可以以各种形式实现本公开而不应被这里阐述的实 施例所限制。 相反, 提供这些实施例是为了能够更透彻地理解本公开, 并且能够将本 公开的范围完整的传达给本领域的技术人员。 为了解决相关技术中在进行终端的触屏输入时易发生字符定位和字符选择不准确 的问题, 本发明实施例提供了一种触摸屏字符显示方法及装置, 本发明实施例根据用 户的使用习惯和手指面积特性给出了一种友好的字符定位和输入方案, 将极大的提升 此方面的性能。 以下结合附图以及实施例, 对本发明进行进一步详细说明。应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不限定本发明。 方法实施例 根据本发明的实施例, 提供了一种触摸屏字符显示方法, 图 1是本发明实施例的 触摸屏字符显示方法的流程图, 如图 1所示, 根据本发明实施例的触摸屏字符显示方 法包括如下处理: 步骤 101, 当检测到用户接触触摸屏上显示有字符的位置超过预定时间阈值时, 确定用户接触触摸屏的遮挡区域; 当检测到用户接触触摸屏上没有显示字符的位置超过预定时间阈值时; 或者, 当 检测到用户接触触摸屏没有超过预定时间阈值时, 不响应用户的操作。 在步骤 101中, 确定用户接触触摸屏的遮挡区域具体包括: 根据公式 1确定遮挡区域的半径
Rr=Rt+dr 公式 1; 其中, Rt为触摸屏检测到的用户实际触摸按压区域的最大半径, 4为预先设置的 预估值; 根据半径 R确定遮挡区域。 步骤 102, 获取遮挡区域下被遮挡的字符, 并将字符在触摸屏上除遮挡区域之外 的预定放大区域进行独立显示和放大;
在步骤 102中, 整个触摸屏显示区域所在的坐标系为 XOY坐标系, 预定放大区 域所在的坐标系为 ΧΌΎ'坐标系, 其中, 0'点在 ΧΟΥ坐标系的坐标值为 (XQ, Yo), 在 XOY坐标系内,整个触摸屏显示区域为 D1区域, D1区域内的遮挡区域为 D3区域, 以 D3区域为内切圆的矩形为 D2区域,在 Χ'ΟΎ'坐标系内,预定放大区域为 D4区域; 步骤 102具体包括: 检测 D3区域, 根据 D3区域确定 D2区域, 并获取 D2区域的长 a和宽 b; 获取预先设置的屏幕扩展比率 M和 N, 其中, M= a'/a, N= b'/b, a'为 D4区域的 长, b'为 D4区域的宽; 根据公式 2和公式 3, 确定 XOY坐标系中 D2区域上的一点(x, y)到 ΧΌΎ' 坐 标系中 D4区域上的一点 (x', y) 的转换关系: x*=(x-x0 )*Μ 公式 2; y'=(y-yo )*N 公式 3; 根据转换关系确定 D4区域; 获取遮挡区域下被遮挡的字符, 将字符在 D4区域内显示, 并将 D4区域的字体大 小设置为原字符大小的 T倍, 其中, T=min (M, N)。 步骤 103, 检测用户在预定放大区域的接触, 并根据检测到的接触对遮挡区域的 字符进行定位和 /或选择。 具体地, 步骤 103包括如下处理: 当检测到用户接触预定放大区域时, 记录用户 接触的预定放大区域起始位置, 并判断用户是否继续在预定放大区域进行滑动接触, 如果判断为否,根据预定放大区域起始位置计算遮挡区域中相应的遮挡区域起始位置, 并将光标移动到该遮挡区域起始位置所对应的字符前; 如果判断为是, 记录用户接触 的预定放大区域终止位置, 根据预定放大区域起始位置和预定放大区域终止位置计算 遮挡区域中相应的遮挡区域起始位置和遮挡区域终止位置, 并将该遮挡区域起始位置 到该遮挡区域终止位置之间所对应的字符选中。 步骤 103中, 根据预定放大区域起始位置, 计算遮挡区域中相应的遮挡区域起始 位置, 并将光标移动到该遮挡区域起始位置所对应的字符前具体包括:
获取用户接触的 D4区域起始位置的中心坐标 ( ', y。'), 根据公式 4和公式 5计 算出遮挡区域中与中心坐标 ( ', yc') 对应的原坐标 ( , yc):
xc = xc'/M+xo 公式 4;
yc = yc'/N+y0 公式 5; 将光标设置于距离原坐标 ( , yc) 最近的两个字符间隙中; 在步骤 103中, 记录用户接触的预定放大区域终止位置, 根据预定放大区域起始 位置和预定放大区域终止位置计算遮挡区域中相应的遮挡区域起始位置和遮挡区域终 止位置, 并将该遮挡区域起始位置到该遮挡区域终止位置之间所对应的字符选中具体 包括: 获取用户接触的 D4区域起始位置的中心坐标 ( 1', ycl'), 根据公式 6和公式 Ί 计算出遮挡区域中与中心坐标 (xcl', yd*) 对应的原坐标 (xcl, yci);
Xcl= Xcl'/M+Xo 公式 6;
yci= yci'N+yo 公式 7; 将起始光标设置于距离原坐标 (xcl, yci) 最近的两个字符间隙中; 在检测到用户在 D4区域滑动终止后,获取用户接触的 D4区域终止位置的中心坐 标 ( 2', yC2*), 根据公式 8和公式 9计算出遮挡区域中与中心坐标 ( 2', yc2' 对应 的原坐标 (xc2, yc2);
Xc2= Xc2'/M+X0 公式 8;
yC2= yC2'/N+y0 公式 9; 将终止光标设置于距离原坐标 ( 2, yc2) 最近的两个字符间隙中; 在 XOY坐标系中选中从起始光标到终止光标之间的字符。 以下结合附图, 对本发明实施例的技术方案进行详细的说明。 图 2是本发明实施例的触摸屏字符显示方法的详细处理的流程图, 如图 2所示, 具体包括如下处理: 步骤 201, 检测到用户触摸屏幕动作并且按下的时长超出一定时间阈值 Ts;
步骤 202, 终端判断用户按下的区域是否包括文本字符, 如果是, 执行步骤 203, 否则, 执行步骤 212; 步骤 203, 获取触摸屏按压的面积和形状; 步骤 204, 将用户手指真正按下的触摸屏区域和实际手指遮挡的区域进行换算。 例如, 可以采用图 3 中近似圆形的区域, 在图 3中, =Rt+4, 其中, Rt为触摸屏检 测到的用户实际触摸按压区域的最大半径, d 为设置的预估值, 那么手指实际遮挡和 覆盖的区域就可以通过上式计算。 步骤 205, 获取当前以 Rr为半径的范围内被圈起的横向字符; 步骤 206, 将圈起的横向字符进行独立显示和放大。 如图 4所示, 在整个屏幕宽 度上均勾分布这些字符, 并且保证字符和字符间的间隔足够明显。 具体地, 在步骤 206中, 首先要坐标系定义, 根据图 5所示, 设置原屏幕和放大 屏幕的坐标系分别为 XOY和 ΧΌΎ'。 分别定义 Dl, D2, D3, D4区域。 各个区域的 含义和所采用的坐标系如下表 1所示: 表 1
为了满足文本放大显示的灵活性, 两个坐标系存在伸展和平移关系。 具体转换关 系换算如下步骤: 设 0'在 ΧΟΥ坐标的坐标值为 (xQ,y()), 区域 D2的长和宽分别为 a、 b, D4的长和 宽分别为 a'、 b'。 则可以定义 M和 N分别为从 D2映射到 D4的长和宽变形比例如下 M=a'/a, N=b'/b。 故而可以得出 XOY中任意一点 (x,y) 与 ΧΌΎ'坐标中任意一点 (x',y)的转换关系 如下: xf = C^ _ o) * M, yf = (y— }¾) 。
反之, ΧΌΎ'中任意一点 (x,y) 与 X0Y坐标中任意一点 (x',y')的转换关系如下:
步骤 207, 用户在新文本显示区域触碰屏幕; 步骤 208, 获取用户触碰屏幕的位置; 步骤 209, 判断用户是否滑动选择文字, 如果判断为是, 执行步骤 210, 否则, 执 行步骤 211 ; 步骤 210, 当用户在放大区域按下时, 记录按下的起始位置, 用户在屏幕上继续 横向滑动后松开, 则认为用户是选中多个字符的目的, 如图 6所示, 记录滑动终止时 字符的位置, 此时放大区域显示消失, 原文本的用户选中的起始位置和终止位置之间 的字符被选中, 并且高亮显示(参见图中阴影部分的显示)。其中详细选择处理运算步 骤如附图 7所示, 后续会进行详细的说明; 继续执行步骤 212; 步骤 211, 若用户手指未在屏幕上继续横向滑动, 而是按下后松开, 则认为用户 只是定位字符, 此时放大区域显示消失, 如图 4所示, 原文本的光标位置移动到刚才 用户定位到的字符前。其中详细定位处理步骤如附图 8所示,后续会进行详细的说明; 步骤 212, 结束操作。 图 7是本发明实施例的文字选择的详细处理流程图, 如图 7所示, 根据本发明实 施例的文字选择包括如下处理: 步骤 701, 获取 D3区域, 并圈定其外接矩形, 确定 D2区域; 步骤 702, 获取 D3区域的长和宽参数 a和 b, 及其对应在屏幕 0点的偏移坐标 (xl,yl); 步骤 703, 读取预置的屏幕扩展比率 M和 N, 通过上述从 XOY坐标到 ΧΌΎ'坐 标的计算公式, 计算出 D4区域; 步骤 704,对 D4区域背景色渲染,使之区别于原屏幕颜色以达到良好的对比效果; 步骤 705, 字体大小设置为原来的 Τ倍, T=min(M,N); 步骤 706, 用户在 D4区域按下;
步骤 707, 获取按下区域的中心坐标 (x'cl,y'cl); 步骤 708, 通过从 ΧΌΎ'坐标到 ΧΟΥ坐标的计算公式, 计算出 D3区域的原坐标
(xi,yi); 步骤 709,根据坐标 (xl,yl),将光标置于原屏幕距离 (xl,yl)最近的两个字符间隙中; 步骤 710, 用户在 D4滑动之后松开; 步骤 711, 获取松开区域的中心坐标 (x'c2,y'c2); 步骤 712, 通过从 ΧΌΎ'坐标到 ΧΟΥ坐标的计算公式, 计算出 D3区域的原坐标 (x2,y2); 步骤 713,根据坐标 (x2,y2),将光标置于原屏幕距离 (x2,y2)最近的两个字符间隙中; 步骤 714, 在原坐标中选中从起始光标到终止光标之间的字符。 图 8是本发明实施例的文字定位的详细处理流程图, 如图 8所示, 根据本发明实 施例的文字定位具体包括如下处理: 步骤 801, 获取 D3区域, 并圈定其外接矩形, 确定 D2区域; 步骤 802, 获取 D3区域的长和宽参数 a和 b, 及其对应在屏幕 0点的偏移坐标 (xl,yl); 步骤 803, 读取预置的屏幕扩展比率 M和 N, 通过上述从 XOY坐标到 ΧΌΎ'坐 标的计算公式, 计算出 D4区域; 步骤 804,对 D4区域背景色渲染,使之区别于原屏幕颜色以达到良好的对比效果; 步骤 805, 字体大小设置为原来的 Τ倍, T=min(M,N); 步骤 806, 用户在 D4区域按下; 步骤 807, 获取按下区域的中心坐标 (x'c,y'c); 步骤 808, 通过上述从 ΧΌΎ'坐标到 ΧΟΥ坐标的计算公式, 计算出 D3区域的原 坐标 (x,y);
步骤 809, 根据坐标 (x,y), 将光标置于原屏幕距离 (x,y)最近的两个字符间隙中, 定 位完毕。 综上所述, 借助于本发明实施例的技术方案, 通过将遮挡区域下被遮挡的字符在 触摸屏上的预定放大区域进行独立显示和放大, 并通过检测用户在预定放大区域的操 作, 对字符进行定位或选择, 解决了相关技术中在进行终端的触屏输入时易发生字符 定位和字符选择不准确的问题, 能够提高用户在网页浏览, 网页内容选择、 文本文件 内容选择方面选择字符和定位字符的成功率, 突破了智能终端定位和选择文本准确性 的瓶颈。 此外, 本发明实施例的技术方案无需专门增加硬件成本, 均可以借用产品自 身的模块通过简单的软件修改实现。 装置实施例 根据本发明的实施例, 提供了一种触摸屏字符显示装置, 图 9是本发明实施例的 触摸屏字符显示装置的结构示意图, 如图 9所示, 根据本发明实施例的触摸屏字符显 示装置包括: 检测确定模块 90、 显示放大模块 92、 以及字符处理模块 94, 以下对本 发明实施例的各个模块进行详细的说明。 检测确定模块 90, 设置为当检测到用户接触触摸屏上显示有字符的位置超过预定 时间阈值时, 确定用户接触触摸屏的遮挡区域; 具体地, 检测确定模块 90具体设置为: 根据公式 1确定遮挡区域的半径
Rr=Rt+dr 公式 1; 其中, Rt为触摸屏检测到的用户实际触摸按压区域的最大半径, 4为预先设置的 预估值; 根据半径 R确定遮挡区域。 显示放大模块 92, 设置为获取遮挡区域下被遮挡的字符, 并将字符在触摸屏上除 遮挡区域之外的预定放大区域进行独立显示和放大; 整个触摸屏显示区域所在的坐标系为 XOY坐标系, 预定放大区域所在的坐标系 为 ΧΌΎ'坐标系, 其中, 0'点在 ΧΟΥ坐标系的坐标值为 (XQ, YQ), 在 XOY坐标系 内, 整个触摸屏显示区域为 D1区域, D1区域内的遮挡区域为 D3区域, 以 D3区域 为内切圆的矩形为 D2区域, 在 Χ'ΟΎ'坐标系内, 预定放大区域为 D4区域;
显示放大模块 92具体设置为: 检测 D3区域, 根据 D3区域确定 D2区域, 并获取 D2区域的长 a和宽 b; 获取预先设置的屏幕扩展比率 M和 N, 其中, M= a'/a, N= b'/b, a'为 D4区域的 长, b'为 D4区域的宽; 根据公式 2和公式 3确定 XOY坐标系中 D2区域上的一点 (x, y) 到 Χ'ΟΎ' 坐 标系中 D4区域上的一点 (x', y') 的转换关系: x*=(x-x0 )*Μ 公式 2; y'=(y-yo )*N 公式 3; 根据转换关系确定 D4区域; 获取遮挡区域下被遮挡的字符, 将字符在 D4区域内显示, 并将 D4区域的字体大 小设置为原字符大小的 T倍, 其中, T=min (M, N)。 字符处理模块 94, 设置为检测用户在预定放大区域的接触, 并根据检测到的接触 对遮挡区域的字符进行定位和 /或选择。 具体地, 上述字符处理模块 94具体包括: 检测判断模块, 设置为当检测到用户接触预定放大区域时, 记录用户接触的预定 放大区域起始位置, 并判断用户是否继续在预定放大区域进行滑动接触, 如果判断为 否, 调用字符定位模块; 如果判断为是, 调用字符选择模块; 字符定位模块, 设置为根据预定放大区域起始位置计算遮挡区域中相应的遮挡区 域起始位置, 并将光标移动到该遮挡区域起始位置所对应的字符前; 具体地, 字符定位模块具体设置为: 获取用户接触的 D4区域起始位置的中心坐标 ( ', y。'), 根据公式 4和公式 5计 算出遮挡区域中与中心坐标 ( ', yc') 对应的原坐标 ( , yc): xc = xc'/M+xo 公式 4; yc = yc' N+yo 公式 5; 将光标设置于距离原坐标 ( , yc) 最近的两个字符间隙中;
字符选择模块, 设置为记录用户接触的预定放大区域终止位置, 根据预定放大区 域起始位置和预定放大区域终止位置计算遮挡区域中相应的遮挡区域起始位置和遮挡 区域终止位置, 并将该遮挡区域起始位置到该遮挡区域终止位置之间所对应的字符选 中。 字符选择模块具体设置为: 获取用户接触的 D4区域起始位置的中心坐标 (xel', yel'), 根据公式 6和公式 Ί 计算出遮挡区域中与中心坐标 (xcl', yd* ) 对应的原坐标 (xcl, yci ) ;
Xci= Xci'/M+xo 公式 6; yci= yci'/N+yo 公式 7; 将起始光标设置于距离原坐标 (xcl, yci ) 最近的两个字符间隙中; 在检测到用户在 D4区域滑动终止后,获取用户接触的 D4区域终止位置的中心坐 标 ( 2', yC2* ) , 根据公式 8和公式 9计算出遮挡区域中与中心坐标 ( 2', yc2' 对应 的原坐标 (xc2, yc2 ) ;
Xc2= Xc2'/M+X0 公式 8; yc2= yc2'/N+yo 公式 9; 将终止光标设置于距离原坐标 ( 2, yc2 ) 最近的两个字符间隙中; 在 XOY坐标系中选中从起始光标到终止光标之间的字符。 本发明实施例的上述处理的详细内容可以参照方法实施例相应的描述进行理解, 在此不再赘述。 综上所述, 借助于本发明实施例的技术方案, 通过将遮挡区域下被遮挡的字符在 触摸屏上的预定放大区域进行独立显示和放大, 并通过检测用户在预定放大区域的操 作, 对字符进行定位或选择, 解决了相关技术中在进行终端的触屏输入时易发生字符 定位和字符选择不准确的问题, 能够提高用户在网页浏览, 网页内容选择、 文本文件 内容选择方面选择字符和定位字符的成功率, 突破了智能终端定位和选择文本准确性 的瓶颈。 此外, 本发明实施例的技术方案无需专门增加硬件成本, 均可以借用产品自 身的模块通过简单的软件修改实现。
在此提供的算法和显示不与任何特定计算机、 虚拟***或者其它设备固有相关。 各种通用***也可以与基于在此的示教一起使用。 根据上面的描述, 构造这类***所 要求的结构是显而易见的。 此外, 本发明也不针对任何特定编程语言。 应当明白, 可 以利用各种编程语言实现在此描述的本发明的内容, 并且上面对特定语言所做的描述 是为了披露本发明的最佳实施方式。 在此处所提供的说明书中, 说明了大量具体细节。 然而, 能够理解, 本发明的实 施例可以在没有这些具体细节的情况下实践。 在一些实例中, 并未详细示出公知的方 法、 结构和技术, 以便不模糊对本说明书的理解。 类似地, 应当理解, 为了精简本公开并帮助理解各个发明方面中的一个或多个, 在上面对本发明的示例性实施例的描述中, 本发明的各个特征有时被一起分组到单个 实施例、 图、 或者对其的描述中。 然而, 并不应将该公开的方法解释成反映如下意图: 即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。 更确 切地说, 如下面的权利要求书所反映的那样, 发明方面在于少于前面公开的单个实施 例的所有特征。 因此, 遵循具体实施方式的权利要求书由此明确地并入该具体实施方 式, 其中每个权利要求本身都作为本发明的单独实施例。 本领域那些技术人员可以理解, 可以对实施例中的设备中的模块进行自适应性地 改变并且把它们设置在与该实施例不同的一个或多个设备中。 可以把实施例中的模块 或单元或组件组合成一个模块或单元或组件, 以及此外可以把它们分成多个子模块或 子单元或子组件。 除了这样的特征和 /或过程或者单元中的至少一些是相互排斥之外, 可以采用任何组合对本说明书 (包括伴随的权利要求、 摘要和附图) 中公开的所有特 征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述, 本说明书 (包括伴随的权利要求、 摘要和附图) 中公开的每个特征可以由提供相同、 等同或相似目的的替代特征来代替。 此外, 本领域的技术人员能够理解, 尽管在此所述的一些实施例包括其它实施例 中所包括的某些特征而不是其它特征, 但是不同实施例的特征的组合意味着处于本发 明的范围之内并且形成不同的实施例。 例如, 在下面的权利要求书中, 所要求保护的 实施例的任意之一都可以以任意的组合方式来使用。 本发明的各个部件实施例可以以硬件实现, 或者以在一个或者多个处理器上运行 的软件模块实现, 或者以它们的组合实现。 本领域的技术人员应当理解, 可以在实践 中使用微处理器或者数字信号处理器 (DSP) 来实现根据本发明实施例触摸屏字符显 示装置中的一些或者全部部件的一些或者全部功能。 本发明还可以实现为用于执行这
里所描述的方法的一部分或者全部的设备或者装置程序 (例如, 计算机程序和计算机 程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上, 或者可以具有一 个或者多个信号的形式。 这样的信号可以从因特网网站上下载得到, 或者在载体信号 上提供, 或者以任何其他形式提供。 应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制, 并且本领 域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。 在权利要求 中, 不应将位于括号之间的任何参考符号构造成对权利要求的限制。 单词"包含"不排 除存在未列在权利要求中的元件或步骤。 位于元件之前的单词 "一"或"一个"不排除存 在多个这样的元件。 本发明可以借助于包括有若干不同元件的硬件以及借助于适当编 程的计算机来实现。 在列举了若干装置的单元权利要求中, 这些装置中的若干个可以 是通过同一个硬件项来具体体现。 单词第一、 第二、 以及第三等的使用不表示任何顺 序。 可将这些单词解释为名称。
Claims
权 利 要 求 书 、 一种触摸屏字符显示方法, 包括:
当检测到用户接触触摸屏上显示有字符的位置超过预定时间阈值时, 确定 所述用户接触所述触摸屏的遮挡区域;
获取所述遮挡区域下被遮挡的字符, 并将所述字符在所述触摸屏上除所述 遮挡区域之外的预定放大区域进行独立显示和放大;
检测所述用户在所述预定放大区域的接触, 并根据检测到的所述接触对所 述遮挡区域的字符进行定位和 /或选择。 、 如权利要求 1所述的方法, 其中, 检测所述用户在所述预定放大区域的接触, 并根据检测到的所述接触对所述遮挡区域的字符进行定位和选择具体包括: 当检测到所述用户接触所述预定放大区域时, 记录所述用户接触的预定放 大区域起始位置,并判断所述用户是否继续在所述预定放大区域进行滑动接触, 如果判断为否, 根据所述预定放大区域起始位置计算所述遮挡区域中相应的遮 挡区域起始位置, 并将光标移动到该遮挡区域起始位置所对应的字符前; 如果 判断为是, 记录所述用户接触的预定放大区域终止位置, 根据所述预定放大区 域起始位置和所述预定放大区域终止位置计算所述遮挡区域中相应的遮挡区域 起始位置和遮挡区域终止位置, 并将该遮挡区域起始位置到该遮挡区域终止位 置之间所对应的字符选中。 、 如权利要求 1所述的方法, 其中, 当检测到用户接触所述触摸屏上没有显示字 符的位置超过预定时间阈值时; 或者, 当检测到用户接触所述触摸屏没有超过 所述预定时间阈值时, 不响应所述用户的操作。 、 如权利要求 1所述的方法, 其中, 确定所述用户接触所述触摸屏的遮挡区域具 体包括:
根据公式 1确定所述遮挡区域的半径
Rr=Rt+dr 公式 1; 其中, Rt为触摸屏检测到的用户实际触摸按压区域的最大半径, 4为预先 设置的预估值;
根据所述半径 确定所述遮挡区域。
如权利要求 1 所述的方法, 其中, 整个触摸屏显示区域所在的坐标系为 XOY 坐标系, 所述预定放大区域所在的坐标系为 ΧΌΎ'坐标系, 其中, 0'点在所述 ΧΟΥ坐标系的坐标值为 (XQ, Yo), 在所述 XOY坐标系内, 整个触摸屏显示 区域为 D1区域, 所述 D1区域内的所述遮挡区域为 D3区域, 以所述 D3区域 为内切圆的矩形为 D2区域, 在所述 ΧΌΎ'坐标系内, 所述预定放大区域为 D4 区域;
获取所述遮挡区域下被遮挡的字符, 并将所述字符在所述触摸屏上除所述 遮挡区域之外的预定放大区域进行独立显示和放大具体包括:
检测所述 D3区域, 根据所述 D3区域确定所述 D2区域, 并获取所述 D2 区域的长 a和宽 b;
获取预先设置的屏幕扩展比率 M和 N, 其中, M= a'/a, N= b'/b, a'为所述 D4区域的长, b'为所述 D4区域的宽;
根据公式 2和公式 3确定所述 XOY坐标系中所述 D2区域上的一点(x, y) 到所述 Χ'ΟΎ' 坐标系中所述 D4区域上的一点 (x', y') 的转换关系:
x*=(x-x0 )*Μ 公式 2; y -(y-yo )*N 公式 3; 根据所述转换关系确定所述 D4区域;
获取所述遮挡区域下被遮挡的字符, 将所述字符在所述 D4区域内显示, 并将所述 D4区域的字体大小设置为原字符大小的 T倍,其中, T=min (M, N)。 如权利要求 2所述的方法, 其中, 整个触摸屏显示区域所在的坐标系为 XOY 坐标系, 所述预定放大区域所在的坐标系为 ΧΌΎ'坐标系, 其中, 0'点在所述 ΧΟΥ坐标系的坐标值为 (XQ, Yo), 在所述 XOY坐标系内, 整个触摸屏显示 区域为 D1区域, 所述 D1区域内的所述遮挡区域为 D3区域, 以所述 D3区域 为内切圆的矩形为 D2区域, 在所述 ΧΌΎ'坐标系内, 所述预定放大区域为 D4 区域;
根据所述预定放大区域起始位置计算所述遮挡区域中相应的遮挡区域起始 位置, 并将光标移动到该遮挡区域起始位置所对应的字符前具体包括:
获取所述用户接触的 D4区域起始位置的中心坐标 ( ', y。'), 根据公式 4 和公式 5计算出所述遮挡区域中与所述中心坐标( ', yc')对应的原坐标( , yc):
xc = xc'/M+xo 公式 4; yc = yc'/N+y0 公式 5 ; 将光标设置于距离所述原坐标 (xc, yc) 最近的两个字符间隙中; 记录所述用户接触的预定放大区域终止位置, 根据所述预定放大区域起始 位置和所述预定放大区域终止位置计算所述遮挡区域中相应的遮挡区域起始位 置和遮挡区域终止位置, 并将该遮挡区域起始位置到该遮挡区域终止位置之间 所对应的字符选中具体包括:
获取所述用户接触的 D4区域起始位置的中心坐标 ( 1', ycl' ) , 根据公式 6和公式 7计算出所述遮挡区域中与所述中心坐标 (xcl',ycl' )对应的原坐标 (xcl, yci ) ;
Xci= Xci'/M+xo 公式 6; yci= yci'/N+yo 公式 7; 将起始光标设置于距离所述原坐标 (xcl, yci ) 最近的两个字符间隙中; 在检测到用户在所述 D4区域滑动终止后,获取所述用户接触的 D4区域终 止位置的中心坐标 ( 2', yc2'), 根据公式 8和公式 9计算出所述遮挡区域中与 所述中心坐标 (xc2', yc2' ) 对应的原坐标 (xc2, yc2 ) ;
Xc2= Xc2'/M+X0 公式 8; yC2= yC2'/N+y0 公式 9; 将终止光标设置于距离所述原坐标 ( 2, yc2 ) 最近的两个字符间隙中; 在所述 XOY坐标系中选中从所述起始光标到所述终止光标之间的字符。 、 一种触摸屏字符显示装置, 包括:
检测确定模块, 设置为当检测到用户接触触摸屏上显示有字符的位置超过 预定时间阈值时, 确定所述用户接触所述触摸屏的遮挡区域;
显示放大模块, 设置为获取所述遮挡区域下被遮挡的字符, 并将所述字符 在所述触摸屏上除所述遮挡区域之外的预定放大区域进行独立显示和放大; 字符处理模块, 设置为检测所述用户在所述预定放大区域的接触, 并根据 检测到的所述接触对所述遮挡区域的字符进行定位和 /或选择。 、 如权利要求 7所述的装置, 其中, 所述字符处理模块具体包括:
检测判断模块, 设置为当检测到所述用户接触所述预定放大区域时, 记录 所述用户接触的预定放大区域起始位置, 并判断所述用户是否继续在所述预定 放大区域进行滑动接触, 如果判断为否, 调用字符定位模块; 如果判断为是, 调用字符选择模块;
所述字符定位模块, 设置为根据所述预定放大区域起始位置计算所述遮挡 区域中相应的遮挡区域起始位置, 并将光标移动到该遮挡区域起始位置所对应 的字符前;
所述字符选择模块, 设置为记录所述用户接触的预定放大区域终止位置, 根据所述预定放大区域起始位置和所述预定放大区域终止位置计算所述遮挡区 域中相应的遮挡区域起始位置和遮挡区域终止位置, 并将该遮挡区域起始位置 到该遮挡区域终止位置之间所对应的字符选中。 、 如权利要求 7所述的装置, 其中, 所述检测确定模块设置为:
根据公式 1确定所述遮挡区域的半径
Rr=Rt+dr 公式 1; 其中, Rt为触摸屏检测到的用户实际触摸按压区域的最大半径, 4为预先 设置的预估值;
根据所述半径 R确定所述遮挡区域。 0、 如权利要求 8所述的装置, 其中, 整个触摸屏显示区域所在的坐标系为 XOY 坐标系, 所述预定放大区域所在的坐标系为 ΧΌΎ'坐标系, 其中, 0'点在所述 ΧΟΥ坐标系的坐标值为 (XQ, Yo), 在所述 XOY坐标系内, 整个触摸屏显示 区域为 D1区域, 所述 D1区域内的所述遮挡区域为 D3区域, 以所述 D3区域 为内切圆的矩形为 D2区域, 在所述 ΧΌΎ'坐标系内, 所述预定放大区域为 D4 区域;
所述显示放大模块设置为- 检测所述 D3区域, 根据所述 D3区域确定所述 D2区域, 并获取所述 D2 区域的长 a和宽 b;
获取预先设置的屏幕扩展比率 M和 N, 其中, M= a'/a, N= b'/b, a'为所述 D4区域的长, b'为所述 D4区域的宽;
根据公式 2和公式 3确定所述 XOY坐标系中所述 D2区域上的一点(x, y) 到所述 Χ'ΟΎ' 坐标系中所述 D4区域上的一点 (x', y') 的转换关系:
x*=(x-x0 )*M 公式 2; y -(y-yo )*N 公式 3; 根据所述转换关系确定所述 D4区域;
获取所述遮挡区域下被遮挡的字符, 将所述字符在所述 D4区域内显示, 并将所述 D4区域的字体大小设置为原字符大小的 T倍,其中, T=min(M, N); 所述字符定位模块设置为:
获取所述用户接触的 D4区域起始位置的中心坐标 ( ', y。'), 根据公式 4 和公式 5计算出所述遮挡区域中与所述中心坐标( ', yc')对应的原坐标( , yc):
xc = xc'/M+xo 公式 4; yc = yc'/N+y0 公式 5; 将光标设置于距离所述原坐标 ( , yc) 最近的两个字符间隙中; 所述字符选择模块设置为:
获取所述用户接触的 D4区域起始位置的中心坐标 ( 1', ycl'), 根据公式 6和公式 7计算出所述遮挡区域中与所述中心坐标 (xcl',ycl')对应的原坐标 (xcl, yci);
Xci= Xci'/M+xo 公式 6; yci= yci'/N+yo 公式 7; 将起始光标设置于距离所述原坐标 (xcl, yci) 最近的两个字符间隙中; 在检测到用户在所述 D4区域滑动终止后,获取所述用户接触的 D4区域终 止位置的中心坐标 ( 2', yc2'), 根据公式 8和公式 9计算出所述遮挡区域中与 所述中心坐标 (xc2', yc2') 对应的原坐标 (xc2, yc2);
Xc2= Xc2'/M+X0 公式 8; yc2= yc2*/N+y0 公式 9; 将终止光标设置于距离所述原坐标 ( 2, yc2) 最近的两个字符间隙中; 在所述 XOY坐标系中选中从所述起始光标到所述终止光标之间的字符。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US14/422,337 US9588620B2 (en) | 2012-08-30 | 2013-07-22 | Method and device for displaying character on touchscreen |
EP13796634.7A EP2905689B1 (en) | 2012-08-30 | 2013-07-22 | Method and apparatus for displaying character on touchscreen |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210312942.4 | 2012-08-30 | ||
CN201210312942.4A CN103631489B (zh) | 2012-08-30 | 2012-08-30 | 触摸屏字符显示方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013178156A1 true WO2013178156A1 (zh) | 2013-12-05 |
Family
ID=49672470
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/079818 WO2013178156A1 (zh) | 2012-08-30 | 2013-07-22 | 触摸屏字符显示方法及装置 |
Country Status (4)
Country | Link |
---|---|
US (1) | US9588620B2 (zh) |
EP (1) | EP2905689B1 (zh) |
CN (2) | CN106843692B (zh) |
WO (1) | WO2013178156A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018501555A (ja) * | 2014-11-18 | 2018-01-18 | シャープ株式会社 | オブジェクトを操作する方法および電子機器 |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106843692B (zh) * | 2012-08-30 | 2021-05-18 | 中兴通讯股份有限公司 | 触摸屏字符显示方法及装置 |
CN105446464B (zh) * | 2014-07-29 | 2019-11-26 | 联想(北京)有限公司 | 一种信息处理方法及电子设备 |
CN105874411B (zh) * | 2014-12-03 | 2019-09-20 | 华为技术有限公司 | 一种处理操作方法及终端 |
EP3040839B1 (en) * | 2014-12-31 | 2020-08-12 | Dassault Systèmes | Selection of a graphical element |
US10372317B1 (en) * | 2015-06-12 | 2019-08-06 | Google Llc | Method for highly accurate selection of items on an axis with a quadrilateral control surface |
WO2017063141A1 (en) * | 2015-10-13 | 2017-04-20 | Motorola Mobility Llc | Setting cursor position in text on display device |
CN105739781A (zh) * | 2016-01-29 | 2016-07-06 | 深圳天珑无线科技有限公司 | 通过压力触控技术快速精准定位文字光标的方法及*** |
CN107515717B (zh) * | 2017-09-05 | 2021-07-09 | 三星电子(中国)研发中心 | 一种信息的交互方法、***及装置 |
US10430076B2 (en) | 2017-12-18 | 2019-10-01 | Motorola Solutions, Inc. | Device and method for text entry using two axes at a display device |
CN108512997B (zh) * | 2018-03-02 | 2020-01-14 | Oppo广东移动通信有限公司 | 显示方法、装置、移动终端以及存储介质 |
CN108536407B (zh) * | 2018-03-02 | 2019-09-10 | Oppo广东移动通信有限公司 | 文本显示方法、装置以及移动终端 |
CN108572766A (zh) * | 2018-04-24 | 2018-09-25 | 京东方科技集团股份有限公司 | 一种触控显示装置及触控检测方法 |
CN108874260A (zh) * | 2018-05-30 | 2018-11-23 | 维沃移动通信有限公司 | 一种文本处理方法及终端设备 |
CN111435442B (zh) * | 2019-01-15 | 2022-02-22 | 北京字节跳动网络技术有限公司 | 文字选取方法、装置、点读设备、电子设备及存储介质 |
CN110568981A (zh) * | 2019-09-12 | 2019-12-13 | 北京安云世纪科技有限公司 | 一种文字操作方法及装置 |
CN112462983A (zh) * | 2020-12-17 | 2021-03-09 | 中国农业银行股份有限公司 | 一种无接触的输入设备和确定字符输入值的方法 |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101299177A (zh) * | 2007-04-30 | 2008-11-05 | 三星电子株式会社 | 字符输入设备和方法 |
CN102073454A (zh) * | 2011-01-13 | 2011-05-25 | 宇龙计算机通信科技(深圳)有限公司 | 一种移动终端及触摸屏的输入控制方法 |
Family Cites Families (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7614008B2 (en) * | 2004-07-30 | 2009-11-03 | Apple Inc. | Operation of a computer with touch screen interface |
FI115254B (fi) * | 2001-12-20 | 2005-03-31 | Nokia Corp | Kosketusnäytön käyttäminen osoitinvälineellä |
WO2004051392A2 (en) * | 2002-11-29 | 2004-06-17 | Koninklijke Philips Electronics N.V. | User interface with displaced representation of touch area |
US7802202B2 (en) * | 2005-03-17 | 2010-09-21 | Microsoft Corporation | Computer interaction based upon a currently active input device |
KR100813062B1 (ko) * | 2006-05-03 | 2008-03-14 | 엘지전자 주식회사 | 휴대용 단말기 및 이를 이용한 텍스트 표시 방법 |
US7856605B2 (en) * | 2006-10-26 | 2010-12-21 | Apple Inc. | Method, system, and graphical user interface for positioning an insertion marker in a touch screen display |
EP1988444A3 (en) * | 2007-04-30 | 2016-03-02 | Samsung Electronics Co., Ltd. | Character input apparatus and method |
US9274698B2 (en) * | 2007-10-26 | 2016-03-01 | Blackberry Limited | Electronic device and method of controlling same |
EP2053497A1 (en) * | 2007-10-26 | 2009-04-29 | Research In Motion Limited | Text selection using a touch sensitive screen of a handheld mobile communication device |
JP2010102662A (ja) | 2008-10-27 | 2010-05-06 | Sharp Corp | 表示装置、携帯端末 |
US8661362B2 (en) * | 2009-03-16 | 2014-02-25 | Apple Inc. | Methods and graphical user interfaces for editing on a multifunction device with a touch screen display |
JP5158014B2 (ja) * | 2009-05-21 | 2013-03-06 | ソニー株式会社 | 表示制御装置、表示制御方法およびコンピュータプログラム |
CN102243561B (zh) * | 2010-05-10 | 2016-10-19 | 腾讯科技(深圳)有限公司 | 输入信息的修正方法和装置 |
KR20130097690A (ko) * | 2012-02-24 | 2013-09-03 | 김기주 | 전자장치에서 문자 입력할 때 간단한 오타 수정 방법 등 |
CN106843692B (zh) * | 2012-08-30 | 2021-05-18 | 中兴通讯股份有限公司 | 触摸屏字符显示方法及装置 |
-
2012
- 2012-08-30 CN CN201710058744.2A patent/CN106843692B/zh active Active
- 2012-08-30 CN CN201210312942.4A patent/CN103631489B/zh active Active
-
2013
- 2013-07-22 EP EP13796634.7A patent/EP2905689B1/en active Active
- 2013-07-22 WO PCT/CN2013/079818 patent/WO2013178156A1/zh active Application Filing
- 2013-07-22 US US14/422,337 patent/US9588620B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101299177A (zh) * | 2007-04-30 | 2008-11-05 | 三星电子株式会社 | 字符输入设备和方法 |
CN102073454A (zh) * | 2011-01-13 | 2011-05-25 | 宇龙计算机通信科技(深圳)有限公司 | 一种移动终端及触摸屏的输入控制方法 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018501555A (ja) * | 2014-11-18 | 2018-01-18 | シャープ株式会社 | オブジェクトを操作する方法および電子機器 |
Also Published As
Publication number | Publication date |
---|---|
US9588620B2 (en) | 2017-03-07 |
CN106843692A (zh) | 2017-06-13 |
EP2905689A4 (en) | 2015-08-12 |
EP2905689A1 (en) | 2015-08-12 |
EP2905689B1 (en) | 2021-05-12 |
US20150193077A1 (en) | 2015-07-09 |
CN103631489B (zh) | 2017-02-08 |
CN106843692B (zh) | 2021-05-18 |
CN103631489A (zh) | 2014-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2013178156A1 (zh) | 触摸屏字符显示方法及装置 | |
WO2013174329A2 (zh) | 文本处理方法和装置 | |
US8633909B2 (en) | Information processing apparatus, input operation determination method, and input operation determination program | |
EP2825944B1 (en) | Touch screen hover input handling | |
CN103777842B (zh) | 触摸型终端的图标移动方法及触摸型终端 | |
CN109976655B (zh) | 长截屏方法、装置、终端及存储介质 | |
KR101019128B1 (ko) | 터치 패널 입력 장치, 방법 및 이를 이용한 모바일 기기 | |
US9569099B2 (en) | Method and apparatus for displaying keypad in terminal having touch screen | |
US20160034093A1 (en) | Method for display control and electronic device | |
WO2015139408A1 (zh) | 一种管理应用程序图标的方法及终端 | |
US10055118B2 (en) | Information processing method and electronic device | |
WO2013189224A1 (zh) | 光标显示位置的确定方法及装置 | |
WO2019119799A1 (zh) | 一种显示应用图标的方法及终端设备 | |
US20150286283A1 (en) | Method, system, mobile terminal, and storage medium for processing sliding event | |
WO2017032006A1 (zh) | 一种信息的显示方法及装置 | |
WO2014044133A1 (zh) | 应用界面及控制应用界面操作的方法和装置 | |
WO2017032114A1 (zh) | 一种浏览网页的翻页控制方法及用户终端 | |
JP2014078823A (ja) | 携帯電子機器、その制御方法及びプログラム | |
WO2015131590A1 (zh) | 一种控制黑屏手势处理的方法及终端 | |
WO2015169010A1 (zh) | 一种基于触摸屏的元素删除方法及装置 | |
WO2017114194A1 (zh) | 一种移动终端的操作栏排布方法和装置 | |
CN103870179A (zh) | 便携终端中触摸屏控制方法及装置 | |
EP2899623A2 (en) | Information processing apparatus, information processing method, and program | |
US10241671B2 (en) | Gesture response method and device | |
KR101961907B1 (ko) | 사용자 터치 유지 시간에 기초한 이동단말기의 컨텐츠 제공 방법 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13796634 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2013796634 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 14422337 Country of ref document: US |
|
NENP | Non-entry into the national phase |
Ref country code: DE |