WO2015027505A1 - 一种文本的处理方法及触屏设备 - Google Patents

一种文本的处理方法及触屏设备 Download PDF

Info

Publication number
WO2015027505A1
WO2015027505A1 PCT/CN2013/082754 CN2013082754W WO2015027505A1 WO 2015027505 A1 WO2015027505 A1 WO 2015027505A1 CN 2013082754 W CN2013082754 W CN 2013082754W WO 2015027505 A1 WO2015027505 A1 WO 2015027505A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
preset range
display
character
touch screen
Prior art date
Application number
PCT/CN2013/082754
Other languages
English (en)
French (fr)
Inventor
刘廷基
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201380001354.1A priority Critical patent/CN103718149B/zh
Priority to US14/902,226 priority patent/US20160162162A1/en
Priority to PCT/CN2013/082754 priority patent/WO2015027505A1/zh
Priority to EP13892571.4A priority patent/EP3002664B1/en
Publication of WO2015027505A1 publication Critical patent/WO2015027505A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04845Interaction 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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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/04883Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04805Virtual magnifying lens, i.e. window or frame movable on top of displayed information to enlarge it for better reading or selection

Definitions

  • the present invention relates to the field of touch screen devices, and in particular, to a text processing method and a touch screen device.
  • Touch screen devices (such as cell phones with touch screens, tablets, auto-rejectors, etc.) operate with the X-Y electrode grid overlaid on the touch screen device, using the voltage above.
  • the capacitance changes and can be measured.
  • By comparing the measured values of all the electrodes it is possible to accurately locate the position of the finger, that is, to determine the touch position and the like.
  • mobile terminals such as user mobile phones
  • users are more and more likely to perform operations such as processing text, editing short messages, and searching for information through portable terminals such as mobile phones, but portable terminals such as mobile phones are portable.
  • the present invention provides a text processing method and a touch screen device, which are used to solve the technical problem in the prior art that the user is inconvenient to view and select text due to dense text layout. It brings convenience and convenience for users to view and select, improve user operation efficiency and enhance user experience.
  • an embodiment of the present invention provides a method for processing a text, where the method includes: displaying a text; acquiring an input of a user; and displaying, according to the input, a text in a first preset range; and simultaneously reducing a display Two preset ranges of text to maintain the display of the text in an initial state; wherein, the maintaining the display of the text in an initial state means that the characters in the text are kept displayed on the enlarged display that is not performed
  • the text in the first preset range simultaneously reduces the position of the line and/or column displayed by the character in the text before displaying the text in the second preset range; the zooming in the text in the first preset range
  • the method includes: magnifying and displaying a character and/or a character spacing in the text in the first preset range; and displaying the reduced text in the second preset range comprises: reducing the character in the text in the second preset range and/or Or character spacing.
  • the acquiring the user's input comprises: acquiring a user's touch location; the first preset range is at least one character or at least one adjacent to the touch location Pixel of pixels
  • the second preset range is a range of at least one character or at least one pixel that is adjacent to the first preset range of the first preset range.
  • the method further includes: acquiring a movement of the touch position; determining a position of the first preset range according to the movement of the touch position, and displaying the first pre-magnification Setting the text within the range; meanwhile, determining the position of the second preset range according to the movement of the touch position, and reducing the display of the text within the second preset range to keep the display of the text in an initial state.
  • the method further includes: displaying a character or a graphic adjacent to the touch position; acquiring a movement of the touch position; determining the character or the according to the movement of the touch position a display position of the graphic; displaying the character or the graphic according to the display position.
  • a fourth possible implementation manner of the first aspect if the character or the graphic is in the first preset range, the character is enlarged or The graphic.
  • the acquiring the user's input includes: when the specific character is obtained, the displaying the text in the first preset range by zooming in comprises: enlarging and displaying the specific character ;
  • the reducing the display of the text in the second preset range comprises: reducing the text in a range of at least one character or at least one pixel adjacent to the specific character.
  • the obtaining the specific character specifically includes: acquiring the specific character according to a character input by the user; or, according to An instruction entered by the user to obtain the specific character.
  • the method further includes: displaying at least a portion of the text according to an initial size.
  • a touch screen device comprising: a display unit, configured to display a text
  • the obtaining unit is configured to obtain the input of the user; the display unit is further configured to: according to the input of the user acquired by the acquiring unit, enlarge and display the text in the first preset range; Presetting the text within the range to keep the display of the text in an initial state; wherein, the maintaining the display of the text in the initial state means that the characters in the text are kept displayed on the enlarged display
  • Setting the text in the range to simultaneously reduce the position of the line and/or column displayed by the character in the text before displaying the text in the second preset range; the magnifying and displaying the text in the first preset range includes: Displaying characters and/or character spacing in the text within the first preset range; the reducing the display of the text in the second preset range comprises: reducing the display of characters and/or character spacing in the text within the second preset range .
  • the acquiring unit is specifically configured to acquire a touch location of the user, and the display unit is configured to be enlarged by using the touch location acquired according to the acquiring unit. Touching at least one character of the position or text within a range of at least one pixel, and simultaneously reducing display of text within a range of at least one character or at least one pixel other than the first preset range of the first preset range .
  • the acquiring unit is further configured to acquire a movement of the touch location, according to the touch location Obtaining a position of the first preset range and/or acquiring a position of the second preset range according to the movement of the touch position; the display unit is further configured to be used according to the acquiring unit The position of the first preset range and the position of the second preset range are enlarged to display the text in the first preset range, and at the same time, the text in the second preset range is displayed in a reduced size.
  • the display unit is further configured to be adjacent to the touch Positioning a character or a graphic; the acquiring unit is further configured to acquire the movement of the touch position, and obtain the display position of the character or the graphic according to the movement of the touch position; And displaying the character or the graphic according to the display position acquired by the acquiring unit.
  • the display unit is further configured to: if the character or the graphic is in the first Within the range, the character or the graphic is displayed in an enlarged manner.
  • the acquiring unit is specifically configured to acquire a specific character
  • the display unit further uses the specific character acquired according to the acquiring unit to enlarge the display
  • the specific character is described, and at the same time, the text in the range of at least one character or at least one pixel adjacent to the specific character is displayed.
  • the obtaining unit is specifically configured to: acquire the specific character according to a character input by the user; or acquire the specific character according to an instruction input by the user.
  • the display unit is further configured to: At least a portion of the text is displayed in an initial size.
  • a touch screen device in a third aspect, includes: a touch screen for displaying text; the touch screen is further configured to acquire input of a user; and the processor is configured to acquire according to the touch screen
  • the user's input enlarges the text in the first preset range; at the same time, reduces the text in the second preset range to keep the display of the text in an initial state; the touch screen is further used according to the processor Processing, displaying the text in the first preset range, and simultaneously displaying the text in the second preset range; wherein, wherein the displaying of the text is maintained in an initial state means that the characters in the text are Maintaining the position of the line and/or column displayed by the character in the text before the text in the first preset range is not executed, while reducing the text in the second preset range;
  • the text in a preset range includes: enlarging characters and/or character spacing in the text in the first preset range; and reducing the text in the second preset range includes: reducing The character and/or
  • the touch screen is specifically configured to acquire a touch position of the user, and the processor is configured to enlarge the adjacent touch position by using the touch position acquired according to the touch screen.
  • the touch screen is specifically configured to acquire the movement of the touch location, and the processor is further configured to be used according to the The movement of the touch position acquired by the touch screen determines the position of the first preset range and the position of the second preset range; the touch screen is further configured to be used according to the processor The position of the preset range and the position of the second preset range are enlarged to display the text in the first preset range, and at the same time, the text in the second preset range is displayed in a reduced size.
  • the touch screen is specifically configured to be adjacent to the touch location.
  • the touch screen is specifically configured to acquire the movement of the touch position;
  • the processor is further configured to acquire the display position of the character or the graphic according to the movement of the touch position; And for displaying the character or the graphic according to the display position of the processor.
  • the processor is further configured to: if the character or the graphic is in the first preset range, Then, the character or the graphic is enlarged; the touch screen is specifically used to display the enlarged character or the graphic.
  • the touch screen is specifically configured to acquire a specific character
  • the processor further enlarges the specific character by using the specific character acquired according to the touch screen.
  • the text in the range of at least one character or at least one pixel adjacent to the specific character is reduced;
  • the touch screen displays the enlarged specific character according to the processing of the processor, and at the same time, the reduced display is adjacent to the At least one character of a particular character or text within a range of at least one pixel.
  • the processor is specifically configured to: according to the specific character acquired by the touch screen, specifically, according to a character input by a user, The specific character; or, according to an instruction input by the user, acquiring the specific character.
  • the display unit is further configured to: At least a portion of the text is displayed in an initial size.
  • the embodiment of the invention enlarges part of the text and reduces part of the text according to the user's needs, so that the user can view/edit the text without changing the original text arrangement, so that the user's viewing and editing operations on the text become convenient. Improve user operation efficiency and enhance user experience.
  • FIG. 1 is a flowchart of a possible implementation manner of a text processing method according to Embodiment 1 of the present invention
  • 2A-2C, 2E-2G are schematic diagrams showing the display of the text processing method in the first embodiment of the present invention
  • 2D is a schematic diagram showing the display before the text processing method is performed in Example 1 of the present invention.
  • FIG. 3 is a flowchart of another possible implementation manner of a text processing method according to Embodiment 1 of the present invention
  • FIG. 4 is a flowchart of another possible implementation manner of a text processing method according to Embodiment 1 of the present invention
  • FIG. 5 is a flowchart of another possible implementation manner of a text processing method according to Embodiment 1 of the present invention
  • FIG. 6 is a schematic structural diagram of a touch screen device according to Embodiment 2 of the present invention
  • FIG. 7 is a schematic structural diagram of a mobile phone according to Embodiment 3 of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention.
  • the embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • the terms used in the embodiments of the present invention are for the purpose of describing the specific embodiments, and are not intended to limit the invention.
  • the first preset range may also be referred to as a second preset range without departing from the scope of the embodiments of the present invention.
  • the second preset range may also be referred to as a first preset range.
  • the touch screen device includes but is not limited to a mobile phone and a personal digital assistant (Persona l D i g i ta l
  • Mobile communication devices such as Ass i stant (PDA), tablet computers, portable devices (for example, portable computers), and devices with touch screens such as Automated Detector (ATM), may also include
  • a device having a touch screen, such as a digital camera is not limited in the embodiment of the present invention.
  • the touch screen can be an input input interface that the user interacts with the device.
  • One or more graphics may be displayed within the user interface, and the user may also select the graphics by, for example, touching or touching one or more graphics with one or more fingers. In some embodiments, selecting one or more graphics occurs when the user disconnects from the one or more graphics, in some embodiments, selecting one or more graphics occurs when the user establishes the one or the When multiple graphics are in contact.
  • the contact may include a gesture, such as one or more taps, one or more swipes (left to right, right to left, up and/or down) and fingers that have been in contact with the touch screen. Scrolling (from right to left, left to right, up and/or down).
  • the unintentional contact with the graphic does not select the graphic. It should be understood that the contact of the present invention includes direct or indirect contact with the touch screen, and includes a floating operation on the touch screen, which is not limited in the embodiment of the present invention.
  • FIG. 1 is a flowchart of a text processing method according to Embodiment 1 of the present invention.
  • the text processing method may include:
  • Text is displayed on the touch screen device, which may be editable text or non-editable text.
  • This text is a type of document for a computer that is primarily used to record and/or store information such as text, characters, and so on. This document type is generally not used to record and/or store images, sounds, and formatted data. Common text extensions are .txt, .doc;., .docx, .wps, etc.
  • the touch screen device takes the user's input, which can be obtained through the touch screen or through other peripherals of the touch screen device.
  • the touch screen terminal acquires the user's input through the touch screen, the user can complete the input by, for example, touching or touching one or more graphics with one or more fingers, or inputting by sliding the track, or completing the input by gesture.
  • the obtaining the user input may include: acquiring a touch location of the user, acquiring an instruction, and acquiring a combination of any one or more of the special characters.
  • the instructions may include an edit instruction, a lookup instruction, or an inspection instruction.
  • the text in the first preset range is enlarged and displayed, and at the same time, the text in the second preset range is displayed in a reduced size to keep the display of the text in an initial state.
  • the maintaining the initial state of the text is to cause the characters in the text to remain displayed on the text in the first preset range without performing the enlarged display while reducing the display of the text in the second preset range Previously, the position of the line and/or column displayed by the characters in the text;
  • Displaying the text in the first preset range includes: displaying the characters and/or the character spacing in the text in the first preset range in an enlarged manner; and displaying the text in the second preset range in the reducing comprises: reducing the second preset by displaying The character and/or character spacing in the text within the range.
  • FIGS. 2A-2C are schematic diagrams showing an enlarged display of text in a first preset range and a reduced display of text in a second preset range.
  • 2D is a schematic diagram showing a display in which the text in the first preset range is enlarged and the text in the second preset range is displayed in a reduced size.
  • FIG. 2A is an enlarged view showing the pitch of characters in the text in the first preset range, and at the same time, reducing the character pitch in the text in the second preset range;
  • FIG. 2B is Enlarging and displaying the characters in the text in the first preset range, and simultaneously reducing the characters in the text in the second preset range; as shown in FIG. 2C, FIG.
  • 2C is an enlarged display of characters in the first preset range of text. And the spacing of characters, at the same time, zoom out to display the characters and character spacing in the text within the second preset range.
  • the initial state refers to the position of the row and/or column where the text displayed by the text is located in step sioi, as shown in FIG. 2D.
  • the partial text is reduced while the partial text is enlarged, so that the display of the text remains in an initial state, that is, the characters in the text are still displayed in the character of the text as shown in FIG. 2D. In the line shown.
  • the display of the text is kept in an initial state, and may further include causing characters in the text to still be displayed in a column displayed in its initial position, or in the text. The characters are still displayed in the rows and columns that are displayed in their original position.
  • the shape of the first predetermined range may be a rectangle or a circle, or may be any shape preset by the system or preset by the user.
  • the embodiment of the invention enlarges part of the text and reduces part of the text according to the user's needs, so that the user can view/edit the text without changing the original text arrangement, so that the user's viewing and editing operations on the text become convenient. Improve user operation efficiency and enhance user experience.
  • the first preset range is at least one character adjacent to the touch location or a range of at least one pixel.
  • the second preset range is a range of at least one character or at least one pixel that is adjacent to the first preset range of the first preset range.
  • the range of at least one character or at least one pixel adjacent to the touch position may be a range of at least one character or at least one pixel centered on the touch position as shown in FIGS.
  • the center may be The absolute center may not be an absolute center, that is, the range of the touch position or the upper and lower sides may be asymmetric; or, as shown in FIGS. 2F and 2G, at least one character or at least one of the sides of the touch position
  • the range of pixels especially when the touch position is at the edge of the touch screen, the range of the side of the touch position may be enlarged only); or may be at least one character or a range of at least one pixel of the position (ie, zooming in and touching the touch)
  • Location or pixel of the position :).
  • one character may further include a word, a phrase recognized by the intelligent recognition mechanism of the touch screen device.
  • the range of the at least one character or the at least one pixel may be set by the user, or may be preset by the program, which is not limited by the embodiment of the present invention.
  • the enlarged display range in the embodiment of the present invention may be a circle or a rectangle or the like.
  • the second preset range is a range of at least one character or at least one pixel that is adjacent to the first preset range of the first preset range, where the first preset is adjacent to the first preset range
  • the range outside the range may include a range other than the first preset range centered on the first preset range; or may include a range other than the first preset range on the side of the first preset range .
  • the characters and pixels in the second preset range may have the same or similar meanings as the characters and pixels in the first preset range.
  • the embodiment of the present invention adjusts the content of the enlarged area according to the touch position of the user, so that the enlarged area can be changed according to the user's needs, so that the operation of the user such as viewing and editing is facilitated, and the user operation efficiency is improved. Improve the user experience.
  • the method may further include: S1 04, displaying at least a part of the text according to an initial size.
  • the initial state after the characters in the partial text are enlarged and the characters in the partial text are reduced, while the display of the text is kept in the initial state, a part of the text may also be displayed according to the initial size, and the initial size may include the initial state.
  • the method when acquiring the user's input, including acquiring the touch position of the user, in step S102, after S1 03, the method further includes: S1 051, acquiring movement of the touch position; S1 052, determining, according to the movement of the touch position, a position of the first preset range, and displaying a text in the first preset range in an enlarged manner; and simultaneously determining, according to the movement of the touch position, the second The position of the preset range is reduced to display the text in the second preset range to keep the display of the text in an initial state.
  • the content of the enlarged displayed text is changed according to the movement of the user's touched position, and at the same time, the content of the reduced displayed text is changed.
  • the movement of the user's touch position may be the contact of the user's finger (or other auxiliary device) on the touch screen or the contactless movement, and the content of the enlarged display text is changed according to the user's movement, so that the user can change the enlarged display part of the text at any time as needed.
  • Content when the user's finger (or other auxiliary device) leaves the touch screen or leaves the touch screen for a certain distance, the enlarged display and the reduced display portion of the text may be canceled, the entire text may be displayed according to the initial size, and the display user may still remain displayed. The previous display status.
  • the content of the enlarged area is adjusted according to the touch position of the user, so that the enlarged area can be According to the needs of the user, the user's viewing and editing operations on the text are facilitated, the user operation efficiency is improved, and the user experience is improved.
  • the method when acquiring the user's input includes acquiring the touch position of the user in step S102, the method further includes: S1 061, adjacent to the touch, at the same time as or after S1 03 Position display character or graphic; S1 062, obtaining movement of the touch position; S1 063, determining a display position of the character or the graphic according to the movement of the touch position; S1 064, displaying according to the display position The character or the graphic.
  • Displaying a character or graphic adjacent to the touch position includes displaying a pre-set character acquisition picture at a proximity touch position, which may be preset by the system and also preset by the user.
  • the character can be a character associated with the textual content of the touch location, such as an explanation, an annotation, a phonetic symbol, and the like.
  • the picture may be a picture in a vector format, or a picture in a pixel format, which may be a cursor or a handle, or other related pictures, and the like.
  • the cursor may be displayed between characters according to the touch of the user, and the cursor may be displayed in a blinking manner or may not be displayed in a blinking manner.
  • the display position of the cursor also changes as the user touches the position, and the moved new touch position displays the cursor.
  • Embodiments of the present invention display the cursor. The user can be prompted for the specific location of the touch, which is convenient for the user to adjust the touch position.
  • the handle may be displayed at the touch position, and a cursor is displayed between characters adjacent to the display position of the handle; acquiring a movement of the touch position; and moving the handle and the cursor according to the moving Display position.
  • a handle can be displayed, which is used for user dragging, and the touch position is moved by dragging the handle.
  • the handle is being displayed, it is also possible to display a cursor between characters adjacent to the display position of the handle. The handle is moved according to the change of the user's touch position, and the display position of the cursor is moved at the same time.
  • a handle is added on the basis of displaying the cursor, so that the user avoids occlusion of the text when the user moves the touch position, and at the same time, by adding the handle, the user moves the touch position to be more image, and the feeling of dragging is generated.
  • steps S1 061 - S1 064 if the character or graphic is within the first preset range, the character or the graphic is displayed in an enlarged manner. For example, if the text of the part where the cursor is located is enlarged, that is, within the first preset range, the cursor is also displayed at the same time, so that the user can see the cursor more clearly, and the user can select the touch position to improve the user. Operational efficiency.
  • step S102 when obtaining the input of the user includes acquiring a specific character, in step S1 03, the displaying the text in the first preset range is enlarged, specifically: Displaying the specific character; the reducing the display of the text in the second preset range, specifically comprising: reducing and displaying at least one word adjacent to the specific character A character or a text within the range of at least one pixel.
  • the obtaining the specific character specifically includes: acquiring the specific character according to a character input by the user; or acquiring the specific character according to an instruction input by the user.
  • the specific character may be a character input by a user, or may be a character acquired according to an instruction input by the user.
  • the specific character may be a character that the user inputs to search for, a character that the user inputs that he or she wishes to display, or a character that is input by the user and needs to be edited.
  • the specific character may also be a user input check error instruction, and the device checks whether the text has an error according to the check error instruction, and enlarges and displays the specific character with the error according to the check result. While the specific character is enlarged, the text within a range of at least one character or at least one pixel adjacent to the specific character is displayed. In the embodiment of the present invention, by displaying a specific character in an enlarged manner to meet the diversified viewing and editing needs of the user, the user can conveniently find, check, and the like, thereby improving the user's use efficiency.
  • Example 2 by displaying a specific character in an enlarged manner to meet the diversified viewing and editing needs of the user, the user can conveniently find, check, and the like, thereby improving the user's use efficiency.
  • the touch screen device of the embodiment of the present invention includes:
  • a display unit 201 configured to display text
  • An obtaining unit 202 configured to acquire input of a user
  • the display unit 201 is further configured to: according to the input of the user acquired by the obtaining unit 202, enlarge and display text in a first preset range; and simultaneously display and display text in a second preset range to make the text The display remains in its initial state;
  • the maintaining the initial state of the text is to cause the characters in the text to remain displayed on the text in the first preset range without performing the enlarged display while reducing the display of the text in the second preset range Previously, the position of the line and/or column displayed by the character in the text;
  • the magnifying and displaying the text in the first preset range comprises: enlarging and displaying the characters and/or the character spacing in the text in the first preset range;
  • the reducing the display of the text within the second preset range comprises: reducing the display of characters and/or character spacing in the text within the second preset range.
  • the display unit 201 is further configured to display at least a part of the text according to an initial size.
  • the obtaining unit 202 is specifically configured to acquire a touch location of the user, and the display unit 201 is configured to enlarge, by using the touch location acquired by the acquiring unit 202, at least one character adjacent to the touch location or Text within a range of at least one pixel, and simultaneously reducing the display of the first preset range adjacent to the first preset range At least one character or text within a range of at least one pixel.
  • the display unit 201 is specifically used to implement the method of the steps S1 01, S1 03, S1 04 in the embodiment 1 of the present invention, and the obtaining unit 202 is specifically used to execute the method in the step S1 02 of the embodiment 1 of the present invention.
  • Example 1 which will not be described here.
  • the acquiring unit 202 is further configured to acquire the movement of the touch location, acquire the location of the first preset range according to the movement of the touch location, and/or obtain the mobile according to the touch location.
  • the display unit 201 is further configured to enlarge the display position according to the position of the first preset range and the position of the second preset range acquired by the acquiring unit.
  • the text in the first preset range is described, and at the same time, the text in the second preset range is displayed in a reduced size.
  • the display unit 201 is specifically used to implement the method of the step S1 052 in the first embodiment of the present invention.
  • the obtaining unit 202 is specifically used to perform the method of the step S1 051 in the first embodiment of the present invention. Narration.
  • the display unit 201 is further configured to display a character or a graphic in the proximity of the touch position according to the touch position acquired by the acquiring unit 202.
  • the acquiring unit 202 is further configured to acquire the touch.
  • the display unit 201 is further configured to display the character or the graphic according to the movement acquired by the acquiring unit 202.
  • the display unit 201 is specifically used to implement the method of the steps S1 061, S1 063 in the first embodiment of the present invention, and the obtaining unit 202 is specifically used to perform the method in the step S1 062 of the embodiment 1 of the present invention. I will not repeat them here.
  • the display unit 201 is further configured to display a handle at the touch position according to the touch position acquired by the acquiring unit 202, and display a cursor between characters adjacent to the display position of the handle;
  • the obtaining unit 202 is specifically configured to acquire the movement of the touch position.
  • the display unit 201 is further configured to display the handle and the cursor according to the movement acquired by the acquiring unit 202.
  • the display unit 201 is further configured to: when the character or the graphic is within the first preset range, display the character or the graphic in an enlarged manner.
  • the obtaining unit 202 is further configured to acquire a specific character.
  • the display unit 201 further displays the specific character in an enlarged manner according to the specific character acquired by the obtaining unit 202, and simultaneously reduces the specific character. Displaying text within a range of at least one character or at least one pixel of the particular character.
  • the display unit 201 is specifically used to implement the method of the steps S1 01 and S1 03 in the first embodiment of the present invention.
  • the obtaining unit 202 is specifically configured to perform the method of the step S1 02 in the first embodiment of the present invention. I will not repeat them here.
  • the embodiment of the invention can enlarge part of text and reduce part of text according to user needs by using a touch device. Therefore, while the user is convenient to view/edit the text, the original text arrangement is not changed, so that the user's viewing and editing operations on the text are facilitated, the user operation efficiency is improved, and the user experience is improved.
  • Example 3
  • a touch screen device for processing a user interface, comprising: a touch screen, a memory, a processor, a power management chip, an RF circuit, a peripheral interface, an audio circuit, a speaker, an I/O subsystem, wherein the touch screen is used
  • the display text is further used to obtain the input of the user;
  • the processor is configured to: enlarge the text in the first preset range according to the input of the user acquired by the touch screen; and simultaneously reduce the second preset range a text to keep the display of the text in an initial state;
  • the touch screen is further configured to display the text in the first preset range according to the processing of the processor, and simultaneously display the second preset range Text.
  • the embodiment of the present invention is specifically described by taking a mobile phone as an example. FIG.
  • FIG. 7 is a schematic structural diagram of a touch screen device provided in Embodiment 3.
  • the mobile phone shown in FIG. 7 includes: touch screen 41, memory 42, processor 43, power management chip 44, RF circuit 45, peripheral interface 46, audio circuit 47, speaker 48, I/O subsystem 49.
  • the mobile phone shown in FIG. 6 is only one example of a touch screen device, and the mobile phone may have more or fewer components than those shown in the figure, and two or more components may be combined. , or can have different component configurations.
  • the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the touch screen 41 is configured to display text, and is used to obtain input of a user, and is further configured to display text in the first preset range according to processing by the processor, and simultaneously display the second preset The text within the scope.
  • the touch screen 41 is used to perform the method described in Embodiment 1. For details, refer to the methods in S101, S102, S103, and S104 in Embodiment 1. For details, refer to the method in Embodiment 1, and details are not described herein again.
  • the touch screen 41 is an input interface and an output interface between the mobile phone and the user. In addition to the function of acquiring user touch information and control commands, the touch screen 41 also presents the visual output to the user.
  • the visual output may include graphics, text, icons, Video, etc.
  • the memory 42 can be used to store touch information.
  • the touch information includes: touch position information, touch pressure information, and the like.
  • Memory 42 may be accessed by processor 43, peripheral interface 46, etc., which may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other Volatile solid-state storage devices.
  • the processor 43 may be configured to: enlarge the text in the first preset range according to the input of the user acquired by the touch screen; and simultaneously reduce the text in the second preset range to keep the display of the text initial status.
  • the processor 43 is used to perform the method described in Embodiment 1. For details, see the method in S103 in Embodiment 1. For details, see the method in Embodiment 1. The method will not be described here.
  • the processor 43 is the control center of the handset 400, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 42, and recalling data stored in the memory 42.
  • the various functions and processing data of the mobile phone 400 are performed to perform overall monitoring of the mobile phone.
  • the processor 43 may include one or more processing units.
  • the processor 43 may integrate an application processor and a modem processor.
  • the application processor mainly processes an operating system, a user interface, and an application. Programs, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 43. It should be understood that the foregoing functions are only one of the functions that the processor 43 can perform, and the other functions are not limited in the embodiments of the present invention.
  • the power management chip 44 can be used to supply power and power management to the hardware connected to the processor 43, the I/O subsystem 49, and the peripheral interface 46.
  • the RF circuit 45 is mainly used for establishing communication between the mobile phone and the wireless network (ie, the network side), and realizing data acquisition and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, etc. Specifically, the RF circuit 45 acquires and transmits an RF signal, which is also referred to as an electromagnetic signal, and the RF circuit 45 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network and other devices Communicate.
  • an RF signal which is also referred to as an electromagnetic signal
  • the RF circuit 45 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network and other devices Communicate.
  • RF circuitry 45 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC chip Group, user identification module (Subscr i ber I dent i ty Modu le, SIM) and so on.
  • the peripheral interface 46 which can interface the input and output peripherals of the device to the processor 43 and the memory 42.
  • the audio circuit 47 is primarily operable to acquire audio data from the peripheral interface 46, convert the audio data to an electrical signal, and transmit the electrical signal to the speaker 48.
  • the speaker 48 can be used to restore the voice signal acquired by the mobile phone from the wireless network through the RF circuit 45 to sound and play the sound to the user.
  • the I/O subsystem 49 can control input and output peripherals on the device, and the I/O subsystem 49 can include a display controller 491 and one for controlling other input/control devices Or multiple input controllers 492.
  • one or more input controllers 492 acquire electrical signals from other input/control devices or transmit electrical signals to other input/control devices, and other input/control devices may include physical buttons (press buttons, rocker buttons, etc.) , dial, slide switch, joystick, click wheel.
  • the input controller 492 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
  • Display controller 491 in the I/O subsystem 49 An electric signal is acquired from the touch screen 41 or an electric signal is transmitted to the touch screen 41.
  • the touch screen 41 acquires the contact on the touch screen, and the display controller 491 converts the acquired contact into an interaction with the user interface object presented on the touch screen 41, that is, realizes human-computer interaction, and the user interface object presented on the touch screen 41 may be operated. Icons for the game, icons to the network, filtering modes, etc.
  • the device may also include a light mouse, which is a touch sensitive surface that does not present a visual output, or an extension of a touch sensitive surface formed by the touch screen.
  • Embodiment 3 of the present invention text as shown in FIG. 2D can be displayed on the touch screen 41, and the user's input is acquired.
  • the processor 43 enlarges the text in the first preset range according to the input of the user acquired by the touch screen; at the same time, reduces the text in the second preset range to keep the display of the text in an initial state.
  • the touch screen 41 can also display the text in the first preset range according to the processing of the processor, and simultaneously display the text in the second preset range, as shown in FIGS. 2A-2C and 2E-2G. Text.
  • the above structure can be used to perform the method in Embodiment 1. For details, refer to the method described in Embodiment 1, and details are not described herein again.
  • the embodiment of the invention can enlarge a part of text and reduce part of the text according to the user's needs, so that the user can view/edit the text without changing the original text arrangement, so that the user can view and edit the text.
  • the operation becomes convenient, the user operation efficiency is improved, and the user experience is improved.
  • the embodiments of the present invention can be implemented in hardware, firmware implementation, or a combination thereof.
  • the functions described above may be stored in a terminal readable medium or transmitted as one or more instructions or code on a terminal readable medium.
  • the terminal readable medium includes a terminal storage medium and a communication medium, and the optional communication medium includes any medium that facilitates the transfer of a terminal program from one location to another.
  • the storage medium can be any available medium that the terminal can access.
  • the terminal readable medium may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used to carry or store an instruction or data structure.
  • the desired program code and any other medium that can be accessed by the terminal may suitably be a terminal readable medium.
  • the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave
  • coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwave are included in the definition of the medium to which they belong.
  • a disc (disc) and a disc (di sc) include a compact disc (CD), a laser disc, a disc, a digital versatile disc (DVD), a floppy disk, and a Blu-ray disc, and an optional disc.
  • CD compact disc
  • DVD digital versatile disc
  • a floppy disk a floppy disk
  • Blu-ray disc a disc that can be included within the scope of the terminal readable medium.

