CN103237122B - A kind of short message editing method and device - Google Patents
A kind of short message editing method and device Download PDFInfo
- Publication number
- CN103237122B CN103237122B CN201310109727.9A CN201310109727A CN103237122B CN 103237122 B CN103237122 B CN 103237122B CN 201310109727 A CN201310109727 A CN 201310109727A CN 103237122 B CN103237122 B CN 103237122B
- Authority
- CN
- China
- Prior art keywords
- short message
- character unit
- character
- message editing
- unit
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 239000000284 extract Substances 0.000 abstract description 3
- 238000012217 deletion Methods 0.000 description 5
- 230000037430 deletion Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000000605 extraction Methods 0.000 description 3
- 210000001072 colon Anatomy 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention discloses a kind of short message editing method and device, and short message editing method comprises the operational order that receives user; Under the triggering of described operational order, from note, extract the first character cell according to preset rules, and be filled to short message editing district; Described the first character cell is single character or the character string that is made up of multiple characters. The present invention, by above technical scheme, solves existing short message editing scheme technical problem not easily.
Description
Technical Field
The invention relates to the field of electronic equipment, in particular to a short message editing method and device.
Background
When a terminal, especially a mobile phone, needs to put the content in a short message into a short message editing area, the existing methods mainly include the following steps:
firstly, some contents are copied from the short message, and then a short message editing interface is opened for pasting operation. In this way, the user needs multi-step manual operation, which is not convenient enough. And for the terminal which does not support the touch operation, the operation of selecting the content to be copied from the text of the short message is very inconvenient.
Secondly, clicking a forwarding button in the short message, adopting a mode of forwarding the short message, backing up all the contents of the short message in a short message editing interface, manually deleting irrelevant contents, and keeping the required contents. In this way, all the content of the text of the short message is copied to the short message editing interface, and when the content is large, the operation of deleting irrelevant content is time-consuming and labor-consuming, and when the deletion operation is performed, the user needs to pay attention, and if the content needing to be reserved is deleted, the forwarding operation needs to be performed again.
Therefore, the existing short message editing modes are not convenient enough.
Disclosure of Invention
The invention provides a short message editing method and a short message editing device, which solve the technical problem that the existing short message editing scheme is not convenient enough.
In order to solve the technical problems, the invention adopts the following technical scheme:
a short message editing method comprises the following steps: under the triggering of the operation instruction, extracting a first character unit from the short message according to a preset rule and filling the first character unit into a short message editing area; the first character unit is a single character or a character string consisting of a plurality of characters. Preferably, the operation instruction includes: the user directly replies the command sent by the operation in the received short message.
Preferably, the step of extracting the first character unit from the short message according to the preset rule specifically comprises:
identifying whether a preset second character unit exists in the text of the short message;
and if the first character unit exists, extracting the first character unit positioned behind the second character unit, wherein the second character unit is a single character or a character string consisting of a plurality of characters. Preferably, the second character unit comprises a Chinese character in the short message body: and (4) one of reversion and reversion.
Preferably, the short message editing method further includes: and if so, extracting a fourth character unit which is positioned behind the third character unit and consists of numbers, and filling the fourth character unit into a receiver input box above the short message editing area. Preferably, the third character unit comprises a Chinese character in the short message body: reply to, send to.
A short message editing device comprises: the processing module is used for extracting a first character unit from the short message according to a preset rule under the triggering of the operation instruction and filling the first character unit into the short message editing area; the first character unit is a single character or a character string consisting of a plurality of characters. Preferably, the instruction receiving module is used for receiving an instruction sent by a user to directly perform a reply operation in a received short message.
Preferably, the processing module comprises a first identification module for identifying whether a preset second character unit exists in the text of the short message; a first processing sub-module, which is used for extracting a first character unit positioned behind the second character unit and filling the first character unit into a short message editing area when the identification result of the first identification module is that the second character unit exists; the second character unit is a single character or a character string consisting of a plurality of characters.
Preferably, the processing module further comprises a second recognition module for recognizing whether a preset third character unit exists in the text of the short message, and a second processing submodule for extracting a fourth character unit composed of numbers behind the third character unit and filling the fourth character unit into the addressee input box above the short message editing area when the recognition result of the second recognition module is that the third character unit exists.
The short message editing method and the short message editing device receive an operation instruction of a user, extract a first character unit from a short message according to a preset rule under the triggering of the operation instruction, and fill the first character unit into a short message editing area. The process of putting the content in a short message into the short message editing area is completed, for a user, only an operation instruction needs to be sent to the short message editing device, and other operations are automatically completed by the short message editing device. Compared with the prior art, the method and the device do not need copying and pasting operations, and do not need selective deletion operation from the whole content of the forwarded short message text. Providing sufficient convenience for the user.
Drawings
Fig. 1 is a flowchart of a short message editing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a received short message interface according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of an interface of a short message editing area according to a second embodiment of the present invention;
fig. 4 is a schematic view of a received short message interface according to a third embodiment of the present invention;
fig. 5 is another schematic view of a received short message interface according to a third embodiment of the present invention;
fig. 6 is a schematic diagram of an interface of a short message editing area according to a third embodiment of the present invention;
fig. 7 is a schematic diagram of a short message editing apparatus according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings.
The first embodiment is as follows:
fig. 1 is a flowchart of a short message editing method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
s101, receiving an operation instruction of a user.
Preferably, the operation instruction includes: the user directly replies the command sent by the operation in the received short message. The operation instruction in step S101 is used to trigger the extracting and filling operation of the short message editing apparatus.
S102, under the triggering of the operation instruction, extracting a first character unit from a short message (the short message can be a received short message or a short message which is edited and stored by a user) according to a preset rule, and filling the first character unit into a short message editing area; the first character unit is a single character or a character string consisting of a plurality of characters, and the characters comprise numbers, letters, Chinese characters and/or symbols.
Preferably, the step of extracting the first character unit from the short message according to the preset rule includes: and if so, extracting a first character unit positioned behind the second character unit. The second character unit is a single character or a character string consisting of a plurality of characters, and the characters comprise numbers, letters, Chinese characters and/or symbols. In this embodiment, after the user triggers the operation, the short message editing apparatus starts to identify the second character unit in the short message text, if the second character unit exists in the short message text, the extraction operation is performed, and if the second character unit does not exist in the short message text, the extraction operation is not performed.
Preferably, the step of extracting the first character unit located after the second character unit specifically includes:
extracting a first character unit which is adjacent to a preset second character unit and is positioned behind the second character unit and consists of numbers, letters and/or symbols;
extracting a first character unit which is adjacent to a preset second character unit and is positioned behind the second character unit, wherein the character length of the first character unit reaches a preset upper limit value;
extracting a first character unit which is adjacent to a preset second character unit, is positioned behind the second character unit and is positioned in front of the text control symbol; or,
and extracting a first character unit positioned between the two preset second character units.
Preferably, the second character unit comprises the Chinese characters 'come back' and 'reply' in the short message body. When the short message text is identified to have 'return' or 'reply', a first character unit positioned after the 'return' or 'reply' is extracted, wherein the first character unit represents the content needing to be returned or replied. In this embodiment, when the Chinese punctuation mark is used between the first character unit and the second character unit: when colons are connected, the first character unit is the content between the colons and the first commas, semicolons or periods appearing later; when the left quotation marks in the double quotation marks are used for connection, the first character unit is the content between the left quotation marks and the right quotation marks.
Preferably, after the first character unit is filled in the short message editing area, the method further includes: and receiving a deleting operation instruction of a user, and deleting a part of characters in the first character unit according to the deleting operation instruction. In this embodiment, since the content of extracting the first character unit is controlled by a program, it often does not completely meet the user's expectation, for example, in order to extract as much information as possible, the extracted first character unit may contain unnecessary content such as punctuation marks, and at this time, the user may modify the content, where the modification mainly involves a deletion operation.
Preferably, the short message editing method further comprises: and if so, extracting a fourth character unit which is positioned behind the third character unit and consists of numbers, and filling the fourth character unit into a receiver input box above the short message editing area.
Preferably, the third character unit comprises a Chinese character in the short message body: one of "reply to", "send to", and "send to". The fourth character unit is a character string consisting of numbers after the short message text is 'replied to', 'sent to' and 'sent to', and the character strings are numbers to which the short message to be edited is to be sent, so that after the fourth character unit is extracted, the fourth character unit is filled in an addressee input box above the short message editing area.
The method can also be applied to the short message forwarding process, when a user triggers a short message forwarding instruction, whether the short message forwarding instruction contains keywords such as time, place and personnel is identified, when the keywords exist, the content behind the keywords is extracted, and the content is filled into a short message forwarding editing area.
Example two:
as shown in fig. 2, the received short message interface includes a reply button 21, and the text of the short message includes the following contents: "directly go back to DH #8811 can win 500 credit card credits". When the user views the short message, the user can click or touch the reply button 21, and after the short message editing device receives a corresponding operation instruction, under the triggering of the operation instruction, a first character unit is extracted from the short message according to the following preset rules: and identifying whether the Chinese characters exist in the short message text: if it exists, the first character unit after the Chinese character is extracted. The following are extracted according to this preset rule: DH #8811, the SMS editor fills the content into the SMS edit area 31, and the interface displayed after filling into the SMS edit area 31 is shown in FIG. 3.
In order to add a hint, the extracted content may be "DH #8811 can win 500 credit card credits", and at this time, the user needs to perform a partial deletion operation on the content.
Example three:
if two or more extractable contents meeting the preset rules exist in the short message, for example, a plurality of 'reply' or 'reply' appear in the text of the short message, a next button and a previous button can be additionally arranged on a received short message interface to provide user selection so as to extract a first character unit required by the user.
As shown in fig. 4, the received short message interface includes a reply button 41, and the text of the short message includes the following contents: "reply ED can inquire the current credit available, reply JF can inquire the current credit available, reply ZD can inquire the current bill".
When the user views the short message, the user can click or touch the reply button 41, and after receiving the corresponding operation instruction, the short message editing device extracts the first character unit from the short message according to the following preset rule under the triggering of the operation instruction:
firstly, identifying extractable contents which are adjacent to and behind the 'reply' or 'reply' in the short message and are composed of numbers, letters and/or symbols, and the extractable contents comprise: ED. JF, ZD;
then, prompting the next button 42 and the previous button 43 to the user, as shown in fig. 5;
the user clicks or touches the next button 42 and the previous button 43 to select extraction, and if the user selects to extract the ZD, the ZD is the first character unit extracted; the interface displayed after the ZD is filled in the short message editing area 61 by the short message editing device and filled in the short message editing area 61 is shown in fig. 6.
Example four:
fig. 7 is a schematic diagram of a short message editing apparatus according to an embodiment of the present invention, where the short message editing apparatus 8 includes:
an instruction receiving module 81 for receiving an operation instruction of a user;
the processing module 82 is used for extracting a first character unit from the short message according to a preset rule and filling the first character unit into the short message editing area under the triggering of the operation instruction; the first character unit is a single character or a character string consisting of a plurality of characters.
Further, the instruction receiving module 81 is configured to receive an instruction sent by a user directly performing a reply operation in a received short message.
Further, the processing module 82 includes:
a first identification module 821 for identifying whether a preset second character unit exists in the text of the short message;
a first processing sub-module 822 for extracting the first character unit located behind the second character unit and filling the first character unit to the short message editing area when the recognition result of the first recognition module 821 is that the second character unit exists; the second character unit is a single character or a character string consisting of a plurality of characters.
Further, the processing module 82 further includes:
the second identification module 823 is configured to identify whether a preset third character unit exists in the text of the short message;
and a second processing sub-module 824 for extracting a fourth character unit composed of numbers after the third character unit and filling the fourth character unit into the addressee input box above the short message editing area when the recognition result of the second recognition module 823 is that the third character unit exists.
The invention not only realizes the process of putting the content in a short message into the short message editing area, but also only needs to send an operation instruction to the short message editing device for the user, and other operations are automatically completed by the short message editing device. Compared with the prior art, the method and the device do not need copying and pasting operations, and do not need selective deletion operation from the whole content of the forwarded short message text. Providing sufficient convenience for the user.
The foregoing is a more detailed description of the present invention that is presented in conjunction with specific embodiments, and the practice of the invention is not to be considered limited to those descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.
Claims (10)
1. A short message editing method is characterized by comprising the following steps:
receiving an operation instruction of a user;
under the triggering of the operation instruction, at least one first character unit is extracted from the short message according to a preset rule, if only one first character unit is extracted, the first character unit is filled in the short message editing area, and if a plurality of first character units are extracted, one first character unit is selected according to the selection of a user and filled in the short message editing area; the first character unit is a single character or a character string consisting of a plurality of characters.
2. The short message editing method of claim 1, wherein the operation instruction comprises: the user directly replies the command sent by the operation in the received short message.
3. The short message editing method of claim 1, wherein the step of extracting the first character unit from the short message according to the preset rule specifically comprises:
identifying whether a preset second character unit exists in the text of the short message;
and if the first character unit exists, extracting the first character unit positioned behind the second character unit, wherein the second character unit is a single character or a character string consisting of a plurality of characters.
4. The short message editing method as claimed in claim 3, wherein the second character unit comprises Chinese characters in the short message body: and (4) one of reversion and reversion.
5. The short message editing method as claimed in any one of claims 1 to 4, further comprising:
identifying whether a preset third character unit exists in the text of the short message;
and if the character unit exists, extracting a fourth character unit which is positioned behind the third character unit and consists of numbers, and filling the fourth character unit into the addressee input box above the short message editing area.
6. The short message editing method as claimed in claim 5, wherein the third character unit comprises Chinese characters in the short message body: reply to, send to.
7. A short message editing device is characterized by comprising:
the instruction receiving module is used for receiving an operation instruction of a user;
the processing module is used for extracting at least one first character unit from the short message according to a preset rule under the triggering of the operation instruction, filling the first character unit into the short message editing area if only one first character unit is extracted, and selecting one first character unit to fill the first character unit into the short message editing area according to the selection of a user if a plurality of first character units are extracted; the first character unit is a single character or a character string consisting of a plurality of characters.
8. The apparatus for editing short messages as claimed in claim 7, wherein the instruction receiving module is configured to receive an instruction sent by a user directly performing a reply operation in a received short message.
9. The apparatus for editing short messages according to claim 7, wherein the processing module comprises:
the first identification module is used for identifying whether a preset second character unit exists in the text of the short message;
a first processing sub-module, which is used for extracting a first character unit positioned behind the second character unit and filling the first character unit into a short message editing area when the identification result of the first identification module is that the second character unit exists; the second character unit is a single character or a character string consisting of a plurality of characters.
10. The apparatus for editing short messages according to any one of claims 7 to 9, wherein the processing module further comprises:
the second identification module is used for identifying whether a preset third character unit exists in the text of the short message;
and the second processing submodule is used for extracting a fourth character unit which is positioned behind the third character unit and consists of numbers when the recognition result of the second recognition module is that the third character unit exists, and filling the fourth character unit into the addressee input box above the short message editing area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310109727.9A CN103237122B (en) | 2013-03-29 | 2013-03-29 | A kind of short message editing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310109727.9A CN103237122B (en) | 2013-03-29 | 2013-03-29 | A kind of short message editing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103237122A CN103237122A (en) | 2013-08-07 |
CN103237122B true CN103237122B (en) | 2016-05-04 |
Family
ID=48885137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310109727.9A Active CN103237122B (en) | 2013-03-29 | 2013-03-29 | A kind of short message editing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103237122B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103440094B (en) * | 2013-08-20 | 2016-09-14 | 青岛海信传媒网络技术有限公司 | A kind of message back input prompt method and for the communication terminal that replies message |
CN104182479B (en) * | 2014-08-04 | 2018-11-30 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method and device handling information |
CN104363349A (en) * | 2014-11-24 | 2015-02-18 | 天津三星通信技术研究有限公司 | Short message processing method and portable terminal using same |
CN108520257B (en) * | 2018-04-02 | 2021-07-02 | Oppo广东移动通信有限公司 | Information processing method, device, terminal equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1414806A (en) * | 2001-10-24 | 2003-04-30 | 英业达股份有限公司 | Method of editing short message |
CN101651869A (en) * | 2008-08-12 | 2010-02-17 | 鸿富锦精密工业(深圳)有限公司 | Mobile communication device and advertisement short message service reply method thereof |
CN101902520A (en) * | 2009-05-31 | 2010-12-01 | 中兴通讯股份有限公司 | Mobile terminal and method for transmitting and storing number information in batch |
CN101951577A (en) * | 2010-09-27 | 2011-01-19 | 宇龙计算机通信科技(深圳)有限公司 | Short message processing method and device thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010120988A1 (en) * | 2009-04-16 | 2010-10-21 | Motorola, Inc. | Method and device for providing a predictive text string to a user of an electronic communication device |
-
2013
- 2013-03-29 CN CN201310109727.9A patent/CN103237122B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1414806A (en) * | 2001-10-24 | 2003-04-30 | 英业达股份有限公司 | Method of editing short message |
CN101651869A (en) * | 2008-08-12 | 2010-02-17 | 鸿富锦精密工业(深圳)有限公司 | Mobile communication device and advertisement short message service reply method thereof |
CN101902520A (en) * | 2009-05-31 | 2010-12-01 | 中兴通讯股份有限公司 | Mobile terminal and method for transmitting and storing number information in batch |
CN101951577A (en) * | 2010-09-27 | 2011-01-19 | 宇龙计算机通信科技(深圳)有限公司 | Short message processing method and device thereof |
Also Published As
Publication number | Publication date |
---|---|
CN103237122A (en) | 2013-08-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105955617B (en) | For selecting the gesture of text | |
CN103064584B (en) | Pasting method and device | |
CN104090648B (en) | Data entry method and terminal | |
CN103902740A (en) | Short message authentication code residing method and device | |
CN106484266A (en) | A kind of text handling method and device | |
CN103379212B (en) | Method for rapidly replying message and mobile terminal | |
CN109933322A (en) | A kind of page editing method, apparatus and computer readable storage medium | |
CN103237122B (en) | A kind of short message editing method and device | |
CN103176969A (en) | Method and device for sharing microblogging information | |
CN102999752A (en) | Method and device for quickly identifying local characters in picture and terminal | |
CN101763218A (en) | Input method for handheld equipment | |
CN111490927B (en) | Method, device and equipment for displaying message | |
CN106027785A (en) | Voice processing method and terminal | |
CN105446572A (en) | Text-editing method and device used for screen display device | |
CN110515951A (en) | A kind of BOM standardized method, system and electronic equipment and storage medium | |
CN104199917A (en) | Method and device for translating webpage content and client | |
CN107765966A (en) | Event triggering method and device based on picture, intelligent terminal and storage medium | |
CN104881201B (en) | Data display method and electronic equipment | |
CN105283882A (en) | Production method for portable data carriers | |
CN107066438A (en) | A kind of method for editing text and device, electronic equipment | |
CN104182479B (en) | A kind of method and device handling information | |
CN105898721A (en) | Short message processing method and apparatus | |
CN106648618B (en) | Text information generation method and device for virtual application | |
CN113238686B (en) | Document processing method and device and electronic equipment | |
CN114490754A (en) | Document auditing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |