Subject: xterm & Unicode for package mined
To: None <netbsd-help@netbsd.org>
From: Gan Uesli Starling <alias@starling.us>
List: netbsd-help
Date: 03/13/2003 14:24:35
Howdy,
Am trying to use the newly added pckage /usr/pkgsrc/editors/mined
for editing Unicode. The websitte for this package says to run a
script like this to start xterm...
<snip>
#! /bin/sh
# configure font to be used:
font=etl16-unicode # nice font
font=10x20 # nice big font
font=9x18 # a little bit spindly but needed for double-width Han range
# modify locale environment to inform about UTF-8 mode:
LC_CTYPE=`echo $LC_CTYPE | sed -e "s,\..*,,"`.UTF-8
export LC_CTYPE
# set application-specific environment variables:
LESSCHARSET=utf-8
export LESSCHARSET
exec xterm -u8 -class UXTerm -fn $font "$
</snip>
When I try that I get this...
baal: {14} ./mined_xterm
xterm: unable to open font "9x18", trying "fixed"....
baal: {15}
...and then opening mined and playing around
does not display Unicode fonts. So I look here...
http://www.cl.cam.ac.uk/~mgk25/unicode.html#xterm
....which tells me info as below...
<snip>
xterm as shipped with XFree86 4.0 or higher works correctly in UTF-8
locales if you use an *-iso10646-1 font. Just try it with for example
LC_CTYPE=en_GB.UTF-8 xterm -fn \
'-Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO10646-1'
</snip>
...which when I try it gives me this...
baal: {15} LC_CTYPE=en_GB.UTF-8 xterm -fn \
'-Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO10646-1'
LC_CTYPE=en_GB.UTF-8: Command not found.
baal: {16}
Got clues?
Thanks,
Gan
--
Mistera Sturno - Rarest Extinct Bird
<(+)__ Gan Uesli Starling
((__/)=- Kalamazoo, MI, USA
`||`
++ http://starling.us