diff --git a/css/style.css b/css/style.css index 7fda3e3..7a16941 100644 --- a/css/style.css +++ b/css/style.css @@ -1904,22 +1904,22 @@ } /* attributes overrides */ -.a-bold { +.a-b { font-weight: bold; } -.a-no-bold { +.a-no-b { font-weight: normal; } -.a-italic { +.a-i { font-style: italic; } -.a-no-italic { +.a-no-i { font-style: normal; } -.a-underline { +.a-u { text-decoration: underline; } -.a-no-underline { +.a-no-u { text-decoration: none; } .a-reset { diff --git a/js/weechat.js b/js/weechat.js index 9eb38d8..247afcf 100644 --- a/js/weechat.js +++ b/js/weechat.js @@ -195,16 +195,16 @@ WeeChatProtocol._attrNameFromChar = function(ch) { var chars = { // WeeChat protocol - '*': 'bold', - '!': 'reverse', - '/': 'italic', - '_': 'underline', + '*': 'b', + '!': 'r', + '/': 'i', + '_': 'u', // some extension often used (IRC?) - '\x01': 'bold', - '\x02': 'reverse', - '\x03': 'italic', - '\x04': 'underline' + '\x01': 'b', + '\x02': 'r', + '\x03': 'i', + '\x04': 'u' }; if (ch in chars) {