MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Greek symbols mangled by InputForm

  • To: mathgroup at smc.vnet.net
  • Subject: [mg130140] Re: Greek symbols mangled by InputForm
  • From: carlos%colorado.edu at gtempaccount.com
  • Date: Thu, 14 Mar 2013 07:12:09 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <20130308034901.EE50466BD@smc.vnet.net> <khdm7h$f0k$1@smc.vnet.net>

On Wednesday, March 13, 2013 2:18:47 AM UTC-6, David Bailey wrote:
> On 12/03/2013 04:34, carlos%colorado.edu at gtempaccount.com wrote:
> 
> >>
> 
> >>
> 
> >> My use of Block was being cautious.  Having done a little investigation, perhaps it's overly cautious, as changing $CharacterEncoding probably won't have any ill effects on other operations in the kernel.
> 
> >>
> 
> >>
> 
> >>
> 
> >> But it's possible I could be overlooking something.
> 
> >>
> 
> >>
> 
> >>
> 
> >> John Fultz
> 
> >>
> 
> >> jfultz at wolfram.com
> 
> >>
> 
> >> User Interface Group
> 
> >>
> 
> >> Wolfram Research, Inc.
> 
> >
> 
> > I tried it on a large code of about 15000 commands (a finite element analysis program used in graduate courses) with 9.0.1 and saw no (obvious) ill effects under Mac OS 10.6.  It was set in an initialization cell at start.
> 
> >
> 
> > Question: some of my students might have to run this program under Windows or Linux.  Is there a way to access a OS tag from within Mathematica, so that
> 
> >
> 
> > $CharacterEncoding="Unicode";
> 
> >
> 
> > is set only under Mac OS X?  (I am not sure if Windows or Linux needs that)
> 
> >
> 
> >
> 
> 
> 
> You can test the string obtained from $OperatingSystem
> 
> 
> 
> In[4]:= $OperatingSystem
> 
> 
> 
> Out[4]= "Windows"
> 
> 
> 
> or
> 
> 
> 
> In[6]:= $System
> 
> 
> 
> Out[6]= "Microsoft Windows (64-bit)"
> 
> 
> 
> BTW, it is worth exploring all the $ variables - they contain all sorts 
> 
> of information:
> 
> 
> 
> ?$*
> 
> 
> 
> David Bailey
> 
> http://www.dbaileyconsultancy.co.uk

Many thanks for all the help.  Here is my new version-dependent initialization
cell, initialized at the top of the NB:

DisplayChannel=$DisplayFunction;
Joinedlistplot=PlotJoined->True;
If [$VersionNumber>=6.0, DisplayChannel=Print];  
If [$VersionNumber>=9.0&&$OperatingSystem=="MacOSX", 
    $CharacterEncoding="Unicode"];
If [$VersionNumber>=9.0, Joinedlistplot=Joined->True];

Not sure what happens to greeksymbol//InputForm under other OS, but
students do not need that filter.




  • Prev by Date: Re: Issues with Rendering of Graphics[]
  • Next by Date: Getting an array into a C program through mathlink
  • Previous by thread: Re: Greek symbols mangled by InputForm
  • Next by thread: Equation Labels