SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-06-21 16:00:47

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

[Semi-Solved]Kannada support in xterm?

Hey guys!

This isn't really a testing/unstable question (except for maybe the xterm version), but is there a way to get xterm to display Kannada correctly?  I have the correct fonts installed (in fact, I have every single font package installed lol lol ), and gnome-terminal and terminator kind of display Kannada as best as they can.  I've tried uxterm which gives boxes (an improvement over simply nothing!), lxterm which calls uxterm, and koi8term which gives me something which looks like Russian.  xterm is perfect in every other way.  Any ideas?

Thanks in advance!

- Chaanakya

Last edited by chaanakya (2011-06-22 14:00:42)


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

Help fund CrunchBang, donate to the project!

#2 2011-06-21 16:43:32

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,905

Re: [Semi-Solved]Kannada support in xterm?

Did you change the font for xterm? If the setting the regular font does not work, maybe you need to set the wideFont too. Heres an example of my font settings in ~/.Xdefaults:

xterm*font:                 -*-terminus-medium-*-12-*
xterm*wideFont:             -misc-fixed-medium-r-normal-ja-13-120-75-75-c-120-iso10646-1

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#3 2011-06-21 16:59:40

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: [Semi-Solved]Kannada support in xterm?

Well...I set my default terminal font to terminus, so the first part is not necessary...I'll check out the WideFont setting and report back.


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

#4 2011-06-21 17:01:10

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: [Semi-Solved]Kannada support in xterm?

Hmmm...apparently Terminus does not support the Kannada glyphs??


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

#5 2011-06-21 17:05:14

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,905

Re: [Semi-Solved]Kannada support in xterm?

That is correct.


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#6 2011-06-21 17:07:46

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: [Semi-Solved]Kannada support in xterm?

Could I force xterm to load the kannada fonts I have on my system as backup fonts for those specific glyphs?


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

#7 2011-06-21 17:11:25

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,905

Re: [Semi-Solved]Kannada support in xterm?

If possible, I don't know how. Did you try using an alternate for wideFont?


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#8 2011-06-21 18:55:41

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: [Semi-Solved]Kannada support in xterm?

No, that's the next thing I'm going to try...it might help...


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

#9 2011-06-21 18:58:50

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: [Semi-Solved]Kannada support in xterm?

If all hope is lost, pull a MacGuyver: http://fontforge.sourceforge.net/


I'm so meta, even this acronym

Offline

#10 2011-06-21 19:12:04

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: [Semi-Solved]Kannada support in xterm?

Well...I got *some* kind of Kannada working - I used unifont.  The only problem is that unifont is not fixed width, which means big problems with everything else :'(


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

#11 2011-06-22 04:59:17

johnraff
#!Drunkard
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 2,467
Website

Re: [Semi-Solved]Kannada support in xterm?

You might try urxvt instead of xterm. It works well for me with Japanese fonts.


John
--------------------
( a boring Japan blog , and idle twitterings )

Offline

#12 2011-06-22 13:46:06

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: [Semi-Solved]Kannada support in xterm?

Thank you!!!  That works perfectly!! big_smile big_smile big_smile  Marking thread as solved! smile


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

#13 2011-06-22 13:59:07

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: [Semi-Solved]Kannada support in xterm?

Hmmm...related question...I've setup a script /usr/bin/urxvt.real which just calls urxvt with the correct font size and all.  The first time urxvt.real is run (called from a keyboard shortcut to x-terminal-emulator), it shows boxes where the Kannada characters should be.  However, any new instance opened from within the first instance open just fine.  What could be the cause?

I've included my .bashrc here for examination:

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

#Add DirB fuctions
source ~/.bashDirB

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
    xterm-color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
    # We have color support; assume it's compliant with Ecma-48
    # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
    # a case would tend to support setf rather than setaf.)
    color_prompt=yes
    else
    color_prompt=
    fi
fi

BLUE='34m'
WHITE='37m'
CYAN='36m'
YELLOW='33m'
BLACK='30m'
RED='31m'
GREEN='32m'
VIOLET='35m'

if [ "$color_prompt" = yes ]; then
    #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
        #PS1="$FRED[${debian_chroot:+($debian_chroot)}$FRED\u$FWHT@$FCYN\h$FRED] $FBLE\w$FWHT\\$ $FGRN"
        PS1='\[\e[$RED\]┌─[\[\e[$BLUE\]\u@\t\[\e[$RED\]] \n└─[\[\e[$WHITE\]\W\[\e[$GREEN\]]>> '
        PS2="\[\e[$RED\]>>>>>>>> \[\e[$GREEN\]"
else
    #PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
        PS1="[ ${debian_chroot:+($debian_chroot)}\u@\h: \w ]\\$ "
        PS2=">> "
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi
export PATH=$PATH:/home/chiraag/scripts:/usr/sbin:/sbin
export LADSPA_PATH=/usr/lib/ladspa
export EDITOR=/home/chiraag/scripts/emacs
export BROWSER=/usr/bin/conkeror
export LANG=kn_IN.utf8
export LANGUAGE=kn_IN.utf8
~/scripts/hello
echo Date: `date "+%a, %B %d, %Y"`
echo -e \\n
echo Time: `date "+%H:%M:%S"`
echo -e \\n
echo Battery level: `/home/chiraag/scripts/battery.sh`%
echo -e \\n
echo `ddate`
echo -e \\n
export AWT_TOOLKIT=MToolkit

Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

#14 2011-06-22 14:02:47

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,905

Re: [Semi-Solved]Kannada support in xterm?

Why not use ~/.Xdefaults to specify the default font?


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#15 2011-06-22 14:07:34

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: [Semi-Solved]Kannada support in xterm?

Would that work for urxvt??


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

#16 2011-06-22 14:16:23

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,905

Re: [Semi-Solved]Kannada support in xterm?

Of course.

urxvt*font:              xft:Terminus:pixelsize=9

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#17 2011-06-22 14:24:32

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: [Semi-Solved]Kannada support in xterm?

I'll give that a try.


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

#18 2011-06-25 13:23:01

macondo123
#! CrunchBanger
From: Panama
Registered: 2011-04-26
Posts: 115

Re: [Semi-Solved]Kannada support in xterm?

Did you install the Kannada fonts?
http://packages.debian.org/search?keywo … nada-fonts
You can also install  debian in Kannada from the beginning,


Desktop: Atom 1.6 || 1 MB RAM || 160 GB HD
Minimal Squeeze || icewm/fluxbox/ratpoison
KISS = Keep It Simple, Stupid

Offline

#19 2011-06-25 20:15:42

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: [Semi-Solved]Kannada support in xterm?

Yes, I have installed literally *every* single font available from the Debian repos big_smile


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo