<?php

/*
  *Copyright*
  This extension to existing PmWiki %style% syntax was written by 
  Steven Leite (steven_leite@kitimat.net) on February 28, 2004.
  
  *Special Thanks*
  Thanks to  Pm (Patrick Michaud, www.pmichaud.com), for creating
  PmWiki, and for sharing his knowledge  and insightfulness which
  is really what made this possible.
  
  *Description*
  This script  includes support  for styles  as included with the
  distribution package of PmWiki (version 0.6.7) as well as added
  support for all of the css styles in the W3C CSS1 specification
  (www.w3.org/TR/REC-CSS1).   
  
  *Instructions*
  Save this file to your scripts/ directory (or wherever you want
  (I put mine in /local/scripts), then add this one line  of code
  to your local/config.php file:
  
  include_once("local/scripts/extended_styles_css1.php");
  
  Now you can enjoy all the benefits of CSS styles in your PmWiki
  pages.  (See PmWiki documentation about %styles% for additional
  information.

*/

$WikiStyleTags = array(
//-------------------------------------------------------------------------------- 
// This section preserves the existing PmWiki Styles (as at version 0.6.7)
  'color'                 => array('style' => 'color:$value; ','a' => 'style=\'color:$value\' '), 
  'bgcolor'               => array('style' => 'background-color:$value; '),
  'font-size'             => array('style' => 'font-size:$value; '),
  'target'                => array('a' => 'target=\'$value\' '),
  'rel'                   => array('a' => 'rel=\'$value\' '),
  'hspace'                => array('img' => 'hspace=\'$value\' '),
  'vspace'                => array('img' => 'vspace=\'$value\' '),
  'width'                 => array('img' => 'width=\'$value\' '),
  'height'                => array('img' => 'height=\'$value\' '),
  
//-------------------------------------------------------------------------------- 
// This section implements the new proposed markups Styles made in the Development
// Group see:  http://www.pmichaud.com/wiki/Development/ExtendedMarkup
  'ul'                    => array('style' => 'text-decoration=underline; '),
  'u'                     => array('style' => 'text-decoration=underline; '),
  'b'                     => array('style' => 'text-weight=bold; '),
  'strike'                => array('style' => 'text-decoration=line-through; '),
  'i'                     => array('style' => 'font-style=italic; '),
  'lj'                    => array('style' => 'text-align=left; '),
  'rj'                    => array('style' => 'text-align=right; '),
  'cj'                    => array('style' => 'text-align=center; '),
  'left'                  => array('style' => 'text-align=left; '),
  'right'                 => array('style' => 'text-align=right; '),
  'center'                => array('style' => 'text-align=center; '),

//-------------------------------------------------------------------------------- 
// This section implements some additional extended markups (as opposed to 'styles'
// which were also made in the Development/ExtendedMarkup discussion.  Note that a
// couple of the markup's are not possible with %styles% syntax, and so those have
// not been implemented here.
  'sub'                   => array('style' => 'vertical-align:subscripted; '),
  'sup'                   => array('style' => 'vertical-align:superscripted; '),
  'superscript'           => array('style' => 'vertical-align:superscripted; '),  
  'subscript'             => array('style' => 'vertical-align:subscripted; '),

//-------------------------------------------------------------------------------- 
// Font Properties
  'font-family'           => array('style' => 'font-family:$value; '),
  'font-style'            => array('style' => 'font-style:$value; '),
  'font-variant'          => array('style' => 'font-variant:$value; '),
  'font-weight'           => array('style' => 'font-weight:$value; '),
  'font-size'             => array('style' => 'font-size:$value; '),
//  'font'                => array('style' => 'font:$value; '),
  'font'                  => array('style' => 'font:$value; ','a' => 'style=\'$value\' '), 
//  'color'                 => array('style' => 'color:$value; ','a' => 'style=\'color:$value\' '),   

//-------------------------------------------------------------------------------- 
// Color & Background Properties
  'background-color'      => array('style' => 'background-color:$value; '),
  'background-image'      => array('style' => 'background-image:$value; '), 
  'background-repeat'     => array('style' => 'background-repeat:$value; '),
  'background-attachment' => array('style' => 'background-attachment:$value; '),
  'background-position'   => array('style' => 'background-position:$value; '),
  'background'            => array('style' => 'background:$value; '),
//-------------------------------------------------------------------------------- 
// Text Properties
  'word-spacing'          => array('style' => 'word-spacing:$value; '),
  'letter-spacing'        => array('style' => 'letter-spacing:$value; '),
  'text-decoration'       => array('style' => 'text-decoration:$value; '),
  'vertical-align'        => array('style' => 'vertical-align:$value; '),
  'text-transform'        => array('style' => 'text-transform:$value; '),
  'text-align'            => array('style' => 'text-align:$value; '),
  'text-indent'           => array('style' => 'text-indent:$value; '),
  'line-height'           => array('style' => 'line-height:$value; '),
//--------------------------------------------------------------------------------  
// Box Properties (margins)
  'margin-top'            => array('style' => 'margin-top :$value; '),
  'margin-right'          => array('style' => 'margin-right:$value; '),
  'margin-bottom'         => array('style' => 'margin-bottom:$value; '),
  'margin-left'           => array('style' => 'margin-left:$value; '),  
  'margin'                => array('style' => 'margin:$value; '),
  'padding-top'           => array('style' => 'padding-top:$value; '),
  'padding-right'         => array('style' => 'padding-right:$value; '),
  'padding-bottom'        => array('style' => 'padding-bottom:$value; '),
  'padding-left'          => array('style' => 'padding-left:$value; '),
  'padding'               => array('style' => 'padding:$value; '),
  'border-top-width'      => array('style' => 'border-top-width:$value; '),
  'border-right-width'    => array('style' => 'border-right-width :$value; '),
  'border-bottom-width'   => array('style' =>'border-bottom-width:$value; '),  
  'border-left-width'     => array('style' => 'border-left-width:$value; '),
  'border-width'          => array('style' => 'border-width:$value; '),
  'border-color'          => array('style' =>'border-color:$value; '),
  'border-style'          => array('style' => 'border-style:$value; '),
  'border-top'            => array('style' => 'border-top:$value; '),
  'border-right'          => array('style' => 'border-right :$value; '),          
  'border-bottom'         => array('style' =>'border-bottom:$value; '),
  'border-left'           => array('style' =>'border-left:$value; '),
  'border'                => array('style' =>'border:$value; '),
  'width'                 => array('style' => 'width:$value; '),
  'height'                => array('style' => 'height:$value; '),
  'float'                 => array('style' => 'float:$value; '),
  'clear'                 => array('style' => 'clear:$value; '),
    
//-------------------------------------------------------------------------------- 
// Classification Properties
  'display'               => array('style' => 'display:$value; '),  
  'white-space'           => array('style' => 'white-space:$value; '),
  'list-style-type'       => array('style' => 'list-style-type:$value; '),  
  'list-style-image'      => array('style' => 'list-style-image:$value; '),
  'list-style-position'   => array('style' => 'list-style-position:$value; '),  
  'list-style'            => array('style' => 'list-style:$value; '),
	
);

?>