Abstract

本发明实施例提供一种文本的处理方法,所述方法包括:显示文本;获取用户的输入;根据所述输入,放大显示第一预设范围内的文本;同时,缩小显示第二预设范围内的文本,以使文本的显示保持初始状态;其中,所述以使文本的显示保持初始状态是指,以使文本中的字符,保持显示在未执行所述放大显示第一预设范围内的文本同时缩小显示第二预设范围内的文本之前,所述文本中的字符所显示的行和/或列的位置。用以解决现有技术中由于文本排布密集,带来用户查看和选择文本不便于的技术问题。带来方便用户查看、选择,提高用户操作效率,提升用户体验的有益效果。

Description

一种文本的处理方法及触屏设备
技术领域
本发明涉及触屏设备领域, 尤其涉及一种文本的处理方法及触屏设备。
背景技术
触屏设备 (例如具有触摸屏的手机、 平板电脑、 自动拒员机等) 通过覆盖在触屏设备 上的 X-Y电极网格工作, 运用上面的电压。 当有手指靠近电极时, 电容会改变, 而且可以 被测量。通过比较所有电极的测量值,就可以准确定位手指的位置点,即确定触摸位置等。 目前, 随着用户手机等便携终端功能进一步增强, 用户在越来越多的情况下通过手机等便 携终端来完成处理文本, 编辑短息, 搜索信息等操作, 但是手机等便携终端由于便携性的 要求, 其触摸屏的大小受到很大的限制, 不能做的过大, 所以触屏设备上文本排布密集。 这样的情况就造成, 用户为了编辑或者查看文本, 通过手指将光标准确移动到想要的位置 是十分困难的。 发明内容 本技术方案提供一种文本的处理方法及触屏设备, 用以解决现有技术中由于文本排布 密集, 带来用户查看和选择文本不便于的技术问题。 带来方便用户查看、 选择, 提高用户 操作效率, 提升用户体验的有益效果。 第一方面, 本发明实施例提供一种文本的处理方法, 所述方法包括: 显示文本; 获取 用户的输入; 根据所述输入, 放大显示第一预设范围内的文本; 同时, 縮小显示第二预设 范围内的文本, 以使所述文本的显示保持初始状态; 其中, 所述以使文本的显示保持初始 状态是指, 以使文本中的字符, 保持显示在未执行所述放大显示第一预设范围内的文本同 时縮小显示第二预设范围内的文本之前, 所述文本中的字符所显示的行和 /或列的位置; 所 述放大显示第一预设范围内的文本包括:放大显示第一预设范围内的文本中的字符和 /或字 符间距; 所述縮小显示第二预设范围内的文本包括: 縮小显示第二预设范围内的文本中的 字符和 /或字符间距。
在第一方面的第一种可能的实现方式中, 当所述获取用户的输入包括: 获取用户的触 摸位置时; 所述第一预设范围是临近所述触摸位置的至少一个字符或者至少一个像素的范 围; 所述第二预设范围是临近所述第一预设范围的所述第一预设范围以外的至少一个字符 或者至少一个像素的范围。
结合第一方面的第一种可能的实现方式, 在第一方面的第二种可能的实现方式中, 在 所述根据所述输入, 放大显示第一预设范围内的文本, 同时, 縮小显示第二预设范围内的 文本之后, 所述方法还包括: 获取所述触摸位置的移动; 根据所述触摸位置的移动, 确定 所述第一预设范围的位置, 放大显示所述第一预设范围内的文本; 同时, 根据所述触摸位 置的移动, 确定所述第二预设范围的位置, 縮小显示所述第二预设范围内的文本, 以使文 本的显示保持初始状态。
结合第一方面的第一种可能的实现方式, 在第一方面的第三种可能的实现方式中, 在 所述根据所述输入, 放大显示第一预设范围内的文本, 同时, 縮小显示第二预设范围内的 文本之后, 所述方法还包括: 在临近所述触摸位置显示字符或者图形; 获取所述触摸位置 的移动; 根据所述触摸位置的移动, 确定所述字符或所述图形的显示位置; 根据所述显示 位置, 显示所述字符或者所述图形。
结合第一方面的第三种可能的实现方式, 在第一方面的第四种可能的实现方式中, 如 果所述字符或者图形在所述第一预设范围内, 则放大显示所述字符或者所述图形。
在第一方面的第五种可能的实现方式中, 当所述获取用户的输入包括: 获取特定字符 时, 所述放大显示第一预设范围内的文本, 具体包括: 放大显示所述特定字符;
所述縮小显示第二预设范围内的文本, 具体包括: 縮小显示临近所述特定字符的至少 一个字符或者至少一个像素的范围内的文本。
结合第一方面的第五种可能的实现方式, 在第一方面的第六种可能的实现方式中, 所 述获取特定字符具体包括: 根据用户输入的字符, 获取所述特定字符; 或者, 根据用户输 入的指令, 获取所述特定字符。
结合第一方面或者第一方面的第一种可能的实现方式或者第一方面的第二种可能的 实现方式或者第一方面的第三种可能的实现方式或者第一方面的第四种可能的实现方式或 者第一方面的第五种可能的实现方式或者第一方面的第六种可能的实现方式, 在第一方面 的第七种可能的实现方式中, 在所述根据所述输入, 放大显示第一预设范围内的文本, 同 时, 縮小显示第二预设范围内的文本, 以使文本的显示保持初始状态的同时, 所述方法还 包括: 按照初始大小显示至少一部分所述文本。
第二方面, 提供一种触屏装置, 其特征在于, 所述装置包括: 显示单元, 用于显示文 本; 获取单元, 用于获取用户的输入; 所述显示单元, 还用于根据所述获取单元获取的所 述用户的输入,放大显示第一预设范围内的文本; 同时,縮小显示第二预设范围内的文本, 以使文本的显示保持初始状态; 其中, 所述以使文本的显示保持初始状态是指, 以使文本 中的字符, 保持显示在未执行所述放大显示第一预设范围内的文本同时縮小显示第二预设 范围内的文本之前, 所述文本中的字符所显示的行和 /或列的位置; 所述放大显示第一预设 范围内的文本包括: 放大显示第一预设范围内的文本中的字符和 /或字符间距; 所述縮小显 示第二预设范围内的文本包括: 縮小显示第二预设范围内的文本中的字符和 /或字符间距。
在第二方面的第一种可能的实现方式中, 所述获取单元, 具体用于获取用户的触摸位 置; 所述显示单元, 具体用根据所述获取单元获取的所述触摸位置, 放大显示临近触摸位 置的至少一个字符或者至少一个像素的范围内的文本, 同时, 縮小显示临近所述第一预设 范围的所述第一预设范围以外的至少一个字符或者至少一个像素的范围内的文本。
结合第二方面的第一种可能的实现方式, 在第二方面的第二种可能的实现方式中, 所 述获取单元, 具体还用于获取所述触摸位置的移动, 根据所述触摸位置的移动获取所述第 一预设范围的位置和 /或根据所述触摸位置的移动获取所述第二预设范围的位置;所述显示 单元, 具体还用于根据所述获取单元获取的所述第一预设范围的位置和所述第二预设范围 的位置, 放大显示所述第一预设范围内的文本, 同时, 縮小显示所述第二预设范围内的文 本,。
结合第二方面的第一种可能的实现方式或者第二方面的第二种实现, 在第二方面的第 三种可能的实现方式中, 所述显示单元, 具体还用于在临近所述触摸位置显示字符或者图 形; 所述获取单元, 具体还用于获取所述触摸位置的移动, 根据所述触摸位置的移动获取 所述字符或所述图形的显示位置; 所述显示单元, 具体还用于根据所述获取单元获取的所 述显示位置, 显示所述字符或者所述图形。
结合第二方面的第三种可能的实现方式, 在第二方面的第四种可能的实现方式中, 所 述显示单元, 具体还用于如果所述字符或所述图形在所述第一预设范围内, 则放大显示所 述字符或所述图形。
在第二方面的第五种可能的实现方式中, 所述获取单元, 具体还用于获取特定字符; 所述显示单元,具体还用根据所述获取单元获取的所述特定字符,放大显示所述特定字符, 同时, 縮小显示临近所述特定字符的至少一个字符或者至少一个像素的范围内的文本。
结合第二方面的第五种可能的实现方式, 在第二方面的第六种可能的实现方式中,, 所述获取单元具体用于, 根据用户输入的字符, 获取所述特定字符; 或者, 根据用户输入 的指令, 获取所述特定字符。
结合第二方面或者第二方面的第一种可能的实现方式或者第二方面的第二种可能的 实现方式或者第二方面的第三种可能的实现方式或者第二方面的第四种可能的实现方式或 者第二方面的第五种可能的实现方式或者第二方面的第六种可能的实现方式, 在第二方面 的第七种可能的实现方式中, 所述显示单元, 还用于, 按照初始大小显示至少一部分所述 文本。
第三方面, 提供一种触屏设备, 所述触屏设备包括: 触摸屏, 用于显示文本; 所述触 摸屏,还用于获取用户的输入;所述处理器, 用于根据所述触摸屏获取的所述用户的输入, 放大第一预设范围内的文本; 同时, 縮小第二预设范围内的文本, 以使文本的显示保持初 始状态; 所述触摸屏, 还用于根据所述处理器的处理, 显示所述第一预设范围内的文本, 同时, 显示所述第二预设范围内的文本; 其中, 所述以使文本的显示保持初始状态是指, 以使文本中的字符, 保持显示在未执行所述放大第一预设范围内的文本, 同时縮小第二预 设范围内的文本之前, 所述文本中的字符所显示的行和 /或列的位置; 所述放大第一预设范 围内的文本包括: 放大第一预设范围内的文本中的字符和 /或字符间距; 所述縮小第二预设 范围内的文本包括: 縮小第二预设范围内的文本中的字符和 /或字符间距。
在第三方面的第一种可能的实现方式中,所述触摸屏,具体用于获取用户的触摸位置; 所述处理器, 具体用根据所述触摸屏获取的所述触摸位置, 放大临近触摸位置的至少一个 字符或者至少一个像素的范围内的文本, 同时, 縮小临近所述第一预设范围的所述第一预 设范围以外的至少一个字符或者至少一个像素的范围内的文本; 所述触摸屏, 还用于根据 所述处理器的处理, 显示所述第一预设范围内的文本, 同时, 显示所述第二预设范围内的 文本。
结合第三方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述触摸屏, 具体还用于获取所述触摸位置的移动; 所述处理器, 具体还用于根据所述触摸屏获取的所 述触摸位置的移动, 确定所述第一预设范围的位置和所述第二预设范围的位置; 所述触摸 屏, 具体还用于根据所述处理器获取的所述第一预设范围的位置和所述第二预设范围的位 置, 放大显示所述第一预设范围内的文本, 同时, 縮小显示所述第二预设范围内的文本。
结合第三方面的第一种可能的实现方式或者第三方面的第二种实现, 在第三方面的第 三种可能的实现方式中,所述触摸屏,具体还用于在临近所述触摸位置显示字符或者图形; 所述触摸屏, 具体还用于获取所述触摸位置的移动; 所述处理器, 具体还用于根据所述触 摸位置的移动获取所述字符或所述图形的显示位置; 所述触摸屏, 具体还用于根据所述处 理器的所述显示位置, 显示所述字符或者所述图形。
结合第三方面的第三种可能的实现方式, 在第四种可能的实现方式中, 所述处理器, 具体还用于如果所述字符或所述图形在所述第一预设范围内,则放大所述字符或所述图形; 所述触摸屏, 具体还用于显示放大后的所述字符或所述图形。
在第三方面第五种可能的实现方式中, 所述触摸屏, 具体还用于获取特定字符; 所述 处理器, 具体还用根据所述触摸屏获取的所述特定字符, 放大所述特定字符, 同时, 縮小 临近所述特定字符的至少一个字符或者至少一个像素的范围内的文本; 所述触摸屏, 具体 根据所处理器的处理, 显示放大后的所述特定字符, 同时, 縮小显示临近所述特定字符的 至少一个字符或者至少一个像素的范围内的文本。
结合第三方面的第五种可能的实现方式, 在第六种可能的实现方式中, 所述处理器具 体用于根据所述触摸屏获取的所述特定字符具体包括, 根据用户输入的字符, 获取所述特 定字符; 或者, 根据用户输入的指令, 获取所述特定字符。
结合第三方面或者第三方面的第一种可能的实现方式或者第三方面的第二种可能的 实现方式或者第三方面的第三种可能的实现方式或者第三方面的第四种可能的实现方式或 者第三方面的第五种可能的实现方式或者第三方面的第六种可能的实现方式, 在第三方面 的第七种可能的实现方式中, 所述显示单元, 还用于, 按照初始大小显示至少一部分所述 文本。
本发明实施例通过根据用户需要放大部分文本同时縮小部分文本, 从而在方便用户查 看 /编辑文本的同时, 不改变原有的文本排列, 使得用户的查看和编辑等对文本的操作变得 方便, 提高了用户操作效率, 提升了用户的体验。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例中所需要 使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图是本发明的一些实施例, 对 于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获取 其他的附图。
图 1为本发明实施例 1提供的文本处理方法的一种可能的实现方式的流程图; 图 2 A-2C、 2 E-2G为本发明例 1中执行了文本处理方法后的显示示意图;
图 2D为本发明例 1中执行文本处理方法之前的显示示意图;
图 3为本发明实施例 1提供的文本处理方法的另一种可能的实现方式的流程图; 图 4为本发明实施例 1提供的文本处理方法的另一种可能的实现方式的流程图; 图 5为本发明实施例 1提供的文本处理方法的另一种可能的实现方式的流程图; 图 6为本发明实施例 2—种触屏设备的结构示意图;
图 7为本发明实施例 3提供的手机的结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发明实施例中的 附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本 发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员 在没有作出创造性劳动前提下所获取的所有其他实施例, 都属于本发明保护的范围。 在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的, 而非旨在限制本发 明。在本发明实施例和所附权利要求书中所使用的单数形式的 "一种"、 "所述"和 "该" 也旨在包括多数形式, 除非上下文清楚地表示其他含义。 还应当理解, 本文中使用的术语 "和 /或"是指并包含一个或多个相关联的列出项目的任何或所有可能組合。进一步应当理 解, 本文中采用的术语 "包括"规定了所述的特征、 整体、 步骤、 操作、 元件和 /或部件的 存在, 而不排除一个或多个其他特征、 整体、 步骤、 操作、 元件、 部件和 /或它们的組的存 在或附加。 应当理解, 尽管在本发明实施例中可能采用术语第一、 第二等来描述各种预设范围, 但这些预设范围不应限于这些术语。 这些术语仅用来将预设范围彼此区分开。 例如, 在不 脱离本发明实施例范围的情况下, 第一预设范围也可以被称为第二预设范围, 类似地, 第 二预设范围也可以被称为第一预设范围。 在本发明实施例中, 触屏设备包括但不限于手机、 个人数字助理 (Persona l D i g i ta l
Ass i stant , PDA) 、 平板电脑、 便携设备 (例如, 便携式计算机) 等移动通讯设备, 也包 括自动拒员机 (Automat i c Te l l er Mach i ne, ATM) 等具有触摸屏的设备, 还可以包括数码 相机等具有触摸屏的设备, 本发明实施例并不限定。 触摸屏可以是用户与设备交互的输入输入接口。可在用户界面内显示一个或多个图形, 用户也可通过例如利用一个或多个手指接触或触摸一个或多个图形, 从而选择所述图形。 在一些实施例中, 选择一个或多个图形发生在用户断开与所述一个或多个图形的接触时, 在一些实施例中, 选择一个或多个图形发生在用户建立与所述一个或多个图形的接触时。 在一些实施例中, 接触可以包括手势, 例如一下或多下轻敲、 一下或多下挥击(从左到右、 从右到左、 向上和 /或向下)以及已经与触摸屏接触的手指的滚动(从右到左、 从左到右、 向 上和 /或向下)。 在一些实施例中, 与图形的无意接触不会选择该图形。 应当理解的是, 本 发明的接触包括与触摸屏直接接触或者间接接触, 还包括在触摸屏上的悬浮操作, 本发明 实施例对此不作限制。
实施例 1
图 1为本发明实施例 1提供的文本处理方法的流程图。
如图 1所示, 文本处理方法可以包括:
S101、 显示文本。
在触屏设备上显示文本, 所述文本可以为可编辑文本或者不可编辑文本。 该文本为计 算机的一种文档类型, 该类文档主要用于记载和 /或储存文本、 字符等信息。 该文档类型一 般不用来记载和 /或存储图像、 声音和格式化数据。 常见的文本的扩展名 有. txt、 . doc;.、 . docx、 . wps等。
5102、 获取用户的输入;
触屏设备获取用户的输入, 该用户的输入可以是通过触摸屏获得的也可以是通过触屏 设备的其他外设获得的。 当触摸屏终端通过触摸屏获取该用户的输入时, 用户可以通过例 如利用一个或多个手指接触或触摸一个或多个图形完成输入, 也可以通过滑动轨迹完成输 入, 也可通过手势完成输入。
可选的, 该获取用户输入可以包括: 获取用户的触摸位置、 获取指令、 获取特殊字符 中的任意一种或者多种的組合。 其中, 指令可以包括编辑指令, 查找指令, 或者检查指令 等。
5103、 根据所述输入, 放大显示第一预设范围内的文本, 同时, 縮小显示第二预设范 围内的文本, 以使文本的显示保持初始状态。 其中, 所述以使文本的显示保持初始状态是 指, 以使文本中的字符, 保持显示在未执行所述放大显示第一预设范围内的文本同时縮小 显示第二预设范围内的文本之前, 所述文本中的字符所显示的行和 /或列的位置; 所述放大 显示第一预设范围内的文本包括:放大显示第一预设范围内的文本中的字符和 /或字符间距; 所述縮小显示第二预设范围内的文本包括: 縮小显示第二预设范围内的文本中的字符和 / 或字符间距。
图 2A-2C为放大显示第一预设范围内的文本, 同时, 縮小显示第二预设范围内的文本 的显示示意图。 图 2D为放大显示第一预设范围内的文本, 同时, 縮小显示第二预设范围内 的文本之前的显示示意图。 如图 2A所示, 图 2A为放大显示第一预设范围内文本中的字符的 间距, 同时, 縮小显示第二预设范围内的文本中的字符间距; 如图 2B所示, 图 2B为放大显 示第一预设范围内文本中的字符, 同时, 縮小显示第二预设范围内的文本中的字符; 如图 2C所示, 图 2C为放大显示第一预设范围内文本中的字符和字符的间距, 同时, 縮小显示第 二预设范围内的文本中的字符和字符间距。 其中, 初始状态是指, 在步骤 sioi中该文本的 显示的文本所在的行和 /或列的位置, 具体的可以参见图 2D所示。 如图 2A-2C所示, 在放大 显示部分文本的同时縮小显示部分文本, 使得该文本的显示保持初始状态, 即, 使得文本 中的字符仍然显示在如图 2 D所示的该文本的字符所显示的行中。应当理解的是,对于书写、 阅读等排列习惯不同的文本, 该使文本的显示保持初始状态, 可以还包括使该文本中的字 符仍然显示在其初始位置显示的列中, 或者该文本中的字符仍然显示在其初始位置显示的 行和列中。 应当理解的是, 其中第一预设范围的形状可以是矩形或者圆形, 也可以是系统 预先设置或者用户预先设置的任何形状。
本发明实施例通过根据用户需要放大部分文本同时縮小部分文本, 从而在方便用户查 看 /编辑文本的同时, 不改变原有的文本排列, 使得用户的查看和编辑等对文本的操作变得 方便, 提高了用户操作效率, 提升了用户的体验。
可选的, 当步骤 S1 02中, 获取用户的输入包括获取用户的触摸位置时, 则在步骤 S1 03 中, 所述第一预设范围是临近触摸位置的至少一个字符或者至少一个像素的范围; 所述第 二预设范围是临近所述第一预设范围的所述第一预设范围以外的至少一个字符或者至少一 个像素的范围。具体的该临近触摸位置的至少一个字符或者至少一个像素的范围,可以是, 如图 2A-2C、 2E所示, 以触摸位置为中心的至少一个字符或者至少一个像素的范围 (该中心 可以是绝对的中心, 也可以不是绝对的中心, 即, 触摸位置两侧或者上下的范围可以不对 称); 也可以是, 如图 2F、 2G所示, 触摸位置的一侧的至少一个字符或者至少一个像素的范 围 (特别是当触摸位置在触摸屏的边缘时, 可以只放大显示该触摸位置一侧的范围); 还可 以是, 触摸所在位置的至少一个字符或者至少一个像素的范围 (即放大显示触摸位置所在 位置的字符或者像素:)。 其中, 一个字符还可以包括通过触屏设备的智能识别机制识别出的 一个单词, 一个词組。 应当理解的, 该至少一个字符或者至少一个像素的范围可以是用户 设定的, 也可以是程序预先设定的, 本发明实施例对此不作限制。 进一步可选的, 本发明 实施例中的放大显示范围可以是圆形或者矩形等。 所述第二预设范围是临近所述第一预设 范围的所述第一预设范围以外的至少一个字符或者至少一个像素的范围, 其中, 临近第一 预设范围的该第一预设范围以外的范围可以包括, 以第一个预设范围为中心的, 除第一预 设范围以外的范围; 或者可以包括, 第一预设范围一侧的, 除第一预设范围以外的范围。 类似的, 在第二预设范围中的字符和像素与第一预设范围内的字符和像素可以有相同或者 相近的含义。
本发明实施例通过根据用户的触摸位置, 调整放大区域的内容, 使得该放大区域可以 根据用户的需求发生变化, 使得用户的查看和编辑等对文本的操作变得方便, 提高了用户 操作效率, 提升了用户的体验。
可选的, 如图 2A-2C、 2E-2G所示, 在 S1 03的同时, 所述方法还可以包括: S1 04、 按照 初始大小显示至少一部分所述文本。
根据初始状态, 在放大部分文本中的字符和縮小部分文本中的字符之后, 在使文本的 显示保持初始状态的同时, 还可以按照初始的大小显示一部分文本, 这个初始的大小可以 包括初始状态时字符的大小和 /或字符间距的大小。
可选的, 如图 3所示, 当步骤 S1 02中, 获取用户的输入包括获取用户的触摸位置时, 在 S1 03之后, 所述方法还包括: S1 051、 获取所述触摸位置的移动; S1 052、 根据所述触摸 位置的移动,确定所述第一预设范围的位置,放大显示所述第一预设范围内的文本; 同时, 根据所述触摸位置的移动, 确定所述第二预设范围的位置, 縮小显示所述第二预设范围内 的文本, 以使文本的显示保持初始状态。
根据用户触摸位置的移动改变放大显示的文本的内容, 同时, 改变縮小显示的文本的 内容。 用户触摸位置的移动可以是用户的手指 (或者其他辅助设备) 在触摸屏上的接触或 者不接触的移动, 根据用户的移动改变放大显示文本的内容, 以使用户可以随时根据需要 改变放大显示部分文本的内容。 可选的, 当用户的手指 (或者其他辅助设备) 离开触摸屏 或者离开触摸屏一定距离时, 可以取消放大显示和縮小显示部分所述文本, 按照初始大小 显示全部文本, 也可以仍然保持显示用户离开触摸屏之前的显示状态。
本发明实施例通过根据用户的触摸位置, 调整放大区域的内容, 使得该放大区域可以 根据用户的需求发生变化, 使得用户的查看和编辑等对文本的操作变得方便, 提高了用户 操作效率, 提升了用户的体验。
可选的, 如图 4所示, 当步骤 S1 02中, 获取用户的输入包括获取用户的触摸位置时, 在 S1 03的同时或者之后,所述方法还包括: S1 061、在临近所述触摸位置显示字符或者图形; S1 062、 获取所述触摸位置的移动; S1 063、 根据所述触摸位置的移动, 确定所述字符或所 述图形的显示位置; S1 064、 根据所述显示位置, 显示所述字符或者所述图形。
在临近所述触摸位置显示字符或者图形包括在临近触摸位置显示预先设置的字符获 取图片, 该预先设置可以是系统预先设置的, 也用户预先设置的。 其中字符可以是与该触 摸位置文本内容相关的字符, 如解释、 批注、 音标等等。 该图片可以是矢量格式的图片, 也可以是像素格式的图片, 该图片可以是光标也可以是手柄, 还可以是其他相关的图片, 等等。
具体的, 可以是根据用户的触摸, 在字符之间显示光标, 该光标可以闪烁显示, 也可 以不闪烁显示。 当用户触摸位置发生变化时, 该光标的显示位置也随着用户触摸位置的变 化发生改变, 移动的新的触摸位置显示该光标。 本发明实施例通过显示该光标。 可以提示 用户其触摸的具体位置, 方便用户调整其触摸位置。
具体的还可以是在所述触摸位置显示手柄, 同时, 在临近所述手柄显示位置的字符之 间显示光标; 获取所述触摸位置的移动; 根据所述移动, 移动所述手柄和所述光标的显示 位置。 根据用户的触摸可以显示一个手柄, 该手柄形象的用于用户拖拽, 通过拖动该手柄 来移动触摸位置。 在显示手柄的同时, 还可以在临近所述手柄显示位置的字符之间显示光 标。 根据用户触摸位置的变化移动手柄, 同时移动光标的显示位置。 本发明实施例在显示 光标的基础上增加手柄, 使用户移动触摸位置时避免对文本的遮挡, 同时通过增加手柄, 是用户移动触摸位置更形象, 产生拖拽的感觉。
可选的, 在步骤 S1 061 -S1 064中, 如果所述字符或者图形在所述第一预设范围内, 则 放大显示所述字符或者所述图形。 例如, 如果光标所在部分的文本是放大显示的, 即, 在 第一预设范围内, 则也同时放大显示该光标, 以方便用户更清楚的看到光标, 跟方便用户 选择触摸位置, 提高用户的操作效率。
可选的, 如图 5所示, 当步骤 S1 02中, 获取用户的输入包括获取特定字符时, 则在步 骤 S1 03中, 所述放大显示第一预设范围内的文本, 具体包括: 放大显示所述特定字符; 所 述縮小显示第二预设范围内的文本, 具体包括: 縮小显示临近所述特定字符的至少一个字 符或者至少一个像素的范围内的文本。 其中, 所述获取特定字符具体包括: 根据用户输入 的字符, 获取所述特定字符; 或者, 根据用户输入的指令, 获取所述特定字符。 其中, 所 述特定字符可以是用户输入的字符,也可以是根据用户输入的指令,获取的字符。具体的, 该特定字符可以是用户输入的其需要查找的字符, 也可以是用户输入的其希望特殊显示的 字符, 还可以是用户输入的, 需要编辑的字符。 该特定字符还可以是用户输入检查错误指 令, 设备根据该检查错误指令, 检查文本是否存在错误, 并根据检查结果, 放大显示有错 误的特定字符。 在放大显示该特定字符的同时, 縮小显示临近所述特定字符的至少一个字 符或者至少一个像素的范围内的文本。 本发明实施例, 通过放大显示特定字符以满足用户 多样化的查看和编辑需要, 可以方便的查找, 查错等等, 提高用户的使用效率。 实施例 2
图 6为实施例 2提供的一种触屏装置的结构示意图。如图 6所示, 本发明实施例的触屏装 置包括:
显示单元 201, 用于显示文本;
获取单元 202, 用于获取用户的输入;
所述显示单元 201, 还用于根据所述获取单元 202获取的所述用户的输入, 放大显示第 一预设范围内的文本; 同时, 縮小显示第二预设范围内的文本, 以使文本的显示保持初始 状态;
其中, 所述以使文本的显示保持初始状态是指, 以使文本中的字符, 保持显示在未执 行所述放大显示第一预设范围内的文本同时縮小显示第二预设范围内的文本之前, 所述文 本中的字符所显示的行和 /或列的位置;
所述放大显示第一预设范围内的文本包括: 放大显示第一预设范围内的文本中的字符 和 /或字符间距;
所述縮小显示第二预设范围内的文本包括: 縮小显示第二预设范围内的文本中的字符 和 /或字符间距。
可选的, 所述显示单元 201, 还用于, 按照初始大小显示至少一部分所述文本。 可选的, 所述获取单元 202, 具体用于获取用户的触摸位置; 所述显示单元 201, 具体 用根据所述获取单元 202获取的所述触摸位置,放大显示临近触摸位置的至少一个字符或者 至少一个像素的范围内的文本, 同时, 縮小显示临近所述第一预设范围的所述第一预设范 围以外的至少一个字符或者至少一个像素的范围内的文本。
显示单元 201具体用于实施本发明实施例 1中步骤 S1 01、 S1 03、 S1 04的方法, 获取单元 202具体用于执行本发明实施例 1步骤 S1 02的方法, 具体方法详见本发明实施例 1, 在此不再 赘述。
可选的, 所述获取单元 202, 具体还用于获取所述触摸位置的移动, 根据所述触摸位 置的移动获取所述第一预设范围的位置和 /或根据所述触摸位置的移动获取所述第二预设 范围的位置; 所述显示单元 201, 具体还用于根据所述获取单元获取的所述第一预设范围的 位置和所述第二预设范围的位置, 放大显示所述第一预设范围内的文本, 同时, 縮小显示 所述第二预设范围内的文本。显示单元 201具体用于实施本发明实施例 1中步骤 S1 052的方法 获取单元 202具体用于执行本发明实施例 1步骤 S1 051的方法,具体方法详见本发明实施例 1, 在此不再赘述。
可选的, 所述显示单元 201, 具体还用于根据所述获取单元 202获取的触摸位置, 在临 近所述触摸位置显示字符或者图形; 所述获取单元 202, 具体还用于获取所述触摸位置的移 动; 所述显示单元 201, 具体还用于根据所述获取单元 202获取的所述移动, 显示所述字符 或者所述图形。 显示单元 201具体用于实施本发明实施例 1中步骤 S1 061、 S1 063的方法, 获 取单元 202具体用于执行本发明实施例 1步骤 S1 062的方法, 具体方法详见本发明实施例 1, 在此不再赘述。
可选的, 所述显示单元 201, 具体还用于根据所述获取单元 202获取的触摸位置, 在所 述触摸位置显示手柄, 同时, 在临近所述手柄显示位置的字符之间显示光标; 所述获取单 元 202, 具体还用于获取所述触摸位置的移动; 所述显示单元 201, 具体还用于根据所述获 取单元 202获取的所述移动, 显示所述手柄和所述光标。
可选的, 所述显示单元 201, 具体还用于如果所述所述字符或者所述图形在所述第一 预设范围内, 则放大显示所述字符或者所述图形。
可选的, 所述获取单元 202, 具体还用于获取特定字符; 所述显示单元 201, 具体还用 根据所述获取单元 202获取的所述特定字符, 放大显示所述特定字符, 同时, 縮小显示临近 所述特定字符的至少一个字符或者至少一个像素的范围内的文本。显示单元 201具体用于实 施本发明实施例 1中步骤 S1 01、 S1 03的方法, 获取单元 202具体用于执行本发明实施例 1步骤 S1 02的方法, 具体方法详见本发明实施例 1, 在此不再赘述。
本发明实施例通过一种触摸装置, 能够根据用户需要放大部分文本同时縮小部分文本 从而在方便用户查看 /编辑文本的同时, 不改变原有的文本排列, 使得用户的查看和编辑等 对文本的操作变得方便, 提高了用户操作效率, 提升了用户的体验。 实施例 3
一种处理用户界面的触屏设备, 包括: 触摸屏, 存储器, 处理器, 电源管理芯片, RF 电路, 外设接口, 音频电路, 扬声器, I /O子系统, 其特征在于, 所述触摸屏, 用于显示文 本, 还用于获取用户的输入; 所述处理器, 用于根据所述触摸屏获取的所述用户的输入, 放大第一预设范围内的文本; 同时, 縮小第二预设范围内的文本, 以使文本的显示保持初 始状态; 所述触摸屏, 还用于根据所述处理器的处理, 显示所述第一预设范围内的文本, 同时, 显示所述第二预设范围内的文本。 本实施例以手机为例对本发明实施例进行具体说 明。 图 7为实施例 3提供的触屏设备的结构示意图。 如图 7所示手机包括: 触摸屏 41, 存储器 42, 处理器 43, 电源管理芯片 44, RF电路 45, 外设接口 46, 音频电路 47, 扬声器 48, I /O 子系统 49。 应该理解的是, 如图 6所示的手机仅仅是触屏设备的一个范例, 并且手机可以具 有比图中所示出的更过的或者更少的部件, 可以組合两个或更多的部件, 或者可以具有不 同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和 /或专用集成电路 在内的硬件、 软件、 或硬件和软件的組合中实现。
所述触摸屏 41, 用于显示文本, 还用于获取用户的输入, 还用于根据所述处理器的处 理, 显示所述第一预设范围内的文本, 同时, 显示所述第二预设范围内的文本。 所述触摸 屏 41用于执行实施例 1所述的方法, 详见实施例 1中 S101、 S102、 S103、 S104的方法, 具体 方法详见实施例 1中的方法, 在此不再赘述。所述触摸屏 41是手机与用户之间的输入接口和 输出接口, 除具有获取用户触摸信息和控制指令的功能外, 还将可视输出呈现给用户, 可 视输出可以包括图形、 文本、 图标、 视频等。
所述存储器 42, 可以用于存储触摸信息。 所述触摸信息包括: 触摸位置信息、 触摸压 力信息等。 存储器 42可以被处理器 43、 外设接口 46等访问, 所述存储器 42可以包括高速随 机存取存储器, 还可以包括非易失性存储器, 例如一个或多个磁盘存储器件、 闪存器件、 或其他易失性固态存储器件。
所述处理器 43, 可以用于根据所述触摸屏获取的所述用户的输入, 放大第一预设范围 内的文本; 同时, 縮小第二预设范围内的文本, 以使文本的显示保持初始状态。 所述处理 器 43用于执行实施例 1所述的方法, 详见实施例 1中 S103的方法, 具体方法详见实施例 1中的 方法, 在此不再赘述。 处理器 43是手机 400的控制中心, 利用各种接口和线路连接整个手机 的各个部分, 通过运行或执行存储在存储器 42内的软件程序和 /或模块, 以及调用存储在存 储器 42内的数据,执行手机 400的各种功能和处理数据,从而对手机进行整体监控。可选的, 处理器 43可包括一个或多个处理单元; 优选的, 处理器 43可集成应用处理器和调制解调处 理器, 可选的, 应用处理器主要处理操作系统、 用户界面和应用程序等, 调制解调处理器 主要处理无线通信。 可以理解的是, 上述调制解调处理器也可以不集成到处理器 43中。 还 应当理解, 上述功能只是处理器 43能够执行功能中的一种, 对于其他功能本发明实施例不 做限制。
所述电源管理芯片 44, 可用于为处理器 43、 I /O子系统 49及外设接口 46所连接的硬件进 行供电及电源管理。
所述 RF电路 45, 主要用于建立手机与无线网络 (即网络侧) 的通信, 实现手机与无线 网络的数据获取和发送。 例如收发短信息、 电子邮件等。 具体地, RF电路 45获取并发送 RF 信号, RF信号也称为电磁信号, RF电路 45将电信号转换为电磁信号或将电磁信号转换为电 信号, 并且通过该电磁信号与通信网络以及其他设备进行通信。 RF电路 45可以包括用于执 行这些功能的已知电路, 其包括但不限于天线系统、 RF收发机、 一个或多个放大器、 调谐 器、 一个或多个振荡器、 数字信号处理器、 CODEC芯片組、 用户标识模块(Subscr i ber I dent i ty Modu l e, S I M)等等。
所述外设接口 46,所述外设接口可以将设备的输入和输出外设连接到处理器 43和存储 器 42。
所述音频电路 47, 主要可用于从外设接口 46获取音频数据, 将该音频数据转换为电信 号, 并且将该电信号发送给扬声器 48。
所述扬声器 48, 可用于将手机通过 RF电路 45从无线网络获取的语音信号, 还原为声音 并向用户播放该声音。
所述 I /0子系统 49: 所述 I /0子系统 49可以控制设备上的输入输出外设, I /0子系统 49 可以包括显示控制器 491和用于控制其他输入 /控制设备的一个或多个输入控制器 492。可选 的,一个或多个输入控制器 492从其他输入 /控制设备获取电信号或者向其他输入 /控制设备 发送电信号, 其他输入 /控制设备可以包括物理按钮 (按压按钮、 摇臂按钮等) 、 拨号盘、 滑动开关、 操纵杆、 点击滚轮。 值得说明的是, 输入控制器 492可以与以下任一个连接: 键 盘、 红外端口、 USB接口以及诸如鼠标的指示设备。 所述 I /O子系统 49中的显示控制器 491 从触摸屏 41获取电信号或者向触摸屏 41发送电信号。 触摸屏 41获取触摸屏上的接触, 显示 控制器 491将获取到的接触转换为与呈现在触摸屏 41上的用户界面对象的交互,即实现人机 交互,呈现在触摸屏 41上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标、 筛选模式等。 值得说明的是, 设备还可以包括光鼠, 光鼠是不呈现可视输出的触摸敏感表 面, 或者是由触摸屏形成的触摸敏感表面的延伸。
在本发明实施例 3中, 触摸屏 41上可以显示如图 2D所示的文本, 并获取用户的输入。 处 理器 43根据所述触摸屏获取的所述用户的输入, 放大第一预设范围内的文本; 同时, 縮小 第二预设范围内的文本, 以使文本的显示保持初始状态。 触屏 41还可以根据所述处理器的 处理,显示所述第一预设范围内的文本,同时,显示所述第二预设范围内的文本,如图 2A-2C、 2E-2G所示的文本。上述结构可用于执行实施例 1中的方法, 具体方法详见实施例 1中所述的 方法, 在此不再赘述。
本发明实施例通过一种触摸设备, 能够根据用户需要放大部分文本同时縮小部分文本 从而在方便用户查看 /编辑文本的同时, 不改变原有的文本排列, 使得用户的查看和编辑等 对文本的操作变得方便, 提高了用户操作效率, 提升了用户的体验。
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本发明实施例可 以用硬件实现, 或固件实现, 或它们的組合方式来实现。 当使用软件实现时, 可以将上述 功能存储在终端可读介质中或作为终端可读介质上的一个或多个指令或代码进行传输。 终 端可读介质包括终端存储介质和通信介质, 可选的通信介质包括便于从一个地方向另一个 地方传送终端程序的任何介质。 存储介质可以是终端能够存取的任何可用介质。 以此为例 但不限于: 终端可读介质可以包括 RAM、 ROM, EEPR0M、 CD-ROM或其他光盘存储、 磁盘存储 介质或者其他磁存储设备、 或者能够用于携带或存储具有指令或数据结构形式的期望的程 序代码并能够由终端存取的任何其他介质。此外。任何连接可以适当的成为终端可读介质。 例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(DSL)或者诸如红外线、 无线电和微波之类的无线技术从网站、 服务器或者其他远程源传输的, 那么同轴电缆、 光 纤光缆、 双绞线、 DSL 或者诸如红外线、 无线和微波之类的无线技术包括在所属介质的定 义中。 如本发明实施例所使用的, 盘 (D i sk)和碟(d i sc ) 包括压縮光碟(CD) 、 激光碟、 光碟、 数字通用光碟 (DVD) 、 软盘和蓝光光碟, 可选的盘通常磁性的复制数据, 而碟则用 激光来光学的复制数据。 上面的組合也应当包括在终端可读介质的保护范围之内。
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明 的保护范围之内。

