After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 622782 - Equation for diagram (goffice built with lasem) : No text orientation tab in equation for diagram and no space character possible
Equation for diagram (goffice built with lasem) : No text orientation tab in...
Status: RESOLVED FIXED
Product: libgoffice
Classification: Other
Component: Graphing / Charting
0.8.x
Other Linux
: Normal enhancement
: ---
Assigned To: Jean Bréfort
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2010-06-26 07:40 UTC by billy
Modified: 2010-06-27 08:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
example for the diagram equation functions (90.76 KB, image/png)
2010-06-26 07:40 UTC, billy
  Details
Fixes the issue. (3.16 KB, patch)
2010-06-27 08:50 UTC, Jean Bréfort
committed Details | Review

Description billy 2010-06-26 07:40:49 UTC
Created attachment 164663 [details]
example for the diagram equation functions

After building goffice 0.86  --withlasem

the new function of an equation for diagram is given, where texts can be subscripted, but

1. There is no text orientation tab, for rotation of the equation, like 
for he axes labels. So for y-axis labels its useless, should be at least a vertical mode too.

2. Its not possible to segregate words by a space character, like in axes labels.
So you can do normal lookings texts only with a combination of several equations.

3. You can not set the fonts size for the subscripted and the non subscipted text.
But for great customization this should be possible.
Comment 1 Jean Bréfort 2010-06-26 08:17:02 UTC
You are right about point 1.

Concerning the two others, you should have a look at http://golem.ph.utexas.edu/~distler/blog/itex2MMLcommands.html for the list of available commands. For font size, you probably need to add some mathml markup.

Another quick way to have rich text would be to have 
		gog_renderer_draw_text (view->renderer, str,
					&view->residual, GTK_ANCHOR_NW, TRUE);
instead of
		gog_renderer_draw_text (view->renderer, str,
					&view->residual, GTK_ANCHOR_NW, FALSE);
at gog-label.c:469.

Then typing x<sub>n</sub> should give you a subscript. Have a look at http://library.gnome.org/devel/pango/stable/PangoMarkupFormat.html for the syntax to use.
Comment 2 Jean Bréfort 2010-06-27 08:50:42 UTC
Created attachment 164732 [details] [review]
Fixes the issue.
Comment 3 Jean Bréfort 2010-06-27 08:54:45 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.

Points 2 and 3 are invalid.