[pmwiki-users] formatting, indent & letter spacing

Jean DEMARTINI jean.d.demartini at wanadoo.fr
Mon Feb 6 01:56:22 CST 2006


Patrick R. Michaud a écrit :
> On Sun, Feb 05, 2006 at 12:09:24AM +0100, Stephan Schildberg wrote:
>   
>>>> The second tag being useful for my typo-reproductions should space 
>>>> words, respectively phrases, like:
>>>> hhhhhhh hhhhhhh hhh <spacing on>h h h h h h h h   h h    h h h<spacing 
>>>> off>
>>>>
>>>> Has pmwiki something similar on stock, I could not find it yet?
>>>>    
>>>>         
>> I would like to have the opportunity to adjust it via css, but a one 
>> letter-wide space in fact is too big.
>>     
>
> Oh.  I just found the letter-spacing CSS property.  Add the
> following:
>
>     $WikiStylesCSS[] = 'letter-spacing';
>
> Then you can use a wikistyle to get expanded text:
>
>     %letter-spacing:5px% This text is spaced out %% this is normal again
>
> See the new version of http://www.pmwiki.org/wiki/Test/Indent .  :-)
>
> Pm
>   
Installed on my site, %ind% (which I ahve renamed%indent%  temporarily) 
functions quite properly.But %letter-spacing:..px'%....%% has no efect, 
the tag is simply ignored.

The corresponding part of my config.php file:

## New wiki CSS styles for %letter-spacing:...px% ...... %%
 $WikiStylesCSS[] = 'letter-spacing';
 
## New wiki CSS styles for %indent% ......
 $WikiStyleCSS[] = 'text-indent';
 $WikiStyle['indent']['text-indent'] = '20px';
 $WikiStyle['indent']['apply'] = 'block';

Is it a competition with another parameter of cookbook ?

JDem






More information about the pmwiki-users mailing list