[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / 6f / 3567f6353bba962eb9adb9dac271d26cdae0f8
1 Return-Path: <amdragon@mit.edu>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id A2D81431FBC\r
6         for <notmuch@notmuchmail.org>; Mon, 25 Mar 2013 07:26:10 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id C387H2kywnzS for <notmuch@notmuchmail.org>;\r
16         Mon, 25 Mar 2013 07:26:10 -0700 (PDT)\r
17 Received: from dmz-mailsec-scanner-7.mit.edu (DMZ-MAILSEC-SCANNER-7.MIT.EDU\r
18         [18.7.68.36])\r
19         by olra.theworths.org (Postfix) with ESMTP id 16426431FAF\r
20         for <notmuch@notmuchmail.org>; Mon, 25 Mar 2013 07:26:10 -0700 (PDT)\r
21 X-AuditID: 12074424-b7f936d0000008eb-dc-51505e814c7e\r
22 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
23         by dmz-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id 40.43.02283.18E50515; Mon, 25 Mar 2013 10:26:09 -0400 (EDT)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH-1.MIT.EDU [18.9.28.11])\r
26         by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id r2PEQ88m018332; \r
27         Mon, 25 Mar 2013 10:26:09 -0400\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
29         (authenticated bits=0)\r
30         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
31         by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r2PEQ6rk027222\r
32         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);\r
33         Mon, 25 Mar 2013 10:26:07 -0400\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)\r
35         (envelope-from <amdragon@MIT.EDU>)\r
36         id 1UK8Le-0005kz-HT; Mon, 25 Mar 2013 10:26:06 -0400\r
37 Date: Mon, 25 Mar 2013 10:26:06 -0400\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: Damien Cassou <damien.cassou@gmail.com>\r
40 Subject: Re: [PATCH 2/2] emacs: possibility to customize the rendering of tags\r
41 Message-ID: <20130325142606.GD32584@mit.edu>\r
42 References: <1364038194-19856-1-git-send-email-damien.cassou@gmail.com>\r
43         <1364038194-19856-3-git-send-email-damien.cassou@gmail.com>\r
44         <20130325142237.GB32584@mit.edu>\r
45 MIME-Version: 1.0\r
46 Content-Type: multipart/mixed; boundary="17pEHd4RhPHOinZp"\r
47 Content-Disposition: inline\r
48 In-Reply-To: <20130325142237.GB32584@mit.edu>\r
49 User-Agent: Mutt/1.5.21 (2010-09-15)\r
50 X-Brightmail-Tracker:\r
51  H4sIAAAAAAAAA+NgFtrPKsWRmVeSWpSXmKPExsUixCmqrNsYFxBo8HqznsWuu1uZLK7fnMns\r
52         wOSxc9Zddo9nq24xBzBFcdmkpOZklqUW6dslcGU8mv+SteCWQMX3z50sDYxLeLsYOTkkBEwk\r
53         Ji1tY4GwxSQu3FvP1sXIxSEksI9R4tePw8wQzkZGiav3+9khnNNMEr1z5zKCtAgJLGGUOHPF\r
54         GcRmEVCV2L3wERuIzSagIbFt/3KwGhEBbYk3SztYQWxmAWmJb7+bmUBsYQE/iYc/ToLZvAI6\r
55         Et3rNkMtWMEo8fn0SqiEoMTJmU9YIJqtJFpX7wI6iQNs0PJ/HCBhTgFdiXUNi8D2igqoSEw5\r
56         uY1tAqPQLCTds5B0z0LohghrSdz495IJQ1hX4vCD71CdJhLrJzYwL2BkX8Uom5JbpZubmJlT\r
57         nJqsW5ycmJeXWqRrrpebWaKXmlK6iREUN+wuKjsYmw8pHWIU4GBU4uHdEBwQKMSaWFZcmXuI\r
58         UZKDSUmUNywWKMSXlJ9SmZFYnBFfVJqTWnyIUQVo16MNqy8wSrHk5eelKonwagkB1fGmJFZW\r
59         pRblw5RJc7AoifNeT7npLySQnliSmp2aWpBaBJOV4eBQkuBdArJAsCg1PbUiLTOnBCHNxMF5\r
60         iFGCgwdoeDJIDW9xQWJucWY6RP4Uo6KUOG8rSEIAJJFRmgfXC0t3rxjFgd4S5s0FqeIBpkq4\r
61         7ldAg5mABk/96w8yuCQRISXVwJjLxmNnw/DE69E9XmaezyveBSivarglmsOV2+gQeb/fSF/c\r
62         58rurKi1EbtMdwQd28L0/A7nNd3y4oWRZdkqbperIr9X3pAP/vQseqaexa3JpQcTf05VNGLf\r
63         xpy7eF/5uX+Sl2YERuxauj5l85pDn67qaJ+Xnzvx3Aaj6eytJ1LW8J/bU8hqJqnEUpyRaKjF\r
64         XFScCAA/10O+UgMAAA==\r
65 Cc: notmuch@notmuchmail.org\r
66 X-BeenThere: notmuch@notmuchmail.org\r
67 X-Mailman-Version: 2.1.13\r
68 Precedence: list\r
69 List-Id: "Use and development of the notmuch mail system."\r
70         <notmuch.notmuchmail.org>\r
71 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
72         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
73 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
74 List-Post: <mailto:notmuch@notmuchmail.org>\r
75 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
76 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
77         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
78 X-List-Received-Date: Mon, 25 Mar 2013 14:26:10 -0000\r
79 \r
80 \r
81 --17pEHd4RhPHOinZp\r
82 Content-Type: text/plain; charset=us-ascii\r
83 Content-Disposition: inline\r
84 \r
85 Quoth myself on Mar 25 at 10:22 am:\r
86 > I pre-applied the transformations and removed the style attributes\r
87 > that had default or unimportant values.  (The script to do the path\r
88 > math is attached.)\r
89 \r
90 Now attached.\r
91 \r
92 --17pEHd4RhPHOinZp\r
93 Content-Type: text/x-python; charset=us-ascii\r
94 Content-Disposition: attachment; filename="xform.py"\r
95 \r
96 import re, numpy\r
97 \r
98 def parse_xform(xform):\r
99     [(name, args)] = re.findall(r"([a-z]+)\(([-0-9.,]+)\)", xform)\r
100     args = map(float, args.split(","))\r
101     if name == "translate":\r
102         x, y = args\r
103         return numpy.matrix([[1,0,x], [0,1,y], [0,0,1]])\r
104     if name == "matrix":\r
105         a, b, c, d, e, f = args\r
106         return numpy.matrix([[a,c,e], [b,d,f], [0,0,1]])\r
107     raise ValueError("Couldn't parse %r" % xform)\r
108 \r
109 def parse_path(spath):\r
110     # Parse an 'm' path\r
111     pos = (0,0)\r
112     res = []\r
113     for op in spath.split():\r
114         dx, dy = map(float, op.split(","))\r
115         pos = (pos[0] + dx, pos[1] + dy)\r
116         res.append(numpy.matrix([pos[0], pos[1], 1]).T)\r
117     return res\r
118 \r
119 def str_path(path):\r
120     # Print an 'M' path (different from parse_path!)\r
121     return " ".join("%.5f,%.5f" % (c[0][0], c[1][0]) for c in path)\r
122 \r
123 # Star icons\r
124 xform = (parse_xform("translate(-242.81601,-315.59635)") *\r
125          parse_xform("matrix(0.2484147,-0.02623394,0.02623394,0.2484147,174.63605,255.37691)"))\r
126 path = parse_path("290.25762,334.31206 -17.64143,-11.77975 -19.70508,7.85447 5.75171,-20.41814 -13.55925,-16.31348 21.19618,-0.83936 11.325,-17.93675 7.34825,19.89939 20.55849,5.22795 -16.65471,13.13786")\r
127 xpath = [xform * coord for coord in path]\r
128 # Path\r
129 print str_path(xpath)\r
130 # Stroke\r
131 print numpy.linalg.norm(xform * numpy.matrix([1, 0, 1]).T -\r
132                         xform * numpy.matrix([0, 0, 1]).T)\r
133 print\r
134 \r
135 # Tag icon\r
136 xform = parse_xform("translate(0,-1036.3622)")\r
137 path = parse_path("0.44642857,1040.9336 12.50000043,0 2.700893,3.6161 -2.700893,3.616 -12.50000043,0")\r
138 xpath = [xform * coord for coord in path]\r
139 # Path\r
140 print str_path(xpath)\r
141 \r
142 --17pEHd4RhPHOinZp--\r