Reduce attribute names length

This commit is contained in:
Philippe Proulx 2013-10-26 13:54:51 -04:00
parent bc14f295e3
commit ddf491e8f0
2 changed files with 14 additions and 14 deletions

View file

@ -1904,22 +1904,22 @@
} }
/* attributes overrides */ /* attributes overrides */
.a-bold { .a-b {
font-weight: bold; font-weight: bold;
} }
.a-no-bold { .a-no-b {
font-weight: normal; font-weight: normal;
} }
.a-italic { .a-i {
font-style: italic; font-style: italic;
} }
.a-no-italic { .a-no-i {
font-style: normal; font-style: normal;
} }
.a-underline { .a-u {
text-decoration: underline; text-decoration: underline;
} }
.a-no-underline { .a-no-u {
text-decoration: none; text-decoration: none;
} }
.a-reset { .a-reset {

View file

@ -195,16 +195,16 @@
WeeChatProtocol._attrNameFromChar = function(ch) { WeeChatProtocol._attrNameFromChar = function(ch) {
var chars = { var chars = {
// WeeChat protocol // WeeChat protocol
'*': 'bold', '*': 'b',
'!': 'reverse', '!': 'r',
'/': 'italic', '/': 'i',
'_': 'underline', '_': 'u',
// some extension often used (IRC?) // some extension often used (IRC?)
'\x01': 'bold', '\x01': 'b',
'\x02': 'reverse', '\x02': 'r',
'\x03': 'italic', '\x03': 'i',
'\x04': 'underline' '\x04': 'u'
}; };
if (ch in chars) { if (ch in chars) {