Claims

权 利 要 求
1、 一种文本的处理方法, 其特征在于, 所述方法包括: 显示文本; 获取用户的输入;
根据所述输入, 放大显示第一预设范围内的文本; 同时,
縮小显示第二预设范围内的文本, 以使所述文本的显示保持初始状态; 其中, 所述以 使文本的显示保持初始状态是指, 以使文本中的字符, 保持显示在未执行所述放大显示第 一预设范围内的文本同时縮小显示第二预设范围内的文本之前, 所述文本中的字符所显示 的行和 /或列的位置;
所述放大显示第一预设范围内的文本包括: 放大显示第一预设范围内的文本中的字符 和 /或字符间距;
所述縮小显示第二预设范围内的文本包括: 縮小显示第二预设范围内的文本中的字符 和 /或字符间距。
2、 根据权利要求 1所述的方法, 其特征在于, 当所述获取用户的输入包括: 获取用户 的触摸位置时;
所述第一预设范围是临近所述触摸位置的至少一个字符或者至少一个像素的范围; 所述第二预设范围是临近所述第一预设范围的所述第一预设范围以外的至少一个字 符或者至少一个像素的范围。
3, 根据权利要求 2所述的方法, 其特征在于, 在所述根据所述输入, 放大显示第一预 设范围内的文本, 同时, 縮小显示第二预设范围内的文本之后, 所述方法还包括:
获取所述触摸位置的移动;
根据所述触摸位置的移动, 确定所述第一预设范围的位置, 放大显示所述第一预设范 围内的文本; 同时,
根据所述触摸位置的移动, 确定所述第二预设范围的位置, 縮小显示所述第二预设范 围内的文本, 以使文本的显示保持初始状态。
4、 根据权利要求 2所述的方法, 其特征在于, 在所述根据所述输入, 放大显示第一预 设范围内的文本, 同时, 縮小显示第二预设范围内的文本之后, 所述方法还包括:
在临近所述触摸位置显示字符或者图形;
获取所述触摸位置的移动; 根据所述触摸位置的移动, 确定所述字符或所述图形的显示位置;
根据所述显示位置, 显示所述字符或者所述图形。
5、 根据权利要求 4所述的方法, 其特征在于, 如果所述字符或者图形在所述第一预设 范围内, 则放大显示所述字符或者所述图形。
6、 根据权利要求 1所述的方法, 其特征在于, 当所述获取用户的输入包括: 获取特定 字符时,
所述放大显示第一预设范围内的文本, 具体包括: 放大显示所述特定字符; 所述縮小显示第二预设范围内的文本, 具体包括: 縮小显示临近所述特定字符的至少 一个字符或者至少一个像素的范围内的文本。
7、 根据权利要求 6所述的方法, 其特征在于, 所述获取特定字符具体包括: 根据用户输入的字符, 获取所述特定字符; 或者,
根据用户输入的指令, 获取所述特定字符。
8、 根据权利要求 1至 7任一项所述的方法, 其特征在于, 在所述根据所述输入, 放大 显示第一预设范围内的文本, 同时, 縮小显示第二预设范围内的文本, 以使文本的显示保 持初始状态的同时, 所述方法还包括:
按照初始大小显示至少一部分所述文本。
9、 一种触屏装置, 其特征在于, 所述装置包括:
显示单元, 用于显示文本;
获取单元, 用于获取用户的输入;
所述显示单元, 还用于根据所述获取单元获取的所述用户的输入, 放大显示第一预设 范围内的文本; 同时, 縮小显示第二预设范围内的文本, 以使文本的显示保持初始状态; 其中, 所述以使文本的显示保持初始状态是指, 以使文本中的字符, 保持显示在未执 行所述放大显示第一预设范围内的文本同时縮小显示第二预设范围内的文本之前, 所述文 本中的字符所显示的行和 /或列的位置;
所述放大显示第一预设范围内的文本包括: 放大显示第一预设范围内的文本中的字符 和 /或字符间距;
所述縮小显示第二预设范围内的文本包括: 縮小显示第二预设范围内的文本中的字符 和 /或字符间距。
10、 根据权利要求 9所述的触屏装置, 其特征在于, 所述获取单元, 具体用于获取用户的触摸位置;
所述显示单元, 具体用根据所述获取单元获取的所述触摸位置, 放大显示临近触摸位 置的至少一个字符或者至少一个像素的范围内的文本, 同时, 縮小显示临近所述第一预设 范围的所述第一预设范围以外的至少一个字符或者至少一个像素的范围内的文本。
1 1、 根据权利要求 10所述的触屏装置, 其特征在于,
所述获取单元, 具体还用于获取所述触摸位置的移动, 根据所述触摸位置的移动获取 所述第一预设范围的位置和 /或根据所述触摸位置的移动获取所述第二预设范围的位置; 所述显示单元, 具体还用于根据所述获取单元获取的所述第一预设范围的位置和所述 第二预设范围的位置, 放大显示所述第一预设范围内的文本, 同时, 縮小显示所述第二预 设范围内的文本。
12、 根据权利要求 10或 1 1所述的触屏装置, 其特征在于,
所述显示单元, 具体还用于在临近所述触摸位置显示字符或者图形;
所述获取单元, 具体还用于获取所述触摸位置的移动, 根据所述触摸位置的移动获取 所述字符或所述图形的显示位置;
所述显示单元, 具体还用于根据所述获取单元获取的所述显示位置, 显示所述字符或 者所述图形。
13、 根据权利要求 12所述的触屏装置, 其特征在于,
所述显示单元, 具体还用于如果所述字符或所述图形在所述第一预设范围内, 则放大 显示所述字符或所述图形。
14、 根据权利要求 9所述的触屏装置, 其特征在于,
所述获取单元, 具体还用于获取特定字符;
所述显示单元, 具体还用根据所述获取单元获取的所述特定字符, 放大显示所述特定 字符, 同时, 縮小显示临近所述特定字符的至少一个字符或者至少一个像素的范围内的文 本。
15、 根据权利要求 14所述的触屏装置, 其特征在于, 所述获取单元具体用于, 根据用 户输入的字符, 获取所述特定字符; 或者, 根据用户输入的指令, 获取所述特定字符。
16、 根据权利要求 9至 15任一项所述的触屏装置, 其特征在于, 所述显示单元, 还用于, 按照初始大小显示至少一部分所述文本。
17、 一种触屏设备, 其特征在于, 所述触屏设备包括: 触摸屏, 用于显示文本;
所述触摸屏, 还用于获取用户的输入;
所述处理器, 用于根据所述触摸屏获取的所述用户的输入, 放大第一预设范围内的文 本; 同时, 縮小第二预设范围内的文本, 以使文本的显示保持初始状态;
所述触摸屏,还用于根据所述处理器的处理,显示所述第一预设范围内的文本,同时, 显示所述第二预设范围内的文本;
其中, 所述以使文本的显示保持初始状态是指, 以使文本中的字符, 保持显示在未执 行所述放大第一预设范围内的文本, 同时縮小第二预设范围内的文本之前, 所述文本中的 字符所显示的行和 /或列的位置;
所述放大第一预设范围内的文本包括: 放大第一预设范围内的文本中的字符和 /或字 符间距;
所述縮小第二预设范围内的文本包括: 縮小第二预设范围内的文本中的字符和 /或字 符间距。
18、 根据权利要求 17所述的触屏设备, 其特征在于,
所述触摸屏, 具体用于获取用户的触摸位置;
所述处理器, 具体用根据所述触摸屏获取的所述触摸位置, 放大临近触摸位置的至少 一个字符或者至少一个像素的范围内的文本, 同时, 縮小临近所述第一预设范围的所述第 一预设范围以外的至少一个字符或者至少一个像素的范围内的文本;
所述触摸屏,还用于根据所述处理器的处理,显示所述第一预设范围内的文本,同时, 显示所述第二预设范围内的文本。
19、 根据权利要求 18所述的触屏设备, 其特征在于,
所述触摸屏, 具体还用于获取所述触摸位置的移动;
所述处理器, 具体还用于根据所述触摸屏获取的所述触摸位置的移动, 确定所述第一 预设范围的位置和所述第二预设范围的位置;
所述触摸屏, 具体还用于根据所述处理器获取的所述第一预设范围的位置和所述第二 预设范围的位置, 放大显示所述第一预设范围内的文本, 同时, 縮小显示所述第二预设范 围内的文本。
20、 根据权利要求 18或者 19所述的触屏设备, 其特征在于,
所述触摸屏, 具体还用于在临近所述触摸位置显示字符或者图形; 所述触摸屏, 具体还用于获取所述触摸位置的移动;
所述处理器, 具体还用于根据所述触摸位置的移动获取所述字符或所述图形的显示位 置;
所述触摸屏, 具体还用于根据所述处理器的所述显示位置, 显示所述字符或者所述图 形。
21、 根据权利要求 20所述的触屏设备, 其特征在于,
所述处理器, 具体还用于如果所述字符或所述图形在所述第一预设范围内, 则放大所 述字符或所述图形;
所述触摸屏, 具体还用于显示放大后的所述字符或所述图形。
22、 根据权利要求 17所述的触屏设备, 其特征在于,
所述触摸屏, 具体还用于获取特定字符;
所述处理器, 具体还用根据所述触摸屏获取的所述特定字符, 放大所述特定字符, 同 时, 縮小临近所述特定字符的至少一个字符或者至少一个像素的范围内的文本;
所述触摸屏, 具体根据所处理器的处理, 显示放大后的所述特定字符, 同时, 縮小显 示临近所述特定字符的至少一个字符或者至少一个像素的范围内的文本。
23、 根据权利要求 22所述的触屏设备, 其特征在于, 所述处理器具体用于根据所述触 摸屏获取的所述特定字符具体包括, 根据用户输入的字符, 获取所述特定字符; 或者, 根 据用户输入的指令, 获取所述特定字符。
24、 根据权利要求 17至 23任一项所述的触屏设备, 其特征在于, 所述显示单元, 还用 于, 按照初始大小显示至少一部分所述文本。
PCT/CN2013/082754 2013-08-31 2013-08-31 一种文本的处理方法及触屏设备 WO2015027505A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201380001354.1A CN103718149B (zh) 2013-08-31 2013-08-31 一种文本的处理方法及触屏设备
US14/902,226 US20160162162A1 (en) 2013-08-31 2013-08-31 Text Processing Method and Touchscreen Device
PCT/CN2013/082754 WO2015027505A1 (zh) 2013-08-31 2013-08-31 一种文本的处理方法及触屏设备
EP13892571.4A EP3002664B1 (en) 2013-08-31 2013-08-31 Text processing method and touchscreen device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/082754 WO2015027505A1 (zh) 2013-08-31 2013-08-31 一种文本的处理方法及触屏设备

