CN108062290B - Message text processing method and device, electronic equipment and storage medium - Google Patents
Message text processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN108062290B CN108062290B CN201711337940.XA CN201711337940A CN108062290B CN 108062290 B CN108062290 B CN 108062290B CN 201711337940 A CN201711337940 A CN 201711337940A CN 108062290 B CN108062290 B CN 108062290B
- Authority
- CN
- China
- Prior art keywords
- character sequence
- target
- message
- text data
- user
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/06—Message adaptation to terminal or network requirements
- H04L51/066—Format adaptation, e.g. format conversion or compression
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Data Mining & Analysis (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure relates to a message text processing method and device, electronic equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: acquiring text data of a message to be sent; if the text data comprises a character sequence which meets a preset rule, determining that the character sequence is a candidate character sequence, and displaying the candidate character sequence; and processing the candidate character sequence according to the received operation to obtain a target character sequence, and sending a target message containing the target character sequence. The present disclosure can reduce resources required for recognition operations.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a message text processing method, a message text processing apparatus, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of communication technology, people increasingly use various communication software to send messages. When displaying a message received by a user, in order to facilitate the user to quickly distinguish specific character sequences such as URLs (Uniform Resource locators) from a message text, communication software usually identifies the specific character sequences and sets links according to preset rules after receiving the message, and performs distinctive display at the same time. For example, after the URL character sequence is identified, a link associated with the browser may be set for the URL character sequence and displayed in blue, underlined, etc.
However, the accuracy of the current URL character sequence recognition method is limited, and the fixed URL character sequence recognition rule cannot cover all recognition scenes.
Accordingly, there is a need to provide a solution that addresses at least one or more of the above-mentioned problems.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a message text processing method, a message text processing apparatus, an electronic device, and a computer-readable storage medium, which overcome one or more of the problems due to the limitations and disadvantages of the related art, at least to some extent.
According to a first aspect of the present disclosure, there is provided a message text processing method, including:
acquiring text data of a message to be sent;
if the text data comprises a character sequence which meets a preset rule, determining that the character sequence is a candidate character sequence, and displaying the candidate character sequence;
and processing the candidate character sequence according to the received operation to obtain a target character sequence, and sending a target message containing the target character sequence.
In an exemplary embodiment of the present disclosure, the method further comprises:
and distinctively displaying the target character sequence in the target message after transmission.
In an exemplary embodiment of the present disclosure, processing the candidate character sequence to obtain a target character sequence according to the received operation includes:
if receiving a modification operation, modifying the candidate character sequence; and
and if the confirmation operation is received, taking the current candidate character sequence as the target character sequence.
In an exemplary embodiment of the disclosure, after obtaining the target character sequence, the method further includes:
adding a preset mark to the target character sequence;
and acquiring the target character sequence according to the preset mark and displaying the target character sequence distinctively.
In an exemplary embodiment of the present disclosure, the distinctively displaying the target character sequence includes:
and distinctively displaying the target character sequence by one or more of underlining, setting to a preset color, setting to a preset font and setting to a preset size.
In an exemplary embodiment of the present disclosure, acquiring text data of a message to be sent includes:
monitoring the input state of a user;
if the input state of the user is changed in a preset way, acquiring text data in the message to be sent; or
And if the operation of sending the message to be sent is received, acquiring the text data of the message to be sent.
In an exemplary embodiment of the present disclosure, the target character sequence includes one or more of a uniform resource locator, an email address, a phone number, and a network social account number.
According to a second aspect of the present disclosure, there is provided a message text processing apparatus including:
the text data acquisition module is used for acquiring text data of a message to be sent;
the auxiliary control module is used for determining the character sequence as a candidate character sequence and displaying the candidate character sequence when the text data comprises the character sequence which meets a preset rule;
and the candidate character sequence processing module is used for processing the candidate character sequence according to the received operation to obtain a target character sequence and sending a target message containing the target character sequence.
According to a third aspect of the present disclosure, there is provided an electronic device comprising
A processor; and
a memory having computer readable instructions stored thereon which, when executed by the processor, implement a method according to any of the above.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method according to any one of the above.
In the message text processing method in the exemplary embodiment of the disclosure, when the text data of the message to be sent includes character sequences meeting the preset rule, the character sequences can be determined as candidate character sequences and displayed; and meanwhile, processing the candidate character sequence according to the received operation to obtain a target character sequence, namely adjusting the recognition result by means of the operation input by the user to obtain a correct target character sequence. On one hand, the target character sequence in the target message sent by the user can be the correct character sequence expected to be displayed by the sender, so that the information transmission efficiency is improved; on the other hand, as the target character sequence is accurate, when the user uses the link of the target character sequence again, other related adjustment operations are not needed, and the operation time is saved; on the other hand, compared with the complex automatic identification rule in the prior art, the method can also reduce the resources required by the operation.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
Fig. 1 illustrates a flow chart of a message text processing method according to an exemplary embodiment of the present disclosure;
2A-2C schematically illustrate an auxiliary control intent in accordance with an exemplary embodiment of the present disclosure;
FIG. 3 shows a schematic block diagram of a message text processing apparatus according to an example embodiment of the present disclosure;
FIG. 4 schematically illustrates a block diagram of an electronic device according to an exemplary embodiment of the present disclosure; and
fig. 5 schematically illustrates a schematic diagram of a computer-readable storage medium according to an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the embodiments of the disclosure can be practiced without one or more of the specific details, or with other methods, components, materials, devices, steps, and so forth. In other instances, well-known structures, methods, devices, implementations, materials, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in the form of software, or in one or more software-hardened modules, or in different networks and/or processor devices and/or microcontroller devices.
The URL character sequence recognition method in the related technology has limited precision, and the fixed URL character sequence recognition rule cannot cover all recognition scenes. For example, when the URL character sequence itself is complex, for example, when there are special characters such as chinese characters, semicolons, brackets, etc. in the URL character sequence, or when the URL character sequence is connected with characters of other non-URL character sequences, it is difficult for the existing recognition method to perform accurate recognition; for example, for the URL character sequence "https:// baike.baidu.com/item/high sword cloud/13779460" included in the message, it is likely that the recognition result is "https:// baike.baidu.com/item/", eventually resulting in a difference between the recognized URL character sequence and the content that the user wants to deliver.
Based on this, in the present exemplary embodiment, first, a message text processing method is provided, which can be applied to a terminal device; the terminal device may be various electronic devices such as a mobile phone, a computer, and a PDA. Referring to fig. 1, the message text processing method may include the steps of:
s110, acquiring text data of a message to be sent;
s120, if the text data comprises a character sequence which accords with a preset rule, determining that the character sequence is a candidate character sequence, and displaying the candidate character sequence;
s130, processing the candidate character sequence according to the received operation to obtain a target character sequence; and
step S140, sending a target message containing the target character sequence.
According to the message text processing method in the exemplary embodiment, on one hand, the target character sequence in the target message sent by the user can be the correct character sequence expected to be shown by the sender, so that the information transmission efficiency is improved; on the other hand, as the target character sequence is accurate, when the user uses the link of the target character sequence again, other related adjustment operations are not needed, and the operation time is saved; on the other hand, compared with the complex automatic identification rule in the prior art, the method can also reduce the resources required by the operation.
Next, a message text processing method in the present exemplary embodiment will be further described.
In step S110, text data of a message to be transmitted may be acquired.
In this exemplary embodiment, the user may generate the message to be sent through a communication application such as an independent communication application (e.g., WeChat, QQ, etc.), an embedded communication application (e.g., a communication application built in a game application), or a short message editor. The communication application can acquire the input text data and identify the input text data in the process of generating the message content to be sent by the user; or acquiring all text data after the content of the message to be sent is generated, and identifying all text data. For example:
acquiring the text data of the message to be transmitted may include: monitoring the input state of a user; and when the input state of the user is changed in a preset way, acquiring the text data in the message to be sent. For example, in the input process of the user, a pause exceeding a preset time length is monitored; or, in the input process of the user, monitoring that the English state is switched to the English state for input, and then the Chinese state is switched back for input; or, in the user input process, it may be considered that the input state of the user is changed by a preset value when it is monitored that the user performs the line feed operation and the like. When the input state of the user is changed in a preset manner, all text data currently input by the user may be obtained, or text content input by the user may be divided into sentences to obtain text data in a sentence that is input recently, and the like.
Acquiring text data of a message to be sent may also include: and when receiving a preset trigger operation, acquiring text data of a message to be sent, and identifying the text data. For example, the triggering operation may be an operation of sending the message to be sent. When the user performs the operation of sending the message to be sent, it means that the content of the message to be sent has been generated, and all the text data can be acquired at one time. Of course, the trigger operation may also be other operations, such as saving the input content as a draft.
In step S120, if the text data includes a character sequence that meets a preset rule, the character sequence is determined to be a candidate character sequence, and the candidate character sequence is presented.
The text data may be identified after the text data is obtained. The target character sequence in the present exemplary embodiment is a sequence that conforms to a certain rule. For example, a URL (Uniform Resource Locator) character sequence starts with http, https, ftp, etc., or ends with com,. cn,. co, etc., or includes a top-level domain name (e.g., www.google.com), or a numeric ip address (e.g., 218.189.25.175), or has "\\" following the domain name, or includes other special characters, etc. E.g., mailbox addresses each include "@", and are typically a letter/number sequence. For example, telephone numbers of respective countries are usually numeric characters and have a prescribed length or the like. According to these rules, the text data can be preliminarily recognized. Of course, in other exemplary embodiments of the present disclosure, the target character sequence may also be other types of character sequences such as a social network account (e.g., a QQ account), and correspondingly, the target character sequences also have their corresponding recognition rules, which are not described herein again.
And acquiring recognition results recognized according to the various preset rules, and if the text data is recognized to comprise character sequences conforming to the preset rules, taking the character sequences conforming to the preset rules as candidate character sequences. Referring to fig. 2A to 2C, in the present exemplary embodiment, the candidate character sequence may be presented through an auxiliary control 310; the auxiliary control 310 may be a pop-up prompt window, that is, after the recognition result is obtained, a prompt window may be popped up immediately to display the recognition result, such as "zh. However, it will be readily understood by those skilled in the art that in other exemplary embodiments of the present disclosure, the auxiliary control 310 may take other forms, such as a control disposed in a fixed area; meanwhile, in addition to presenting the candidate character sequence, the type of the candidate character sequence may be presented; such as: "URL", etc., which are not particularly limited in this exemplary embodiment. Besides, the candidate character sequence may be presented in other manners besides using the auxiliary control, for example, the candidate character sequence may be underlined, set to a preset color, set to a preset font, set to a preset size, or set to flash, so as to achieve a distinctive presentation of the candidate character sequence; that is, it is within the scope of the present disclosure as long as the user can know the display mode of the identified candidate character sequence.
In step S130, the candidate character sequence may be processed according to the received operation to obtain a target character sequence.
With continued reference to what is shown in fig. 2A-2C, in this example embodiment, the steps may include: modifying the candidate character sequence according to the modification operation received by the auxiliary control 310 to obtain the target character sequence; and taking the candidate character sequence as the target character sequence according to the confirmation operation received by the auxiliary control 310. For example:
characters may be added to or removed from the candidate character sequence by dragging a virtual adjustment handle in secondary control 310. For example, as shown in FIG. 2A, the candidate character sequence is "zh.wikipedia.org/wiki/", dragging the virtual throttle handle to the left by 8 character positions may add the character "https:/", to the head of the candidate character sequence, changing the candidate character sequence to "https:// zh.wikipedia.org/wiki/" as shown in FIG. 2B; the virtual adjustment handle can also be dragged to the right at the position of 7 characters, and the character ' tropical storm unala ' can be added to the tail of the candidate character sequence, so that the candidate character sequence is further changed into ' https:// zh. After the candidate character sequence is adjusted, a confirmation button can be clicked, and the modified candidate character sequence is determined to be the target character sequence expected by the sender. If the candidate character sequence is the target character sequence desired by the sender without modification, the user can directly click the confirm button.
In the above exemplary embodiment, modifying the character sequence included in the candidate character sequence includes adding characters to the candidate character sequence and removing characters from the candidate character sequence; however, in other exemplary embodiments of the present disclosure, modifying the character sequence included in the candidate character sequence may further include modifying a specific character in the candidate character sequence, and the like, which is not particularly limited in this exemplary embodiment. In addition, the modification by dragging the virtual adjustment handle in the auxiliary control is only an interactive mode, and the modification of the character sequence is performed by other interactive modes, for example, when the auxiliary control is not provided, characters can be directly added or subtracted from the candidate character sequence by manual input or deletion, and the like, which also belongs to the protection scope of the present disclosure.
In step S140, a target message containing the target character sequence is transmitted.
In this exemplary embodiment, after obtaining the target character sequence, the target character sequence in the target message after being sent may be distinctively displayed. For example, for the sending end, after the sending of the target message is completed, the target message is presented in the message record, and the target character sequence in the target message can be distinctively displayed, so that the sender can operate or view the link corresponding to the target character sequence again; for the receiving end, after receiving the target message, the target character sequence in the target message may be distinctively displayed, so that the receiver can conveniently operate or view the link corresponding to the target character sequence. In this exemplary embodiment, one or more of color setting, underlining, bolding, special size setting (such as font size, etc.), special font setting (such as italics, etc.), flashing setting, etc. may be performed on the target character sequence, so that the target character sequence and other common text data are displayed distinctively, thereby facilitating the receiving end to recognize or perform relevant operations such as clicking.
In this exemplary embodiment, in addition to displaying the target character sequence distinctively, a link may be provided for the target character sequence. For example, a link may be set for the identified target character sequence such as the URL "https:// baike. baidu. co. m/item/high-sword cloud/13779460", the telephone number "010-. Generally, setting a link means that two or more programs are linked together so that when a user selects a corresponding link, the terminal automatically implements the link information by opening the corresponding program. For example, a link of the URL "https:// baike.baidu.co m/item/high sword cloud/13779460" allows a user to open a browser to access a corresponding web page when selecting a character sequence of the link; the linking of the telephone numbers "010-1234-5678" allows the user to open the telephone application to automatically dial the telephone number when selecting the linked character sequence.
Further, in this exemplary embodiment, after the target character sequence is obtained, a preset mark may be added to the target character sequence, so that the receiving end identifies the target character sequence according to the preset mark when receiving the message to be sent, and the operation resources required for identification are reduced.
For example: after a target character sequence is obtained, adding a preset mark to the target character sequence; for example, "[ can be added at the head of the target character sequence, and" ] can be added at the tail of the target character sequence, so that the receiving end can directly read the character sequence between "[ and" ] as the target character sequence when receiving the message to be sent. For another example, a start mark and the length of the target character sequence may also be added to the head of the target character sequence, so that when the receiving end receives the message to be sent, the receiving end may directly read the character sequence as the target character sequence according to the start point of the target character sequence and the length of the target character sequence. It should be noted that, in the present exemplary embodiment, the preset mark is invisible to both the sender and the receiver, that is, the text data still normally seen by the user. In addition, after the transmitting end obtains one target character sequence, a preset mark can be added to the target character sequence; before the message to be sent is sent, preset marks may also be uniformly added to all target character sequences, which is not particularly limited in this exemplary embodiment. In addition, in order to avoid causing trouble to the user, the preset mark can be removed after the target character sequence is identified.
Of course, it is easily understood by those skilled in the art that in other exemplary embodiments of the present disclosure, the target character sequence may also be marked in other ways, such as by specifically encoding the target character sequence, and the like, which is not specifically limited in this exemplary embodiment.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Further, in the present exemplary embodiment, a message text processing apparatus is also provided. Referring to fig. 3, the message text processing apparatus 300 may include: a text data acquisition module 310, an auxiliary control module 320, a candidate character sequence processing module 330, and a message sending module 340. Wherein:
the text data obtaining module 310 may be configured to obtain text data of a message to be sent;
the auxiliary control module 320 may be configured to determine a character sequence as a candidate character sequence and display the candidate character sequence when the text data includes the character sequence meeting a preset rule;
the candidate character sequence processing module 330 may be configured to process the candidate character sequence according to the received operation to obtain a target character sequence;
the message sending module 340 may be configured to send a target message containing the target sequence of characters.
The details of each virtual object transfer device module are already described in detail in the corresponding virtual object transfer method, and therefore are not described herein again.
It should be noted that although several modules or units of the message text processing apparatus 600 are mentioned in the above detailed description, such division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 400 according to such an embodiment of the invention is described below with reference to fig. 4. The electronic device 400 shown in fig. 4 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present invention.
As shown in fig. 4, electronic device 400 is embodied in the form of a general purpose computing device. The components of electronic device 400 may include, but are not limited to: the at least one processing unit 410, the at least one memory unit 420, a bus 430 connecting different system components (including the memory unit 420 and the processing unit 410), and a display unit 440.
Wherein the storage unit stores program code that is executable by the processing unit 410 to cause the processing unit 410 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification.
The storage unit 420 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)4201 and/or a cache memory unit 4202, and may further include a read only memory unit (ROM) 4203.
The storage unit 420 may also include a program/utility 4204 having a set (at least one) of program modules 4205, such program modules 4205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 400 may also communicate with one or more external devices 470 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 400, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 400 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 450. Also, the electronic device 400 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 460. As shown, the network adapter 440 communicates with the other modules of the electronic device 400 over a bus 430. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above-mentioned "exemplary methods" section of the present description, when said program product is run on the terminal device.
Referring to fig. 5, a program product 500 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.
Claims (8)
1. A method for processing message text, comprising:
acquiring text data to be sent;
if the text data comprises a character sequence which meets a preset rule, determining that the character sequence is a candidate character sequence, and displaying the candidate character sequence;
processing the candidate character sequence according to the received operation to obtain a target character sequence, and sending a target message containing the target character sequence;
acquiring text data to be sent, including: monitoring the input state of a user; if the input state of the user is changed in a preset way, the text content input by the user is divided into sentences, and the text data in the latest input sentence is obtained; if a pause exceeding a preset time length is monitored, or if a state that the user switches to an English state for input and then switches back to a Chinese state for input is monitored, or line feed operation is monitored, judging that the input state of the user is changed in a preset mode;
the method further comprises the following steps:
setting a link for a target character sequence in the target message, and opening a corresponding program to realize the link when a user selects the character sequence corresponding to the link;
wherein, according to the received operation, processing the candidate character sequence to obtain a target character sequence comprises:
if receiving a modification operation, modifying the candidate character sequence; and
and if the confirmation operation is received, taking the current candidate character sequence as the target character sequence.
2. The message text processing method according to claim 1, characterized in that the method further comprises:
and distinctively displaying the target character sequence in the target message after transmission.
3. The method of claim 2, wherein after obtaining the target sequence of characters, the method further comprises:
adding a preset mark to the target character sequence;
and acquiring the target character sequence according to the preset mark and displaying the target character sequence distinctively.
4. The message text processing method according to claim 2, wherein differentially displaying the target character sequence in the target message after transmission comprises:
and distinctively displaying the target character sequence by one or more of underlining, setting to a preset color, setting to a preset font and setting to a preset size.
5. The message text processing method according to any one of claims 1 to 4, wherein the target character sequence comprises one or more of a uniform resource locator, an email address, a telephone number and a network social account number.
6. A message text processing apparatus, comprising:
the text data acquisition module is used for acquiring text data to be sent;
the auxiliary control module is used for determining the character sequence as a candidate character sequence and displaying the candidate character sequence when the text data comprises the character sequence which meets a preset rule;
the candidate character sequence processing module is used for processing the candidate character sequence according to the received operation to obtain a target character sequence;
the message sending module is used for sending a target message containing the target character sequence;
the device is also used for setting a link for a target character sequence in the target message, and when a user selects the character sequence corresponding to the link, a corresponding program is opened to realize the link;
the text data acquisition module acquires text data to be sent, and the text data acquisition module comprises the following steps: monitoring the input state of a user; if the input state of the user is changed in a preset way, the text content input by the user is divided into sentences, and the text data in the latest input sentence is obtained; if a pause exceeding a preset time length is monitored, or if a state that the user switches to an English state for input and then switches back to a Chinese state for input is monitored, or line feed operation is monitored, judging that the input state of the user is changed in a preset mode;
the processing module of the candidate character sequence processes the candidate character sequence according to the received operation to obtain the target character sequence comprises:
if receiving a modification operation, modifying the candidate character sequence; and
and if the confirmation operation is received, taking the current candidate character sequence as the target character sequence.
7. An electronic device, comprising
A processor; and
a memory having computer readable instructions stored thereon which, when executed by the processor, implement the method of any of claims 1 to 5.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711337940.XA CN108062290B (en) | 2017-12-14 | 2017-12-14 | Message text processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711337940.XA CN108062290B (en) | 2017-12-14 | 2017-12-14 | Message text processing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108062290A CN108062290A (en) | 2018-05-22 |
CN108062290B true CN108062290B (en) | 2021-12-21 |
Family
ID=62138805
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711337940.XA Active CN108062290B (en) | 2017-12-14 | 2017-12-14 | Message text processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108062290B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112230809B (en) * | 2019-07-15 | 2023-08-18 | 腾讯科技(深圳)有限公司 | Method, device and storage medium for selecting computer program codes |
CN111753548B (en) * | 2020-03-04 | 2024-09-20 | 北京沃东天骏信息技术有限公司 | Information acquisition method and device, computer storage medium and electronic equipment |
CN111401001B (en) * | 2020-03-13 | 2023-05-26 | 浙江学海教育科技有限公司 | TextView linear scaling method, textView linear scaling device, textView linear scaling equipment and TextView linear scaling medium |
CN111539410B (en) * | 2020-04-16 | 2022-09-06 | 深圳市商汤科技有限公司 | Character recognition method and device, electronic equipment and storage medium |
CN111596821B (en) * | 2020-04-29 | 2023-09-26 | 腾讯科技(深圳)有限公司 | Message display method, device, computer equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101741756A (en) * | 2008-11-19 | 2010-06-16 | 中兴通讯股份有限公司 | Method and system for converting special character strings in instant communication text message |
CN101072168B (en) * | 2007-06-22 | 2011-11-02 | 腾讯科技(深圳)有限公司 | Multi-language instant communication terminal and its system and method |
CN102469121A (en) * | 2010-11-05 | 2012-05-23 | 北京创新方舟科技有限公司 | Method and equipment for providing communication information for mobile users |
CN102667753A (en) * | 2009-12-23 | 2012-09-12 | 诺基亚公司 | Method and apparatus for facilitating text editing and related computer program product and computer readable medium |
CN103049206A (en) * | 2012-12-21 | 2013-04-17 | 东莞宇龙通信科技有限公司 | Text editing method and communication terminal |
CN105353948A (en) * | 2015-09-25 | 2016-02-24 | 维沃移动通信有限公司 | Information processing method and apparatus |
CN105897995A (en) * | 2016-05-31 | 2016-08-24 | 努比亚技术有限公司 | Contact person information adding method and apparatus |
CN106656748A (en) * | 2016-11-15 | 2017-05-10 | 北京三快在线科技有限公司 | Information display method and device, and electronic equipment |
CN106951893A (en) * | 2017-05-08 | 2017-07-14 | 奇酷互联网络科技(深圳)有限公司 | Text information acquisition methods, device and mobile terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7962466B2 (en) * | 2006-01-23 | 2011-06-14 | Chacha Search, Inc | Automated tool for human assisted mining and capturing of precise results |
US20170185612A1 (en) * | 2015-12-29 | 2017-06-29 | Successfactors, Inc. | Dynamically designing web pages |
-
2017
- 2017-12-14 CN CN201711337940.XA patent/CN108062290B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101072168B (en) * | 2007-06-22 | 2011-11-02 | 腾讯科技(深圳)有限公司 | Multi-language instant communication terminal and its system and method |
CN101741756A (en) * | 2008-11-19 | 2010-06-16 | 中兴通讯股份有限公司 | Method and system for converting special character strings in instant communication text message |
CN102667753A (en) * | 2009-12-23 | 2012-09-12 | 诺基亚公司 | Method and apparatus for facilitating text editing and related computer program product and computer readable medium |
CN102469121A (en) * | 2010-11-05 | 2012-05-23 | 北京创新方舟科技有限公司 | Method and equipment for providing communication information for mobile users |
CN103049206A (en) * | 2012-12-21 | 2013-04-17 | 东莞宇龙通信科技有限公司 | Text editing method and communication terminal |
CN105353948A (en) * | 2015-09-25 | 2016-02-24 | 维沃移动通信有限公司 | Information processing method and apparatus |
CN105897995A (en) * | 2016-05-31 | 2016-08-24 | 努比亚技术有限公司 | Contact person information adding method and apparatus |
CN106656748A (en) * | 2016-11-15 | 2017-05-10 | 北京三快在线科技有限公司 | Information display method and device, and electronic equipment |
CN106951893A (en) * | 2017-05-08 | 2017-07-14 | 奇酷互联网络科技(深圳)有限公司 | Text information acquisition methods, device and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN108062290A (en) | 2018-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108062290B (en) | Message text processing method and device, electronic equipment and storage medium | |
US11782581B2 (en) | Display control method and device, electronic device and storage medium | |
EP2252944B1 (en) | Universal language input | |
US10613717B2 (en) | Reproducing state of source environment when image was screen captured on a different computing device using resource location, resource navigation and positional metadata embedded in image | |
US20090048821A1 (en) | Mobile language interpreter with text to speech | |
US20170083495A1 (en) | Method for Modifying Webpage and Apparatus for Modifying Webpage | |
US11907316B2 (en) | Processor-implemented method, computing system and computer program for invoking a search | |
CN109360557A (en) | The method, apparatus and computer equipment of voice control application program | |
US10699066B2 (en) | Identifying and mapping emojis | |
CN110545236A (en) | Instant messaging message modification method and device, storage medium and electronic equipment | |
CN113094143B (en) | Cross-application message sending method and device, electronic equipment and readable storage medium | |
CN105635444A (en) | Contact person information sharing method and terminal | |
US20170346938A1 (en) | Sent Text Correction Feature | |
CN114449327B (en) | Video clip sharing method and device, electronic equipment and readable storage medium | |
CN106055721A (en) | Accessible webpage processing method and relevant equipment | |
US20160147718A1 (en) | Method for Referring to Specific Content on a Web Page and Web Browsing System | |
CN104363349A (en) | Short message processing method and portable terminal using same | |
CN112163432A (en) | Translation method, translation device and electronic equipment | |
CN113626441A (en) | Text management method, device and equipment based on scanning equipment and storage medium | |
CN110377888B (en) | HTML-based manuscript auditing editor real-time trace marking method and device | |
CN111010335A (en) | Chat expression sending method and device, electronic equipment and medium | |
CN113079086B (en) | Message transmission method, message transmission device, electronic device, and storage medium | |
US10841263B2 (en) | System and method for message composition buffers | |
CN114022300A (en) | Social dynamic information publishing method and device, storage medium and electronic equipment | |
KR20190072177A (en) | User terminal device and method for providing chat rooms list |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |