"Wez Furlong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Wouldn't it be better to do this in a RTL version of the style sheet
> (that just contains the RTL specific parts), and link to that sheet in
> addition to existing "generic" style sheet?
>
> Or are there other kinds of things that you need to do when generating
> the HTML?
>
for this specific issue, overriding the default css can fit the needs, i
just thought i adding here usefull flexibility for another usages (not rtl
related).

theoretically the align is not the only issue. there are map elements
functions that i added and that cause to losing the attibutes, it's true
that for now this behavior is harmless coz those elements are quite
fundamental like 'varname' or 'term', but we opening here needless a gap of
the rtl version comparing to the ltr (and loosing here nice way the
documenters can hack the build system using tags attributes ;). sure that i
can loop via the attibutes and add them but this looks to me unnecessary
code duplication.

--/moshe.



> --Wez.
>
> > -----Original Message-----
> > From: moshe doron [mailto:[EMAIL PROTECTED]
> > Sent: 10 May 2004 14:10
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-DOC] livedocs [PATCH] - allowing style_mapping
> > to transform()
> >
> > Hi:
> >
> > this patch allow style_mapping functions to continue
> > transform the node via
> > the default transform function:
> > http://moshe.i-com-it.com/patchs/livedocs-styletransform.patch.txt
> >
> > i run into the issue when i see i have no elegant way override the
> > text-align style using the transform function, without
> > re-writing all the
> > generation flow by hand.
> >
> > this behavior can be useful for small changes like
> > duplication of childs
> > nodes (e.g, make the first child title) or changing the html
> > order of two
> > node without  manualy generating all the subnodes.
> >
> > explanations:
> > 1. i splite the transform function into transform() that
> > check if we calling
> > to style_ function, and transfor_default() which is called if
> > no style_
> > function.
> > 2. if the map callback function begin with '+', the function
> > suppose to get
> > the $map beside the node. this map is moved into the
> > $node->transform_default().
> >
> > thoughts?
> >
> > --/moshe.
> >

Reply via email to