CN102263851A - Message conversion method - Google Patents
Message conversion method Download PDFInfo
- Publication number
- CN102263851A CN102263851A CN2010101948709A CN201010194870A CN102263851A CN 102263851 A CN102263851 A CN 102263851A CN 2010101948709 A CN2010101948709 A CN 2010101948709A CN 201010194870 A CN201010194870 A CN 201010194870A CN 102263851 A CN102263851 A CN 102263851A
- Authority
- CN
- China
- Prior art keywords
- message
- template
- keyword
- conversion method
- source template
- 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.)
- Pending
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a message conversion method. The method is used for converting a first message transmitted by a transmitting party into a second message suitable for being received by a receiving party, and comprises the following steps of: step 1, providing at least one message template supportable to the receiving party; step 2, parsing out a keyword from the received first message; step 3, matching the keyword with the message template; step 4, judging whether the keyword is matched up to the message template; step 5, if the keyword is matched with the message template, filling the keyword in the matched message template, and packaging the keyword and the message template into the second message. The method can package and modify the message according to different service types, different platforms and different wishes of users, so that the content of the message can be correspondingly represented on different platforms.
Description
Technical field
The present invention relates to a kind of Message Processing technology, particularly relate to a kind of message conversion method.
Background technology
Owing to characteristics such as quick and easy, economy, content abundant expression forms, message communicating has become the communication mode that the present network user generally uses.Traditional message communicating comprises: short message communication, multimedia message, Email, SNS (Social Networking Services, social network services) website short message communication etc., the communication mode that is adopted is normally based on identical platform, for example: mobile phone to mobile phone short message communication, Email to Email communication, SNS website short message communication, be that mobile phone sends the mobile phone reception, and can not send the Email reception by mobile phone.Even have the technology of cross-platform reception, also be only limited to the direct reception and the demonstration of the message that transmit leg is sent, and do not consider that different terminals needs different demonstrations.Like this, if when having the unsupported message content of recipient in the message that transmit leg sends, this message content just can't correct identification and the demonstration of the side's of being received terminal, bring very big inconvenience for recipient user, if this message content outbalance brings certain loss also can for recipient user.
Summary of the invention
In view of this, the present invention proposes a kind of message conversion method, is to be suitable for the message that the recipient receives with the message conversion that transmit leg is sent.
The object of the invention to solve the technical problems realizes by the following technical solutions.According to a kind of message conversion method that the present invention proposes, being used for first message conversion that transmit leg sends is to be suitable for second message that the recipient receives, and may further comprise the steps: step S1: the source template that provides at least a recipient to support; Step S2: from described first message that receives, parse keyword; Step S3: described keyword and described source template are mated; Step S4: judge whether to match described source template; Step S5:, then described keyword is filled in the source template of coupling, and is packaged into described second message if match described source template.
The object of the invention to solve the technical problems also can be applied to the following technical measures to achieve further.
Aforesaid message conversion method is among the step S4, if do not match described source template, then execution in step S6: directly export described first message.
Also comprise step S1A before the aforesaid message conversion method, described step S2: judge in described first message that receives whether comprise sensitive word, if then abandon described first message; If not, execution in step S2 then.
Aforesaid message conversion method, described first message are a kind of in SMS, Email or the social network services SNS website short message; Described second message is the another kind in SMS, Email or the SNS website short message.
Aforesaid message conversion method, described source template comprise that character replacement template, regular expression are replaced template and/or HTML replaces template.
Aforesaid message conversion method among the described step S3, mates described keyword and described source template according to first and second type of message, transmit leg and recipient's user type, transmission and receiving terminal type and/or time parameter.
As shown from the above technical solution, the present invention has following beneficial effect: the present invention can encapsulate and revise message according to different types of service, different platform and user intention, its content is had accordingly at different platforms represent.
With reference to the accompanying drawing description of a preferred embodiment, above-mentioned and other purpose of the present invention, feature and advantage will be more obvious by following.
Description of drawings
Fig. 1 is the flow chart of message conversion method one embodiment of the present invention.
Embodiment
To describe specific embodiments of the invention in detail below.Should be noted that the embodiments described herein only is used to illustrate, be not limited to the present invention.
The message conversion method that the present invention proposes, being used for first message conversion that transmit leg sends is to be suitable for second message that the recipient receives, and sees also shown in Figure 1ly, it is the flow chart of message conversion method one embodiment of the present invention.This method may further comprise the steps:
Step S1: the source template that provides at least a recipient to support;
Source template can comprise that character replacement template of the prior art, regular expression are replaced template and/or HTML replaces template etc., can fill message content in this source template, just can become after the filling to be suitable for second message that the recipient shows after packing again.
Step S2: parse keyword from first message that receives, the keyword here comprises key words and sentence.
For example, it is vividly attractive in appearance to be generally the demonstration that makes message, message box as the SNS user of transmit leg can be provided with background, Message-text can be shown as multiple fonts, time special efficacy or have innervation etc., perhaps the Email user's use as transmit leg has the letter paper of aesthetic feeling as text background, and as recipient's cellphone subscriber, the demonstration of its message box and Message-text is comparatively single usually, obviously, the full content of first message that can not be directly above-mentioned SNS user or Email user be sent sends and is shown in the recipient, gets final product and only need that the content of text in first message is offered the recipient.Therefore, when SNS user when the cellphone subscriber sends first message, need the keyword in first message is parsed, handle and then become and be suitable for second message that the recipient receives to offer subsequent step.
Step S3: the keyword and all source templates that parse among the step S2 are mated;
Here, can be according to coupling corresponding template such as first and second type of message, transmit leg and recipient's user type (for example cellphone subscriber, SNS user), transmission and receiving terminal type (for example mobile phone, PC), time parameters.
Need to prove, template also is to have platform adaptive, replace template as character replacement template, regular expression and be fit to all platforms, it is SNS user or Email user that but HTML replacement template only is suitable for receiving terminal, and be unsuitable for receiving terminal is the SMS user, therefore, when the cellphone subscriber when SNS user or Email user send message, keyword and the HTML that parses can be replaced template matches; And when SNS user or Email user when the cellphone subscriber sends message, keyword and the HTML that parses can not be replaced template matches.
In addition, can be the pre-setting priority of each template according to different user types, like this, when the keyword that parses can be complementary with a plurality of templates, can select template according to the height of priority.
Step S4: judge whether to match source template;
Step S5:, then keyword is filled in the source template of coupling, and is packaged into second message if match source template.
Can realizing of template filling and message packing by template regular expression filling technique, template character string replacement technology or template HTML engine template filling technique.After forming second message by step S5, just can send to the recipient.
In step S4, if do not match described source template, but execution in step S6 then: directly export first message.
Preferably, also comprise step S1A before the step S2: judge in first message that receives whether comprise sensitive word, if then abandon described first message; If not, execution in step S2 then.
In the present embodiment, first message is a kind of in SMS, Email or the social network services SNS website short message; Second message is the another kind in SMS, Email or the SNS website short message.
Below provide a specific embodiment of the present invention.
As SNS user A morning of transmit leg sending content to the cellphone subscriber B as the recipient is that " Xiao Wang, you are good! " first message, the message box of this first message is provided with background, Message-text is shown as the font of certain overstriking and has the time special efficacy, server is received keyword " Xiao Wang " and " you are good " that parses after this first message wherein; Afterwards, the keyword root that parses user type and the time parameter (time parameter in the present embodiment is " morning ") according to the recipient mated with source template, the source template that matches is for " good morning! $ (name) ", this source template is the higher character string template of priority; Like this, just the keyword that parses from first message can be inserted in this source template, " good morning to obtain second message again after packing! Xiao Wang " and send to recipient B.
The present invention can encapsulate and revise message according to different types of service, different platform and user intention, its content is had accordingly at different platforms represent.
Though described the present invention with reference to several exemplary embodiments, should be appreciated that used term is explanation and exemplary and nonrestrictive term.The spirit or the essence that do not break away from invention because the present invention can specifically implement in a variety of forms, so be to be understood that, the foregoing description is not limited to any aforesaid details, and should be in the spirit and scope that claim limited of enclosing explain widely, therefore fall into whole variations in claim or its equivalent scope and remodeling and all should be the claim of enclosing and contain.
Claims (6)
1. a message conversion method is characterized in that, being used for first message conversion that transmit leg sends is to be suitable for second message that the recipient receives, and may further comprise the steps:
Step S1: the source template that provides at least a recipient to support;
Step S2: from described first message that receives, parse keyword;
Step S3: described keyword and described source template are mated;
Step S4: judge whether to match described source template;
Step S5:, then described keyword is filled in the source template of coupling, and is packaged into described second message if match described source template.
2. message conversion method according to claim 1 is characterized in that, among the described step S4, if do not match described source template, then execution in step S6: export described first message.
3. message conversion method according to claim 1 is characterized in that, also comprises step S1A before the described step S2: judge in described first message that receives whether comprise sensitive word, if then abandon described first message; If not, execution in step S2 then.
4. message conversion method according to claim 1 is characterized in that, described first message is a kind of in SMS, Email or the social network services SNS website short message; Described second message is the another kind in SMS, Email or the SNS website short message.
5. message conversion method according to claim 1 is characterized in that, described source template comprises that character replacement template, regular expression are replaced template and/or HTML replaces template.
6. message conversion method according to claim 1, it is characterized in that, among the described step S3, described keyword and described source template are mated according to first and second type of message, transmit leg and recipient's user type, transmission and receiving terminal type and/or time parameter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010101948709A CN102263851A (en) | 2010-05-31 | 2010-05-31 | Message conversion method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010101948709A CN102263851A (en) | 2010-05-31 | 2010-05-31 | Message conversion method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102263851A true CN102263851A (en) | 2011-11-30 |
Family
ID=45010297
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010101948709A Pending CN102263851A (en) | 2010-05-31 | 2010-05-31 | Message conversion method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102263851A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973461A (en) * | 2013-02-06 | 2014-08-06 | 阿里巴巴集团控股有限公司 | Notification message pushing method and message server |
CN104125140A (en) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Message sending method and message sending device |
CN104618875A (en) * | 2015-02-06 | 2015-05-13 | 掌赢信息科技(上海)有限公司 | Message sending method and electronic device |
CN108897728A (en) * | 2018-06-27 | 2018-11-27 | 平安科技(深圳)有限公司 | Short message splicing processing method, device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005031995A1 (en) * | 2003-09-23 | 2005-04-07 | Motorola, Inc. | Method and apparatus for providing a text message |
CN1913661A (en) * | 2006-08-11 | 2007-02-14 | 华为技术有限公司 | Message transmitting equipment and method |
CN1929513A (en) * | 2005-09-06 | 2007-03-14 | 中兴通讯股份有限公司 | Short message filtration method |
US20080104094A1 (en) * | 2006-10-31 | 2008-05-01 | Adrian Cowham | Systems and methods for managing syslog messages |
CN101365190A (en) * | 2007-08-08 | 2009-02-11 | 上海亿动信息技术有限公司 | Search matching method and apparatus for customer mobile phone information string of mobile phone terminal |
CN101651656A (en) * | 2008-08-12 | 2010-02-17 | 新奥特(北京)视频技术有限公司 | Method and system for message conversion in system integration of global station network of television station |
-
2010
- 2010-05-31 CN CN2010101948709A patent/CN102263851A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005031995A1 (en) * | 2003-09-23 | 2005-04-07 | Motorola, Inc. | Method and apparatus for providing a text message |
CN1929513A (en) * | 2005-09-06 | 2007-03-14 | 中兴通讯股份有限公司 | Short message filtration method |
CN1913661A (en) * | 2006-08-11 | 2007-02-14 | 华为技术有限公司 | Message transmitting equipment and method |
US20080104094A1 (en) * | 2006-10-31 | 2008-05-01 | Adrian Cowham | Systems and methods for managing syslog messages |
CN101365190A (en) * | 2007-08-08 | 2009-02-11 | 上海亿动信息技术有限公司 | Search matching method and apparatus for customer mobile phone information string of mobile phone terminal |
CN101651656A (en) * | 2008-08-12 | 2010-02-17 | 新奥特(北京)视频技术有限公司 | Method and system for message conversion in system integration of global station network of television station |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973461A (en) * | 2013-02-06 | 2014-08-06 | 阿里巴巴集团控股有限公司 | Notification message pushing method and message server |
CN104125140A (en) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Message sending method and message sending device |
CN104125140B (en) * | 2013-04-28 | 2015-11-25 | 腾讯科技(深圳)有限公司 | A kind of message method and device |
CN104618875A (en) * | 2015-02-06 | 2015-05-13 | 掌赢信息科技(上海)有限公司 | Message sending method and electronic device |
CN108897728A (en) * | 2018-06-27 | 2018-11-27 | 平安科技(深圳)有限公司 | Short message splicing processing method, device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100751396B1 (en) | System and method for auto conversion emoticon of SMS in mobile terminal | |
CN100426890C (en) | Message transmitting equipment and method | |
CN101741759B (en) | Instant communication-based intelligent interactive system and interactive method | |
US20140089428A1 (en) | Method and System for Sharing Web Hyperlink | |
WO2007125412B1 (en) | Secure transmission system and method | |
US9860931B2 (en) | Method, system and terminal for realizing network access via Wi-Fi® | |
EP2571224B1 (en) | Method for processing messages on m2m platform and m2m platform system | |
CN103179133A (en) | Communication method between client side and server based on entity class | |
CN102263851A (en) | Message conversion method | |
CN101360278A (en) | Method, apparatus and system for instant message receiving and transmitting | |
CN101964722A (en) | Be used for method for communicating and system | |
CN103582012B (en) | A kind of data distributing method and device | |
CN103532959A (en) | Cross-platform network communication method | |
US11743364B2 (en) | Method for interconversion between protocols | |
WO2015117297A1 (en) | Customer service method in cooperative communication, and customer service system | |
KR100408357B1 (en) | Multimedia messaging service method | |
CN1848973B (en) | Short message group transmitting method, terminal and short message center | |
WO2003030507A3 (en) | Multi-modal messaging and callback with service authorizer and virtual customer database | |
CN102629919B (en) | In order to add the method for contact person, client and system in instant messaging | |
CN105450589A (en) | Remote procedure call method and system | |
CN102857482B (en) | Based on data transmission method and the system of many service ends | |
CN105516933A (en) | Message processing method, message processing device, mobile terminal and server | |
CN103581170A (en) | Middleware engine for intelligent integration in unified communication system | |
CN102843345B (en) | Remote communication method and computer program product thereof | |
CN107835150A (en) | A kind of full media customer service dispatching method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20111130 |