Localisation issue with plots in Demeter 0.9.22
Dear All, There seems to be an issue with the way plots are displayed on non-English computers: My office PC is Japanese (although set to English) and I'm seeing spurious katakana (Japanese) characters in the GNUPlot plots generated by Artemis (as well as an Angstrom that's missing its circle)! Screenshot attached. System: Demeter 0.9.22 x64, Win 8.1 Ent x64. Regards, Ian ---- Ian Godfrey PhD Student, UCL/JAIST Programme Industrial Doctorate Centre in Molecular Modelling and Materials Science, Department of Chemistry, University College London and School of Materials Science, Japan Advanced Institute of Science and Technology i.godfrey@ucl.ac.ukmailto:i.godfrey@ucl.ac.uk i.godfrey@jaist.ac.jpmailto:i.godfrey@jaist.ac.jp
On 08/04/2015 12:31 AM, Godfrey, Ian wrote:
There seems to be an issue with the way plots are displayed on non-English computers: My office PC is Japanese (although set to English) and I'm seeing spurious katakana (Japanese) characters in the GNUPlot plots generated by Artemis (as well as an Angstrom that's missing its circle)!
Screenshot attached.
System: Demeter 0.9.22 x64, Win 8.1 Ent x64.
Well, that's fun! Try this and let me know if it makes a difference: With a text editor (like notepad, not Word), open the file C:\strawberry\perl\site\lib\Demeter\templates\plot\gnuplot\start.tmpl Edit line 8 to read set encoding iso_8859_1 that is, replace "default" with "iso_8859_1". That's my first thought. No guarantees! B -- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS-II Building 535A Upton NY, 11973 Homepage: http://bruceravel.github.io/home/ Software: https://github.com/bruceravel Demeter: http://bruceravel.github.io/demeter/
It's certainly closer now, but still not quite right. The katakana is gone, but the χ has become a ? and the Å is still a bit confused. The © is correct, though.
Screenshot attached.
Thanks,
Ian
________________________________________
From: ifeffit-bounces@millenia.cars.aps.anl.gov
There seems to be an issue with the way plots are displayed on non-English computers: My office PC is Japanese (although set to English) and I'm seeing spurious katakana (Japanese) characters in the GNUPlot plots generated by Artemis (as well as an Angstrom that's missing its circle)!
Screenshot attached.
System: Demeter 0.9.22 x64, Win 8.1 Ent x64.
Well, that's fun! Try this and let me know if it makes a difference: With a text editor (like notepad, not Word), open the file C:\strawberry\perl\site\lib\Demeter\templates\plot\gnuplot\start.tmpl Edit line 8 to read set encoding iso_8859_1 that is, replace "default" with "iso_8859_1". That's my first thought. No guarantees! B -- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS-II Building 535A Upton NY, 11973 Homepage: http://bruceravel.github.io/home/ Software: https://github.com/bruceravel Demeter: http://bruceravel.github.io/demeter/ _______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
On 08/04/2015 10:07 AM, Godfrey, Ian wrote:
It's certainly closer now, but still not quite right. The katakana is gone, but the χ has become a ? and the Å is still a bit confused. The © is correct, though.
The question mark seems somehow more honest! This is a tricky one for me. I don't have a computer that does this, so it's hard for me to troubleshoot. And my attempts to find anything relevant via google are failing me. Here are a couple of suggestions, but I cannot guarantee that either of them will actually work. In the preferences, try changing gnuplot-->terminal from "qt" to "wxt". You might also try "windows", although I think that one looks much worse than either qt or wxt. You might also try changing the font -- gnuplot-->font. It should be arial. Stick with a fairly normal font, like lucida or some such. B -- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS-II Building 535A Upton NY, 11973 Homepage: http://bruceravel.github.io/home/ Software: https://github.com/bruceravel Demeter: http://bruceravel.github.io/demeter/
In the preferences, try changing gnuplot-->terminal from "qt" to "wxt". You might also try "windows", although I think that one looks much worse than either qt or wxt.
Both the wxt and windows terminal work fine (at least with the earlier modification to the character encoding, I haven't tried without yet). Agreed about the windows terminal being the ugly one of the bunch! Thanks, Ian
On 08/04/2015 11:14 AM, Godfrey, Ian wrote:
In the preferences, try changing gnuplot-->terminal from "qt" to "wxt". You might also try "windows", although I think that one looks much worse than either qt or wxt.
Both the wxt and windows terminal work fine (at least with the earlier modification to the character encoding, I haven't tried without yet).
Agreed about the windows terminal being the ugly one of the bunch!
OK then. I see that I meant to make the wxt terminal the default on Windows, but I seem to have had it mistakenly set to qt when I built the Windows installer. Sigh.... For anyone else seeing this problem, simply go to the preferences tool and set gnuplot-->terminal to wxt. I will fix this for the next time I rebuild the installer. Sorry for the inconvenience, Ian. B PS: I am working on your other problem. Quick first shell paths certainly do not get restored correctly from a project file. I am currently confused. :( But working on it. -- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS-II Building 535A Upton NY, 11973 Homepage: http://bruceravel.github.io/home/ Software: https://github.com/bruceravel Demeter: http://bruceravel.github.io/demeter/
Ian, A really apologize, but the situation is a bit worse than all that. I made a really silly mistake recently in how Demeter talks to gnuplot. Every time you fire up one of the programs, the gnuplot terminal will be reset to qt regardless of how you configured it. I will fix this (and hopefully your other problem) and put out a new installer as soon as possible. B On 08/04/2015 11:21 AM, Bruce Ravel wrote:
On 08/04/2015 11:14 AM, Godfrey, Ian wrote:
In the preferences, try changing gnuplot-->terminal from "qt" to "wxt". You might also try "windows", although I think that one looks much worse than either qt or wxt.
Both the wxt and windows terminal work fine (at least with the earlier modification to the character encoding, I haven't tried without yet).
Agreed about the windows terminal being the ugly one of the bunch!
OK then. I see that I meant to make the wxt terminal the default on Windows, but I seem to have had it mistakenly set to qt when I built the Windows installer.
Sigh....
For anyone else seeing this problem, simply go to the preferences tool and set gnuplot-->terminal to wxt.
I will fix this for the next time I rebuild the installer.
Sorry for the inconvenience, Ian.
B
PS: I am working on your other problem. Quick first shell paths certainly do not get restored correctly from a project file. I am currently confused. :( But working on it.
-- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS-II Building 535A Upton NY, 11973 Homepage: http://bruceravel.github.io/home/ Software: https://github.com/bruceravel Demeter: http://bruceravel.github.io/demeter/
Thanks for taking a look! Since I know what the axes labels are supposed to be it's only an annoyance rather than anything worse. Thanks again, Ian
Ian,
A really apologize, but the situation is a bit worse than all that. I made a really silly mistake recently in how Demeter talks to gnuplot. Every time you fire up one of the programs, the gnuplot terminal will be reset to qt regardless of how you configured it.
I will fix this (and hopefully your other problem) and put out a new installer as soon as possible.
B
participants (2)
-
Bruce Ravel
-
Godfrey, Ian