Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?J=c3=b6rg_Buchholz?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: plimsoll / standard enthalpy of formation Date: Tue, 17 Feb 2015 21:13:53 +0100 Organization: A noiseless patient Spider Lines: 86 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 17 Feb 2015 20:13:14 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="918f5b94625159fa3983257c9fa227ce"; logging-data="27308"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NJGpC/ZVa82V3Aevpi5YlFdh3g4gKT5A=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32.1 In-Reply-To: Cancel-Lock: sha1:WwF74p3BqLMPDUXrYtT3qR/aQ7k= Xref: csiph.com comp.graphics.apps.gnuplot:2754 On 17.02.2015 06:10, Ethan A Merritt wrote: > Jörg Buchholz wrote: > >> On 14.02.2015 20:47, Ethan A Merritt wrote: >>> Jörg Buchholz wrote: >>> >>>> On 14.02.2015 04:38, Ethan A Merritt wrote: >>>>> Jörg Buchholz wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> I will set a label and/or a xlabel with a "plimsoll" at >>>>>> superscript character. >>>>>> In LaTeX, with "\usepackage{chemmacros}", you can do it with >>>>>> something like this: >>>>>> >>>>>> $\Delta H_{\mathrm{f}}^{\standardstate}$ >>>>>> >>>>>> For the term postscript enhanced I found two workarounds. >>>>>> >>>>>> set xlabel "{/Symbol D}H@^{~\261__o}_f" >>>>>> >>>>>> lx=0 >>>>>> ly=-0.0 >>>>>> set label 1 '{/Symbol D}H_f' at lx,ly font ",14" right >>>>>> set label 2 '{/Symbol=6 \306}' at lx,ly rotate by -45 offset char >>>>>> 0,0.6 left >>>>>> >>>>>> The first one (xlabel) did not work with term pdfcairo enhanced >>>>>> and the second one (label) needs some other offsets. >>>>> >>>>> All of the cairo terminals, and pretty much all terminals newer >>>>> than >>>>> PostScript, work best with UTF8 encoding. No need to change the >>>>> font to /Symbol, no need to construct special positioning. >>>>> Latex is another option of course. >>>>> >>>>> set encoding utf8 >>>>> set label 1 "ΔH_{f^⦵}" >>>>> >>>> >>>> Thanks a lot. Is it the U+29B5 sign? >>> >>> Yes. >> >> Is there a way to type it in directly into the gnuplot-console? I can >> load it from a file but can not type it in directly. > > I think this is entirely up the the local configuration of your > desktop environment. > >> If I load it from a file than "show xlabel" shows me the following: >> xlabel is "ΔH_{f}^{⦵}" >> >> If I copy only the U+29B5 sign and paste it into the console I get a >> "\U+FFE2\U+FFA6\U+FFB5" and "show xlabel" gives me xlabel is "". >> "show encoding nominal character encoding is utf8 >> however LC_CTYPE in current locale is de_DE.UTF-8" > > The "set/show encoding" command in gnuplot controls how gnuplot > handles the output. It does not affect input. > >> What goes wrong? It is a Debian testing with KDE. I can copy the ⦵ >> into the Terminal (bash) but not into the gnuplot-console. > > That is very strange. I would have thought that any input method > that worked for your terminal shell prompt would also work for an > instance of gnuplot running in that same terminal. I tested a little bit. The gnuplot-console gives to me the hexadecimal-code of every non standard character. Some examples: ä gives me \U+FFC3\U+FFA4 c3 a4 is the hex-code for U+00E4 (I have the ä on my Keybord) ⦵ gives me \U+FFE2\U+FFA6\U+FFB5 e2 a6 b5 is the hex-code for U+29B5 It is an on all Terminals (LXterminal, gnome-terminal, standard-KDE-terminal) the same, on Debian stable and testing with KDE. And all Terminals can display every unicode sign. On Fedora 21 it works "normal", there I can use non standard characters inside the gnuplot-console. Is there a config-file? Jörg