Changes between Version 4 and Version 5 of Development/Styles


Ignore:
Timestamp:
Aug 3, 2006 5:41:21 AM (13 years ago)
Author:
colloquy
Comment:

added link to transcript page

Legend:

Unmodified
Added
Removed
Modified
  • Development/Styles

    v4 v5  
    44= Creating new Colloquy Styles = 
    55 
    6 A new major feature of Colloquy 2 are the extensible conversation styles. Styles are simple OS X bundles wraped around a [wiki:Development/Styles/CSS CSS file] file (at minimum) or a CSS file and a [wiki:Development/Styles/XSL XSL file]. Knowing this, the fact that Colloquy uses XML to store chat messages that come in over the network is no surprise to some. Pairing these three technologies gives us great flexibility when processing and displaying a message on screen. 
     6A new major feature of Colloquy 2 are the extensible conversation styles. Styles are simple OS X bundles wraped around a [wiki:Development/Styles/CSS CSS file] file (at minimum) or a CSS file and a [wiki:Development/Styles/XSL XSL file]. Knowing this, the fact that Colloquy uses XML (see the [wiki:Development/Styles/LogFileFormat Transcript file format]) to store chat messages that come in over the network is no surprise to some. Pairing these three technologies gives us great flexibility when processing and displaying a message on screen. 
    77 
    88The process of formatting a message follows these steps, start to finish. Frist, wrap the message in a simple XML envelope, encoding any special characters and representing IRC styling as XHTML. This XML envelope gets transformed with the curent style's XSL file (or a built-in default XSL file). The resulting transformation from the XSL on the XML should be XHTML that can then be rendered with help from the style's CSS file. Rendering is done via Apple's Safari (!WebKit) engine—so the possibilities are endless (evidenced by the built-in iChat-like Bubbles style).