Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!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: Wed, 18 Feb 2015 20:33:25 +0100 Organization: A noiseless patient Spider Lines: 125 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Date: Wed, 18 Feb 2015 19:32:46 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="85c2ac9ddc5efe680bf44e78839fed8a"; logging-data="26570"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cCvxZGOTj1HfMPZRjz0wQXyX9GnwUkuY=" 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:mkpouzyoWCi6Dw4JlEr8IUkDT2Y= Xref: csiph.com comp.graphics.apps.gnuplot:2756 On 18.02.2015 05:16, Ethan A Merritt wrote: > J=C3=B6rg Buchholz wrote: > >> On 17.02.2015 06:10, Ethan A Merritt wrote: >>> J=C3=B6rg Buchholz wrote: >>> >>>> On 14.02.2015 20:47, Ethan A Merritt wrote: >>>>> J=C3=B6rg Buchholz wrote: >>>>> >>>>>> On 14.02.2015 04:38, Ethan A Merritt wrote: >>>>>>> J=C3=B6rg 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=3D0 >>>>>>>> ly=3D-0.0 >>>>>>>> set label 1 '{/Symbol D}H_f' at lx,ly font ",14" right >>>>>>>> set label 2 '{/Symbol=3D6 \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 "=CE=94H_{f^=E2=A6=B5}" >>>>>>> >>>>>> >>>>>> 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 "=CE=94H_{f}^{=E2=A6=B5}" >>>> >>>> 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 =E2= =A6=B5 >>>> 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: >> >> =C3=A4 gives me \U+FFC3\U+FFA4 c3 a4 is the hex-code for U+00E4 (I hav= e the >> =C3=A4 on my Keybord) >> =E2=A6=B5 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? > > A config file for what, exactly? > > The only thing I can think of is ~/.inputrc and/or /etc/inputrc > > I've never touched these files, but they are mentioned in "man readline= ". > If you have these files at all, try renaming them temporarily to see > if that improves the behavior. You might have to start a fresh session= =2E I compiled gnuplot 5.0 from source. After this I have the same=20 functionality in the terminal and in the gnuplot-console. So it looks like the other effects comes from the "Debian gnuplot package= " The /usr/share/doc/gnuplot/README.Debian says: "libreadline ----------- Yes, the built in readline of gnuplot is bad. However, libreadline cannot be used instead because it is licensed under the GPL, whereas gnuplot has special licenses (patches only). Distribution of those programs linked together is legally impossible but you may rebuild your own custom package with readline. Please don't file bugs telling me to use libreadline in gnuplot..." Thank you for your help J=C3=B6rg