> On 06 Jun 2015, at 18:12, Markus Espenhain <[email protected]> wrote: > > Hi, > > I’m still new to chicken and scheme so please bear with me :) > > I had some trouble to mange some sxml transforms > > The first - what would a transform rule look like to transform > > (foo ((bar) (baz))) > > into > > ((bar) (baz))
I noticed that pre-post-order-splice/pre-post-order-splice* maps (((bar) (baz))) into ((bar) (bar)) … is this the only way (or the correct way) to get the desired result? > > And the second - maybe more lowdown related … > > lowdown returns all spaces in a extra spaces list - for example: > > (paragraph "this" (#\space) "is" (#\space #\space) "text") > > How would one match these 'spaces' nodes and transform them into a single > space instead > > (#\space) -> " " > (#\space #\space) -> " " > > or alternatively > > (#\space \#space) -> " " > > > thanks > Markus > > ps @the-lowdown-authors - It would be cool if a lowdown 'user' could register > custom inline hooks (and also block hooks!). I saw the lowdown-extra, which > creates two inline hooks but the inline-hook parameter is not exported … or > at least I did not know how to import + call inline-hook :) > _______________________________________________ > Chicken-users mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/chicken-users _______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
