Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7700b4ed5c5798fae258bf1f7d1fe4b057c79225
Ticket: 1560611fffffffffffffffffffffffffffffffff
devanagari fonts rendering in python-Tkinter
User & Date: nobody on 2006-09-18 10:10:51
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    My email address is [email protected]
    
    Hi,
    
    I hope a tkinter question can be addressed here as well.
    
    I am trying to display Devanagari unicode fonts in a
    tkinter label/text
    widget.
    
    To make new characters, the unicode fonts provide this
    functionality of
    using combination of unicode codes to make a single new
    character.  Like
    for instance the kSa in unicode is
    u'\u0915\u094D\u0937'.  In Linux, this
    looks perfect in a web-browser or in my shell-konsole
    which supports
    unicode.
    I am using Python-2.4.2 which definitely supports
    unicode.  But the
    problem is in the final visual rendering that it does
    not show the kSa
    character but shows it as k Sa as two separate
    characters.  For example,
    u'\u0915\u093f'. u0915 stands for 'ka' the first
    consonant in devanagari.
    u093f stands for  the third vowel 'i' pronounced as 'e'
    as in 'pre'.  This
    vowel when combined to 'ka' must have a line+curve that
    visually looks
    like 'f' should be to the left of the consonant 'ka'. 
    Though in windows,
    when I give u'\u0915\u093f', it renders correctly, in
    redhat linux, it shows the 'f' to the right which makes
    it look like it is adding the
    vowel to the next consonant in a word.  Now there is
    also this another
    problem but both in windows and linux alike.  The
    making of new
    characters like the kSa or using the Zero-Width-Joiner and
    Zero-Width-Non-Joiner to make half characters etc....
    
    Is there by any chance these things could be correctly
    rendered??  I mean,
    I use PyQt, it correctly renders the fonts.  But, PyQt
    needs Qt and
    getting Qt for Windows is a whole big story.  So, I
    want to stick to
    Tkinter and try.  Can  you please suggest any method
    that would allow me
    to make the Tkinter-Python to give the correct visual
    rendering of the
    characters.  We use the X11 fonts while running PyQt
    which I guess the Qt
    uses.  If my xterm shell-konsole could render unicode
    fonts correctly, I
    would guess Python Tkinter as a GUI package must
    definitely be able to
    render the fonts correctly.
    
    please let me know if you can help me, if yes, then how??
    
    Thanks in advance!!
    
    Cheers,
    -Siva.
    
    
    
  4. foundin changed to: "obsolete: 8.4.13"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nobody"
  10. subsystem changed to: "44. UTF-8 Strings"
  11. title changed to: "devanagari fonts rendering in python-Tkinter"
  12. type changed to: "Bug"