Create a pidgin QQ emoticons package

Source: Internet
Author: User

LinuxPidgin QQ is a good QQ solution. Its advantage is simple and customizable. Of course, there are many imperfections, such as file, image, and audio/video transmission.

The default pidgin does not support QQ expressions. However, it has been well solved by our predecessors, but it is not perfect. After all, it was as early as 09 years ago. Now the string expression of QQ emoticons has changed. In addition, our predecessors did not record the production process, so I plan to create a pidgin QQ table package and record the production process.

 

1. Obtain the default QQ emoticons Image File

Images used in the pidgin table must be commonly used image formats (GIF, JPG, and PNG), but they are not available for download on the Internet. What? ThatIsn't there a ready-made Google Project? Yes, but that is the result of others, and I am concerned about how the predecessors obtained those files. One method is to extract from the original QQ, which is not suitable for me, because the application tool or technology is not good. I am using another method, using scripts from Web QQBatch.

Log on to Web QQ and open a chat dialog box. Observe the address of the emoticon image, we can find some patterns, such as the address of the first emoticon image is http://0.web.qstatic.com/webqqpic/style/face/0.gif, and the address of the 10th emoticon image is the address of N EmoN-1. GIF. Since there are regular patterns, you can use a simple script to batch download all QQ expressions.

 

1#! /Bin/Bash2 3 For(C =0; C <105; C ++ ));Do4WgetHTTP://0.web.qstatic.com/webqqpic/style/face/$c.gif5 Done 

 

 

2. Compile the theme File

Writing theme files does not require any technology. Unfortunately, I am a very troublesome person.

(1) send all the expressions once.

 

(2) Save the received information as theme

 

(3) Use Vim to edit theme

First let each expression exclusive line,: % S/\ $ \ r/g.

Then, add the file path at the beginning of each line: Let I = 0 | G/^/S // \ = I. ". GIF \ t "/| let I = I + 1.

Complete the theme file information.

 

3. Test

 

The test results are basically normal except for the last oolong ...... Football becomes soy sauce ?! The final confirmation is that it is caused by inconsistent expressions of the QQ processing 73rd. When sending, the/bj $ is used, but the/ZQ $ is used for receiving.

 

Http://files.cnblogs.com/7c00/QQ.7z attached

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.