Publications (1)

Publication Number Publication Date
WO2015027505A1 true WO2015027505A1 (zh) 2015-03-05

Family

ID=50409482

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082754 WO2015027505A1 (zh) 2013-08-31 2013-08-31 一种文本的处理方法及触屏设备

Country Status (4)

Country Link
US (1) US20160162162A1 (zh)
EP (1) EP3002664B1 (zh)
CN (1) CN103718149B (zh)
WO (1) WO2015027505A1 (zh)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150050882A (ko) * 2013-11-01 2015-05-11 삼성전자주식회사 다국어 입력 방법 및 이를 이용하는 다국어 입력 장치
CN105786295A (zh) * 2014-12-19 2016-07-20 阿里巴巴集团控股有限公司 文字输入方法及装置
CN105867596A (zh) * 2015-01-22 2016-08-17 联想(北京)有限公司 一种显示方法及电子设备
CN113608653A (zh) * 2015-09-09 2021-11-05 华为技术有限公司 一种数据编辑方法及装置
CN108351740A (zh) * 2015-10-13 2018-07-31 摩托罗拉移动有限责任公司 在显示装置上的文本中设置光标位置
WO2017120281A1 (en) * 2016-01-07 2017-07-13 Wal-Mart Stores, Inc. Systems and methods of consolidating product orders
JP6776805B2 (ja) * 2016-10-24 2020-10-28 富士通株式会社 文字認識装置、文字認識方法、文字認識プログラム
CN106681588A (zh) * 2016-12-27 2017-05-17 努比亚技术有限公司 一种字符处理方法、装置及终端
KR101920332B1 (ko) * 2017-01-06 2018-11-20 김찬기 터치스크린을 포함하는 스마트 디바이스 상에서의 문자 편집 방법 및 이를 구현한 스마트 디바이스
WO2018140555A1 (en) 2017-01-30 2018-08-02 Walmart Apollo, Llc Systems, methods and apparatus for distribution of products and supply chain management
US10481791B2 (en) * 2017-06-07 2019-11-19 Microsoft Technology Licensing, Llc Magnified input panels
US10528368B2 (en) 2017-06-28 2020-01-07 International Business Machines Corporation Tap data to determine user experience issues
CN107831976B (zh) * 2017-09-22 2020-12-11 创新先进技术有限公司 消息显示方法及装置
CN107832280A (zh) * 2017-10-27 2018-03-23 努比亚技术有限公司 一种信息编辑方法、终端及计算机可读存储介质
CN107885416A (zh) * 2017-10-30 2018-04-06 努比亚技术有限公司 一种文本复制方法、终端及计算机可读存储介质
CN111796742A (zh) * 2020-04-21 2020-10-20 北京沃东天骏信息技术有限公司 图文信息处理方法及装置
CN113311969A (zh) * 2021-05-27 2021-08-27 维沃移动通信有限公司 图标位置的调整方法、装置、电子设备及可读存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101644959A (zh) * 2008-08-08 2010-02-10 深圳富泰宏精密工业有限公司 利用按键感应提示输入字符的系统及方法
CN102043584A (zh) * 2010-12-07 2011-05-04 中兴通讯股份有限公司 一种应用于数字终端的输入方法及装置

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5760773A (en) * 1995-01-06 1998-06-02 Microsoft Corporation Methods and apparatus for interacting with data objects using action handles
US5731805A (en) * 1996-06-25 1998-03-24 Sun Microsystems, Inc. Method and apparatus for eyetrack-driven text enlargement
US6704034B1 (en) * 2000-09-28 2004-03-09 International Business Machines Corporation Method and apparatus for providing accessibility through a context sensitive magnifying glass
US7075512B1 (en) * 2002-02-07 2006-07-11 Palmsource, Inc. Method and system for navigating a display screen for locating a desired item of information
CN101714138A (zh) * 2008-10-07 2010-05-26 英业达股份有限公司 放大显示实时翻译字词的系统及其方法
KR101427114B1 (ko) * 2009-10-30 2014-08-07 삼성전자 주식회사 화상형성장치 및 화상형성장치의 타겟영역 확대 표시방법
CN102073442A (zh) * 2009-11-25 2011-05-25 神达电脑股份有限公司 通过可携式电子装置的触控式荧幕输入指令的方法
US9612670B2 (en) * 2011-09-12 2017-04-04 Microsoft Technology Licensing, Llc Explicit touch selection and cursor placement
CN102662566B (zh) * 2012-03-21 2016-08-24 中兴通讯股份有限公司 屏幕内容放大显示方法及终端

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101644959A (zh) * 2008-08-08 2010-02-10 深圳富泰宏精密工业有限公司 利用按键感应提示输入字符的系统及方法
CN102043584A (zh) * 2010-12-07 2011-05-04 中兴通讯股份有限公司 一种应用于数字终端的输入方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3002664A4 *

