Slava, (or anyone that knows a lot about io.styles :-)

My previous patch to make $subsection links render such that the word
name and the stack effect are presented as a single presentation does
not work well when the formatted stream is an html-writer. Since the
word name and the stack effect are styled separately, I had to wrap
them in a with-nesting to apply the presentation to both at once.

Unfortunately, with-nesting generates a DIV in the HTML stream which
causes the word name and stack effect to be put on a newline after the
definition-icon in the generated HTML help; however, it renders
correctly in Factor's Browser tool.

If I use with-style instead of with-nesting, it fixes the layout
problems for both pane-streams and html-streams, but both the word
name and the stack effect are presented separately. For instance:

\ at presented associate [
    COLOR: deep-pink foreground associate [ "Только" write ] with-style
    COLOR: red foreground associate [ " этого мало" write ] with-style
] with-style

So what I would like to do is introduce a new combinator/sub-stream:
with-span and make-span-substream. This new sub-stream will apply its
style when the stream is disposed rather than when write/format are
called. I haven't sat down to implement it yet, but I was hoping to
get a little guidance before I started. Do you think this is the right
way to solve the problem? If so, what do I need to do to make such a
substream render inline when disposed?

Thanks,
-keith

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to