EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EDM fonts and greek caracters on Linux
From: "J. Lewis Muir" <[email protected]>
To: "Colocho, William S." <[email protected]>
Cc: [email protected]
Date: Mon, 13 Apr 2009 09:30:23 -0400
On 4/11/09 1:39 PM, Colocho, William S. wrote:
> Hello,
>
> On an EMD (edm 1-11-2b) display at SLAC.  A PV with EGU of
> micro-meters shows up as µm (An extra A + ^ character in front of
> it.)
>
> On a xterm, konsole, Matlab editor, and (xdf -fn <font>) it shows as
> expected:
>
> [physics@lcls-srv02]$ caget SIOC:SYS0:ML00:AO496.EGU
> SIOC:SYS0:ML00:AO496.EGU       µm

Hi, William.

Did you run the caget in xterm or konsole?  What character encoding is
it using?  How did you set SIOC:SYS0:ML00:AO496.EGU?  From a .db file?
>From a caput?

One possibility is that your xterm, konsole, etc. are configured to use
the UTF-8 character encoding (for example), but in EDM you're using an
ISO-8859 font.  So you may be entering the mu character in a character
encoding that does not match the character encoding of the font being
used in EDM which will likely not work as expected.  You want to make
sure you enter the mu character in the character encoding used in EDM.

I don't have experience with EDM, but I am able to use the mu character
in MEDM without a problem.  I configure the recommended font aliases for
MEDM in X11 with entries like this:

  widgetDM_14 -misc-fixed-medium-r-normal--14-110-100-100-c-70-iso8859-1

I configure my terminal to use the ISO-8859-1 encoding.  For xterm, this
could be done like this:

$ xterm -en ISO-8859-1

I can then do a caput in that xterm using the Bourne shell like this:

$ caput SIOC:SYS0:ML00:AO496.EGU $'\265m'

265 is the octal value for the mu character in the ISO-8859-1 character
encoding.

MEDM displays this correctly.

For a .db file, you would also need to be careful to specify the correct
character encoding for the file so that the correct byte for the mu
character will be used.

Lewis

-- 
J. Lewis Muir
Software Engineer
CARS/IMCA-CAT

References:
EDM fonts and greek caracters on Linux Colocho, William S.

Navigate by Date:
Prev: EDM fonts and greek caracters on Linux Colocho, William S.
Next: EDM string/text PVs: what is one supposed to return for type and specific type? Carl Schumann
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: EDM fonts and greek caracters on Linux Colocho, William S.
Next: EDM string/text PVs: what is one supposed to return for type and specific type? Carl Schumann
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·