Also Published As

Publication number Publication date
CN103718149A (zh) 2014-04-09
EP3002664B1 (en) 2019-04-03
US20160162162A1 (en) 2016-06-09
EP3002664A1 (en) 2016-04-06
CN103718149B (zh) 2018-02-02
EP3002664A4 (en) 2016-07-20

Similar Documents

Publication Publication Date Title
WO2015027505A1 (zh) 一种文本的处理方法及触屏设备
US11947782B2 (en) Device, method, and graphical user interface for manipulating workspace views
US10996834B2 (en) Touchscreen apparatus user interface processing method and touchscreen apparatus
US9477390B2 (en) Device and method for resizing user interface content
CN104756060B (zh) 基于手势的光标控制
US8719695B2 (en) Devices, methods, and graphical user interfaces for document manipulation
US8358281B2 (en) Device, method, and graphical user interface for management and manipulation of user interface elements
US8347238B2 (en) Device, method, and graphical user interface for managing user interface content and user interface elements by dynamic snapping of user interface elements to alignment guides
US8957865B2 (en) Device, method, and graphical user interface for manipulating a user interface object
CA2830636C (en) Mobile terminal and object change support method for the same
US8621391B2 (en) Device, method, and computer readable medium for maintaining a selection order in a displayed thumbnail stack of user interface elements acted upon via gestured operations
KR20130052151A (ko) 터치스크린을 구비한 휴대 단말기의 데이터 입력 방법 및 장치
WO2018010316A1 (zh) 桌面页面管理的方法及装置
WO2022242542A1 (zh) 应用图标的管理方法和电子设备
US20160132478A1 (en) Method of displaying memo and device therefor
CN108509138B (zh) 一种任务栏按钮显示的方法及其终端
US11941245B2 (en) Information processing method, storage medium, and electronic device
WO2022247718A1 (zh) 信息选取方法及装置
US10019423B2 (en) Method and apparatus for creating electronic document in mobile terminal
JP2018133108A (ja) 電子端末、及びその制御方法とプログラム
US20220360659A1 (en) Mobile terminal and method for controlling the same
JP6344355B2 (ja) 電子端末、及びその制御方法とプログラム
JP6341171B2 (ja) 電子端末、及びその制御方法とプログラム
CN113076010A (zh) 输入方法、输入装置、电子设备及介质
JP2014053746A (ja) 文字入力装置、文字入力装置の制御方法、制御プログラム、制御プログラムを記録したコンピュータ読み取り可能な記録媒体

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: 13892571

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2013892571

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 14902226

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE