Hi
I'm experimenting with inkscape for drawing figures for a scientific paper (physics, where lots of greek letters and math symbols are used to label things)
The final desired form is pdf: I'm exporting from inkscape svg to eps, then converting to pdf with the Mac OS X "preview" application.
Is there any hack or workaround to get inkscape to use a characters from a math symbol font? (It seems to recognize things line "wingdings", not just roman characters)
Thanks for any suggestions.
On Mon, 27 Dec 2004 14:16:33 -0500, Duncan Haldane <haldane@...393...> wrote:
Is there any hack or workaround to get inkscape to use a characters from a math symbol font? (It seems to recognize things line "wingdings", not just roman characters)
When editing text on canvas, press Ctrl+U and type hexadecimal Unicode code of the character you need. If the current font has it, it will appear. See http://www.unicode.org/charts/ for Unicode codes.
Up spake Duncan Haldane:
The final desired form is pdf...
Is there any hack or workaround to get inkscape to use a characters from a math symbol font? (It seems to recognize things line "wingdings", not just roman characters)
Inkscape should handle all of UTF-8[0]. You enter it the same way as for any other GTK2 app -- hold down double-bucky-cokebottle and type the hex code. I find it easier to cut-and-paste from gucharmap.
If that's not working, you could look into doing something similar to what the ladot script does for dot packages. That's really ugly, so I'd rather not go into it unless the above doesn't work.
[0] Of course, the PostScript export probably doesn't do UTF-8. Go via Scribus, maybe?
On Tue, 28 Dec 2004 06:26:54 +1100, Trent Buck <fubarbaz@...104...> wrote:
Inkscape should handle all of UTF-8[0]. You enter it the same way as for any other GTK2 app -- hold down double-bucky-cokebottle
What is double-bucky-cokebottle?
and type the hex code.
I haven't tried but this may work. (Ctrl+U is our own Unicode thing, but we use standard GTK means for text input).
I find it easier to cut-and-paste from gucharmap.
That should work too.
[0] Of course, the PostScript export probably doesn't do UTF-8.
As far as I know PS does not support Unicode. So you'll need to convert text to paths on export.
Up spake bulia byak:
What is double-bucky-cokebottle?
Lots of modifier keys. See Jargon file.
I haven't tried but this may work. (Ctrl+U is our own Unicode thing, but we use standard GTK means for text input).
I've only ever done it accidentally, so I can't be more precise. Check with the GTK2 people.
As far as I know PS does not support Unicode. So you'll need to convert text to paths on export.
Never thought of that :-)
On Dec 27, 2004, at 2:40 PM, Trent Buck wrote:
Up spake bulia byak:
What is double-bucky-cokebottle?
Lots of modifier keys. See Jargon file.
I haven't tried but this may work. (Ctrl+U is our own Unicode thing, but we use standard GTK means for text input).
I've only ever done it accidentally, so I can't be more precise. Check with the GTK2 people.
As far as I know PS does not support Unicode. So you'll need to convert text to paths on export.
Yes!! It worked just fine. (Ctrl+U plus the Unicode Hex code) When exporting to eps, the "convert text to paths" was on by default, and the final pdf I got by converting the eps with Apple preview looks great...
Here is an entry for the FAQ, perhaps?: ------------------------------------------------------ Q: My math symbol or other special font is available on my computer, and shows correctly in the "Font" tab of the "Text and Font" dialog, but does not appear on the Inkscape canvas when I press "Apply". What should I do?
A: At this time, you must enter the character's UTF-8 (Unicode) encoding as a hexadecimal number, when entering text directly on the canvas (unfortunately, as of Inkscape 0.40 this can not yet be done in the "Text" tab of the "Text and Font" dialog; if you cannot find a table of Unicode encodings on your computer, see the list at http://www.unicode.org/charts/; for example, the integral sign character in the Math Symbol font is "222b"). After selecting the desired font in the "Font" tab of the "Text and Font" dialog, enter text on the canvas by choosing the "Create and Edit Text Objects" tool, and then typing "Ctrl+U". Enter the 4-character UTF-8 encoding in the "Unicode:" dialog box that appears at the bottom of the canvas. (Note: when saving your work in eps format, make sure that the option "convert text to path" is checked in the dialog box that appears, to preserve the symbol). ------------------------------------------------------------------
Ideally, the text tab dialog would access a list of unicode encodings: I suppose this should be there somewhere on each computer that has such fonts installed, but this location probably depends on the operating system and distribution and would need to have been entered in "Inkscape Preferences", if such a feature was implemented.?
Duncan
On Dec 27, 2004, at 4:33 PM, Duncan Haldane wrote:
On Dec 27, 2004, at 2:40 PM, Trent Buck wrote:
Ideally, the text tab dialog would access a list of unicode encodings: I suppose this should be there somewhere on each computer that has such fonts installed, but this location probably depends on the operating system and distribution and would need to have been entered in "Inkscape Preferences", if such a feature was implemented.?
So that non-unicode entries are not automatically also converted to paths, maybe a preferences option "Convert all text entered by Unicode encoding to paths" would be a useful option that could be implemented in the near term? (affecting only chacters entered with Crtl+U) ?
Duncan
Up spake Duncan Haldane:
So that non-unicode entries are not automatically also converted to paths, maybe a preferences option "Convert all text entered by Unicode encoding to paths" would be a useful option that could be implemented in the near term? (affecting only chacters entered with Crtl+U) ?
How about a check box in the Print (and Save As?) dialogs that says "Convert all text to paths."?
Thanks, added to the FAQ:
On Mon, 27 Dec 2004, Duncan Haldane wrote:
Here is an entry for the FAQ, perhaps?:
Q: My math symbol or other special font is available on my computer, and shows correctly in the "Font" tab of the "Text and Font" dialog, but does not appear on the Inkscape canvas when I press "Apply". What should I do?
A: At this time, you must enter the character's UTF-8 (Unicode) encoding as a hexadecimal number, when entering text directly on the canvas (unfortunately, as of Inkscape 0.40 this can not yet be done in the "Text" tab of the "Text and Font" dialog; if you cannot find a table of Unicode encodings on your computer, see the list at http://www.unicode.org/charts/; for example, the integral sign character in the Math Symbol font is "222b"). After selecting the desired font in the "Font" tab of the "Text and Font" dialog, enter text on the canvas by choosing the "Create and Edit Text Objects" tool, and then typing "Ctrl+U". Enter the 4-character UTF-8 encoding in the "Unicode:" dialog box that appears at the bottom of the canvas. (Note: when saving your work in eps format, make sure that the option "convert text to path" is checked in the dialog box that appears, to preserve the symbol).
On Mon, 27 Dec 2004, Bryce Harrington wrote:
Thanks, added to the FAQ:
A: At this time, you must enter the character's UTF-8 (Unicode) encoding
One minor correction that needs to be made -- the numbers are unicode codepoints, and have nothing to do with UTF-8, which is only a specific representation of Unicode.
-mental
participants (5)
-
Bryce Harrington
-
bulia byak
-
Duncan Haldane
-
MenTaLguY
-
Trent Buck