Jon,
Personally, typeset math is the main reason for using the metapost
plugin and why I originally wrote it, so I agree that braces and
underscores should not be escaped. However, since you didn't enclose
your expression in $ $ to produce inline math, braces act to group and
underscores are not permitted and need to be expressed as \{ \} \_.
Your labels did not contain $ and the braces and underscores were plain,
so I couldn't determine what you were trying to do. That's all.
At any rate, I'm also going to work on getting the font scaling correct
too. I'm not certain where else it's deficient.
On Wed, 2003-12-17 at 08:47, Jon A. Solworth wrote:
> Chris,
> The user should type in the same thing they would
> to tex/latex. So underscores and braces should not be escaped.
> (I assume when you say "string" you mean the input).
> I think that the primary reason you want to use metapost is
> because you are using math mode text.
>
> I don't have time to try out your patch right now,
> but I will as soon as I can.
>
> The one drawback to this approach is that different
> exports are going to print the file differently. I think that
> is right for now since the purpose of using dia to to incorporate its
> diagrams in some "document", and hence the
> quality is paramount. Ultimately, it looks like calling
> latex from within dia could produce the same diagram whatever
> the filter.
>
> thanks and looking forward to trying the patch,
> Jon
>
> On Wed, 2003-12-17 at 01:34, Chris Sperandio wrote:
> > On Sat, 2003-12-13 at 10:29, Jon A. Solworth wrote:
> > > On Sat, 2003-12-13 at 09:06, Lars Clausen wrote:
> > > >
> > > > As for XFig, if you send me a diagram that is improperly exported, I shall
> > > > certainly take a look, it's one of my darlings:)
> > > >
> > >
> > > Lars,
> > >
> > > Here it is. If it gets mangled, let me know.
> > >
> > > Jon
> >
> > I'm working on the color text metapost patch.
> >
> > Jon, as far as the text in your messages go, what are your intentions
> > for strings with underscores and braces? It seems that there was a
> > routine to escape these in the pstricks filter, but it has been
> > disabled. I agree with the comment there that TeX users will do what
> > they intend. So are these to be typeset as math or should they be as \_
> > and \{ \}? Unfortunately, it seems that even \{ \} won't do it. I had
> > to specifically set these to $\{$ $\}$.
> >
> > At any rate, here is the patch and two new versions of your dia file I
> > test it against.
> >
> >