Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using gnuplot to make me some nice diagrams of log files (e.g. containing cpu load/temperature values from "uptime" and "sensors").
Now I would like to use the character "greater-than" ( in HTML > ) in text.
Hmmm…that’s not a > Did you try escaping it?
If the chart is going to be rendered on a web page you could try ≥
If > works, you could say “> 5 Stunden” or “>= 6 Stunden”
Hmmm…that’s not a > Did you try escaping it?
If the chart is going to be rendered on a web page you could try ≥
If > works, you could say “> 5 Stunden” or “>= 6 Stunden”
I'm sorry, that was some kind of typo (haven't used HTML actively for about 15 years). I actually mean ≥
Well, yes, I was thinking about working around my problem by first using a plain ">" but now by writing "mind.".
So, I'm still looking for information on how to put an ≥ there - or, generally speaking, on how to put any utf-8 char in an gnuplot label.
Within a double quoted string, you can use UTF-8 escapes like this: \\U+2265
which will produce a greater than or equal to character. The form is \U+HHHH where
HHHH is the hex Unicode value, but the backslash has to be doubled when used
inside double quotes. This is useful if you can't (or don't want to) actually
type the UTF-8 character in your text editor like this: ≥
Within a double quoted string, you can use UTF-8 escapes like this: \\U+2265
which will produce a greater than or equal to character. The form is \U+HHHH where
HHHH is the hex Unicode value, but the backslash has to be doubled when used
inside double quotes. This is useful if you can't (or don't want to) actually
type the UTF-8 character in your text editor like this: ≥
Unfortunately this doesn't work. So I played around with fonts and characters.
And made another screenshot: https://test.szaktilla.de/plotshot2.png
As you can see, the Pi character is printed, all others are not.
this looks like a locale (language) specific settings (but I can only guess).
Let's say emacs is running with a different locale, and it displays properly everything, but the saved file contains non utf-8 chars.
Could be a locale problem, but also possibly the font you are using (Bitstream Charter?) simply does not have the characters you want. It looks like it did a few correctly: the degree symbol, and the 'pillcrow' or paragraph symbol. If it does some but not all non-ASCII characters you want, that makes me suspect the font is missing the others. I think you need to find a PostScript font that has a wider Unicode coverage, or change to a different gnuplot driver that uses different fonts.
Could be a locale problem, but also possibly the font you are using (Bitstream Charter?) simply does not have the characters you want. It looks like it did a few correctly: the degree symbol, and the 'pillcrow' or paragraph symbol. If it does some but not all non-ASCII characters you want, that makes me suspect the font is missing the others. I think you need to find a PostScript font that has a wider Unicode coverage, or change to a different gnuplot driver that uses different fonts.
Meanwhile I suspect that to be some problem outside of gnuplot, too. To make sure it doesn't have anything to do with missing glyphs in the font I changed it to „Liberation Serif“. In Libre Office there's no problem with any „special characters“.
so since I didn't find out how to print the character I want, I used a work around and played a bit with fonts. Just in case you're interested in the final result, see https://gregor.szaktilla.de/web/plot.pdf
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.