The present disclosure relates to a field of computer communication, and specifically to a method and a device for positing a microblog message.
Instant messaging (IM) tool is widely used by using point to point technology with a development of computer network communication technology. IM tool is accepted by many users and is served as an important part of daily life and work. Users can communicate with friends, colleagues, and classmates by using the IM tool.
Micro blog (microblog) is a part application of IM tool, and the microblog is information sharing, transmitting and acquiring platform based on a relationship of a plenty of microblog users. Microblog user can login microblog, express emotion by posting microblog messages or pictures, share information with other users who focus on him/her through clients such as personal computers (PC), mobile phones. Usually, the number of the characters is limited to a preset number, such as the number of the characters is less than 140. The application of the microblog supplied by the IM tool can realize a posting of personal instant message and an interaction of microblog users. The microblog becomes an internet business which develops the most rapidly now.
It can be seen from above description, the posting microblog message method in typical technology, a character number of each item of mircroblog message is less than a predetermined number, for example 140, is required. Thus the user does not have enough text content room to express his/her emotion clearly within the 140 characters. If a user wants to express his/her emotion clearly, a microblog message is edited first, and then the microblog message is posted. The number of the characters of the microblog message is less than 140. After the microblog message is post, another microblog message is edited, then posited. Repeat the method continuously until the user expresses his/her emotion clearly. However, it takes much time for posting all of the microblog messages. From the above description, it can be seen that, in typically technology, the method for posting microblog takes much longer time when the microblog message includes more characters. The process of posting the mircroblog message is complex and frequently operations are needed. Thus an efficiency of posting the microblog message is low and an experience of using the microblog message is reduced.
In view of this, a method and a device for posting microblog message are provided in embodiments of present disclosure. The method and the device for posting mircroblog message reduce an operation complexity of posting the microblog message and improve the efficiency of posting the microblog message.
In an embodiment of present disclosure, the method for posting microblog message includes:
acquiring text content input by a user in a microblog text box; monitoring a posting operation instruction for the text content;
calculating the number of characters of the text content, determining whether the number of the characters of the text content exceeds a preset threshold;
converting the text content into a format of messages according to a user selection from a plurality of format settings, and posting the format of the messages as a microblog message, if the number of the characters of the text content exceeds the preset threshold; and
if the number of the characters of the text content does not exceed the preset threshold, directly posting the text content as the microblog message.
The device for posting a microblog message in the embodiment of present disclosure, including: an editing module, an acquiring module, a monitoring module, a calculating module, a storing module, a determining module, a processing module and a posting module.
The editing module is configured to receive text content and posting operation instruction input by a user.
The acquiring module is configured to acquire the text content input by the user.
The calculating module is configured to calculate the number of characters of the text content.
The monitoring module is configured to monitor the posting operation instruction for the text content of the user.
The storing module, configured to store a preset threshold.
The determining module is configured to the number of the characters of the text content exceeds the preset threshold.
The processing module is configured to convert the text content into a picture when the number of the characters of the text content exceeds the preset threshold, and send the picture to the posting module; or split the text content into multiple microblog messages, and send the multiple microblog messages to the posting module; the number of the characters contained in each of the multiple microblog message being less than the preset threshold.
The posting module is configured to post the picture received form the processing module as a microblog message, or post the multiple microblog messages received from the processing module.
It can be seen from the above all description, the method and device for posting microblog message in the embodiments of present disclosure is implemented through acquiring the text content input by the user in the microblog text box; monitoring the post operation instruction for the text content of the user; calculating the character number of the text content, determining whether the number of characters of the text content exceeds the preset threshold. If the number of characters of the text content exceeds the preset number threshold, converting the text content into picture according to a choice of the user, or splitting the text content input into multiple microblog messages, and posting the multiple microblog messages in an order of the multiple microblog messages. The number of characters of each microblog message of the multiple microblog messages is less than the preset threshold. Thus, when the number of characters of the microblog message being shared exceeds the microblog message character number threshold, the number of characters is calculated automatically and processed as a posting method. Posting the microblog message does not need to be divided manually and to be operated frequently by the user. It may reduce the user operation complexity, save time and improve the microblog message posting efficiency. It solves a problem caused by a limitation of the character number of the microblog message when the user wants to posting a plenty of text content into microblog message, simplify the steps of posting the microblog message when a third part is needed to convert the multiple text content into image, and greatly enhance the user experience when the user posts the text content as a microblog message or multiple microblog messages.
Further description of the present invention will be illustrated, which combined with embodiments in the drawings, in order to make the purpose, the technical solution, and the advantages clearer.
In an exemplary embodiment of present disclosure, a character number of microblog message is detected by a microblog client automatically when the text content has been edited is being posted as a microblog message to the microblog. Because a character is corresponding to a determinate character number, a character number of the microblog message is acquired by automatically detected by the microblog client. If the character number exceeds a predetermined character number threshold, the microblog message is divided into multiple microblog messages automatically, then the multiple microblog messages are posted.
In an exemplary embodiment of present disclosure, the microblog client may also converts the text content edited by the user into a picture by using a text-image technology, and then the microblog message is post in a picture form. Thus, all of the text content edited by the user is posted in the microblog message in a picture form, but not is divided into multiple microblog messages in text form. Other user can browse a content of the microblog message according to the image being received. It is not need to browse the multiple microblog messages item by item, that the user experience can be improved efficiently.
In an exemplary embodiment of present disclosure, the microblog client may be a client being installed in a terminal or a client being directly visited through a web. In following description, taking the microblog client is a client can be directly visited by a web for example.
In typical technology, a third part is usually needed to convert the text form into a picture form. The third part may be a website converting text into image, such as the “changeweibo.com”. The website is logged in by the user, the text content is input in a text box in a special conversion interface, a “converting into image” widget bellow the special conversation interface is clicked, the text content of the text box is converted into a plain text image. Then, a “linkage of image being converted” widget is clicked by the user, the image being converted is stored in a special location, for example, the local disk. At last, the microblog message interface is logined by the user, the image being converted is browsed, and then a mircroblog message including the image is posted.
In an exemplary embodiment of present disclosure, if posting microblog message by using the above conversation text into image process, a microblog message which character number exceeds a predetermined number (such as 140) being posted by the user is complex. Firstly, the “changeweibo.com” is firstly logined in by the user, the text content is edited, and the text content being edited is converted into a picture. Secondly, the plain text image being converted is saved in the local disk. Lastly, the microblog interface is landed, a title of the microblog message is witted, the plain text image is inserted, and then the microblog message is posted. The “changeweibo.com” is landed for executing a process of converting a text into a picture, the text may not be converted into a picture if there is a failure of network commutation or a failure of the “changeweibo.com”.
From above description, in an exemplary embodiment of present disclosure, a text-image tool is embedded in the IM tool, that is the text-image tool is integrated in the IM tool, and the text-image tool is included in the microblog interface. Therefore, a microblog message is edited and posted via the text-image tool of the microblog without being operated frequently. The embedment of the text-image tool into the IM tool, and the integration of the text-image tool with the IM tool in programs is a traditional technology means to a programmer of ordinary skill in the art, therefore the embedment and the integration are not described here. In the exemplary embodiment, the microblog client is an application of the IM tool, thus the text-image tool is directly integrated in the IM tool. In implementation of embodiment of present disclosure, the text-image tool may also be independent from the IM tool. There is no influence to implementation of the embodiment of present disclosure when the text-image tool is embeded in the microblog client.
Referring to
Step 101, acquiring text content input by a user in a microblog text box, monitoring a posting operation instruction for the text content, calculating the number of characters of the text content.
In this step, the mircroblog client installs a text-picture tool, and displays the text-picture tool on a microblog interface. When the user logins the microblog, the user can input and edit the text content in the microblog text box, and the user does not need to consider the number of characters of the text content. When the user finishes editing the text content and wants to post the microblog messages, the microblog client monitors the posting operation instruction for the text content and calculates the numbers of the characters of the text content. For example, the posting operation instruction may be a “posting” widget or an “OK” widget, etc.
When the user finishes editing the text content and wants to post the microblog messages, the microblog client monitors the posting operation instruction for the text content includes the flowing steps.
Monitoring whether the user triggers the “posting” widget or the “OK” widget. If the user triggers the “posting” widget or the “OK” widget, the text content is determined to finish editing.
In the step, when the text content is determined to finish editing, the user clicks the “posting” widget or the “OK” widget under the microblog text box. When the microblog client monitors the operation to the “posting” widget or the “OK” widget, the microblog client determines the text content finish editing.
Further, in the step, pictures or tables can be inserted into the text content being edited.
The number of the characters of the letter or punctuation can be looked up in related documents, it is not described here.
Step 102, determining whether the number of characters of the text content exceeds a preset threshold. If the number of the characters of the text content exceeds the preset threshold, converting the text content into a format of messages (such as, converting the text content into a picture) according to a user selection from a plurality of format settings, and posting the format of the messages as a microblog message; or splitting the text content into multiple microblog messages, and posting the multiple microblog messages. The number of the character contained in each of the multiple microblog messages is less than the preset threshold. If the number of the characters of the text content does not exceed the preset threshold, directly posting the text content as the microblog message.
In the step, as to the microblog message, the preset threshold can be 140. If the number of the characters of the text content does not exceed 140, the microblog client directly posts the text content as the microblog message in the typically technology. If the number of the characters of the text content exceeds the preset threshold, the microblog client processes the text content in a preset posting method, and posts the text content after the process as a microblog message or multiple microblog messages.
Processing the text content in a preset posting method, and posting the text content after the process as a microblog message or multiple microblog messages includes the two following manners.
In a first method, the microblog terminal splits the text content input by the user into multiple microblog messages and posts the multiple microblog messages in an order of the multiple microblog messages. The number of the characters contained in each of the multiple microblog messages is less than the preset threshold.
In a second method, the microblog terminal converts the text content into a format of messages (such as in a picture form) according to a user selection from a plurality of format settings, and posts the format of the message as a microblog message.
In the first method, it is better that the microblog terminal splits the text content by taking sentences in the text content as units. For example, a full stop, an exclamatory mark or a semicolon are served as an end mark of a microblog message. Of course, in practical operation, the microblog terminal splits the text content by taking 140 characters as a unit. Thus, the number of the characters contained in each of the multiple microblog messages except for the last microblog message is 140.
The process of converting the text content in a format of message, related documents can be looked up in related documents, it is not described here. In embodiment of present disclosure, after converting the text content into a format of message, the format of the message may not need to be stored. Or the format of the message can be stored in a buffer, and the format of the message is deleted automatically after posting the format of the message as a microblog message. Thus, storage is reduced.
Referring to
The editing module is configured to receive text content and a posting operation instruction input by a user.
The acquiring module is configured to acquire the text content input by the user.
The calculating module is configured to calculate the number of characters of the text content.
The monitoring module is configured to monitor the posting operation instruction for the text content of the user.
The storing module is configured to store a preset threshold.
In the embodiment of present disclosure, the monitoring module monitors whether the user clicks a preset “posting” widget. If the user clicks the “posting” widget, the text content is determined to finish editing.
The determining module is configured to determine whether the number of the characters of the text content exceeds a preset threshold.
The processing module is configured to process the text content input by the user.
The posting module is configured to post the text content as a microblog message or multiple microblog messages, after the process.
In embodiment of present disclosure, the device for posting microblog message further includes a selecting module. The selecting module is configured to determine whether converting the text content input by the user into a format of messages according to the user selection.
The processing module (not shown) includes the following modules.
A picture converting sub-module, which is configured to convert the text content into a picture, convert a first sentience of the text content as a title of the picture and send the picture with the title to the posting module. Or
A text splitting sub-module, which is configured to split the text content into multiple microblog messages, and send the multiple microblog messages to the posting module in an order of the multiple microblog messages. The number of the characters contented in each of the multiple microblog messages is less than the preset threshold.
Referring to
Step 301, a user input text content in a microblog text box.
In the step, the user logins the microblog client, directly input the text content or pastes the text content in the microblog text box, and edits the text content.
Step 302, the user clicks a “posting” widget, when the user finishes inputting the text content.
In the step, when the user input the text content in the microblog text box, the user does not need to consider the number of the text content in the microblog text box. The user can directly input all the text content.
Step 303, calculating the number of characters of the text content.
In the step, when the microblog client detects the user clicks the “posting” widget, the microblog client calculates text content information of the microblog text box. In another word, the microblog client calculates the number of the characters of the text content
Step 304, the microblog client determines whether the number of the characters of the text content exceeds a preset threshold. If the number of the characters of the text content exceeds the preset threshold, a step 305 is implemented; otherwise, a step 311 is implanted.
In the step, the preset threshold can be 140. If the number of the characters of the text content exceeds the preset threshold, it means that the text content needs to process before posting.
Step 305, reminding the user whether posting the microblog message in a format of message (such as in a picture form) according to a user selection from a plurality of format settings.
In the step, when the number of the characters of the text content exceeds 140, the microblog client displays selecting and noticing information to notice the user posting the format of messages as a microblog message or posting multiple microblog messages.
Step 306, receiving the user selection. If the user selects to post the microblog message in a format of message (such as, in a picture format), a step 307 is implemented; otherwise, a step 312 is implemented.
Step 307, generating a format of message by converting the text content into the format of the message. For example, generating a picture by converting the text content into a picture. In the following, taking the format of the message is a picture for example.
In the step, after generating the message, the step further includes the flowing steps.
Converting the first sentence of the text content as the title of the picture.
Step 308, posting the picture as a microblog message.
In the step, posting the picture with a text title, that is posting the picture with the text title as a microblog message.
Step 311, posting the text content input by the user as a microblog message.
Step 312, spitting the text content into multiple microblog messages, and posting the multiple microblog messages in an order of the multiple microblog messages. The number of the characters contained in each of the multiple microblog messages is less than the preset threshold.
In the step, if the user selects does not post the microblog message in picture form, the microblog client splits the text content into multiple microblog messages, and posts the multiple microblog messages in an order of the multiple microblog messages. The number of the characters contained in each of the multiple microblog messages is less than the preset threshold.
It can be seen from the above description, the method and device for posting microblog message in the exemplary embodiments of present disclosure are implemented through automatically calculating the number of characters of the text content input by the user. If the number of characters exceeds the preset threshold, the text content is split automatically into multiple microblog messages. Or, converting the text content into a format of messages (such as, picture) automatically and posting the picture as a microblog message. Thus, the method and device for posting microblog message does not need to be split the text content into multiple microblog messages manually and does not to be operated frequently by the user. It can reduce the user operation complexity, improve the microblog message posting efficiency, solve a problem caused by a limitation of the number of characters of the microblog message when the user wants to posting a plenty of text content into microblog message, simplify the steps of posting the microblog message when a third part is needed to convert the multiple text content into picture, and greatly enhance the user experience when the user posts the text content as a microblog message or multiple microblog messages.
Referring to
The input/output apparatus 403 is configured to input or output information for the microblog client 400, such as input the text content. The input/output apparatus 403 can includes a keyboard, a mouse, or a touch panel.
The display apparatus 404 is configured to display content or information which is input or generated. For example, the display apparatus 404 displays a text-picture tool on a microblog interface.
The bus 405 is configured to deliver information between the processor 401 and the user interface 402, and also deliver information between the processor 401 and the storage 406.
The storage 406 is configured to store computer programs. The computer programs are configured to implement various processes, when executed by the processor 401. The programs stored in the storage 406 can be basic application programs, or third application programs. The storage 406 can be a read only memory (ROM), a random access memory (RAM), a U-disk, a removable hard disk, etc.
The computer programs stored in the storage 406 include but not limited to basic application programs, such as microblog programs. The storage 406 may be a public data base for running software, and the storage 406 stores plug-ins and computer programs. The storage 406 can dynamic replace codes and data which are stored in a memory. The storage 406 installs third application programs which are configured to realize a basic application function.
The processor 401 may include any appropriate processor or processors. Further, processor can include multiple cores for multi-thread or parallel processing. The processor 401 calls the computer programs stored in the storage 406. When the microblog client 400 running a configure for realizing the basic application function, the processor 401 performs the following operations.
Acquiring text content input by a user in a microblog text box, monitoring a posting operation instruction for the text content, and calculating the number of characters of the text content.
Determining whether the number of the characters of the text content exceed a preset threshold. If the number of the characters of the text content exceeds the preset threshold, converting the text content into a format of messages (such as, converting the text content into a picture) according to a user selection from a plurality of format settings, and posting the format of the messages as a microblog message; or splitting the text content into multiple microblog messages, and posting the multiple microblog messages. The number of the character contained in each of the multiple microblog messages is less than the preset threshold. If the number of the characters of the text content does not exceed the preset threshold, directly posting the text content as the microblog message.
After the microblog client 400 running a configure for realizing the basic application function, the processor 401 calls the computer programs via the bus 405 to perform the following operations.
A user input text content in a microblog text box. In detail, the user logins the microblog client 400 directly input the text content or pastes the text content in the microblog text box via the input/output apparatus 403.
The user clicks a “posting” widget which is displayed on the display apparatus 404 via the input/output apparatus 403, when the user finishes inputting the text content.
While the present invention has been described with reference to particular embodiments, it will be understood that the embodiments are illustrative and that the invention scope is not so limited. Alternative embodiments of the present invention will become apparent to those having ordinary skill in the art to which the present invention pertains. Such alternate embodiments are considered to be encompassed within the spirit and scope of the present invention. Accordingly, the scope of the present invention is described by the appended claims and is supported by the foregoing description.
Number | Date | Country | Kind |
---|---|---|---|
201110428947.9 | Dec 2011 | CN | national |
This application is a continuation-in-part application of PCT Patent Application No. PCT/CN2012/087000, entitled “METHOD AND DEVICE FOR POSTING MICROBLOG MESSAGE”, field on Dec. 20, 2012, which claims the priority benefit of Chinese Patent Application No. 201110428947.9 filed on Dec. 20, 2011, both of which are incorporated by reference herein in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2012/087000 | Dec 2012 | US |
Child | 14289049 | US |