Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [10-2007 Date Index] [Date Next] || [Thread Prev] [10-2007 Thread Index] [Thread Next]

[dokuwiki] Re: RTL issue

  • From: Michael Klier <chi@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 16 Oct 2007 13:38:38 +0200
Mehdi wrote:
> Hi,
> 
> I've a multi-lingual web site and I've problems with arabic text.
> Actually I don't want to set the RTL parameter at the page level because
> my pages contain also english text (for example shell commands).
> I've used a mod for my phpbb forum that solves this problem: it parses
> each html line and if the line contains arabic characters it surrounds
> it by a <div style="direction:rtl">
> 
> I'd like to do the same thing if possible, but I don't know where to put
> my code, that is to say after the HTML is generated but before it is
> sent to the client...

Hi,

have a look at DokuWikis' action plugins system. You could hook into the
RENDERER_CONTENT_POSTPROCESS event to process the output of the
renderer. 

An alternative could also be to use the divspan-shorthand plugin and
enclose the the arabic text directly in the wiki pagesource with a
custom div that has the direction:rtl set.

HTH
    Chi

-- 
Michael Klier

mail:   chi@xxxxxxxxxxx
www:    http://www.chimeric.de
icq:    206179334
jabber: chi@xxxxxxxxxxxxxxxxxx
key:    http://downloads.chimeric.de/chi.asc
key-id: 0x8308F551




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.