Skip to content
Tcl Source Code Artifact [7700b4ed5c]
Login

Artifact [7700b4ed5c]

Artifact 7700b4ed5c5798fae258bf1f7d1fe4b057c79225:

Ticket change [7700b4ed5c] - New ticket [1560611fffffffff|1560611fff] <i>devanagari fonts rendering in python-Tkinter</i>. by nobody on 2006-09-18 10:10:51.
D 2006-09-18T10:10:51
J assignee nijtmans
J cmimetype text/plain
J comment My\semail\saddress\sis\[email protected]\n\nHi,\n\nI\shope\sa\stkinter\squestion\scan\sbe\saddressed\shere\sas\swell.\n\nI\sam\strying\sto\sdisplay\sDevanagari\sunicode\sfonts\sin\sa\ntkinter\slabel/text\nwidget.\n\nTo\smake\snew\scharacters,\sthe\sunicode\sfonts\sprovide\sthis\nfunctionality\sof\nusing\scombination\sof\sunicode\scodes\sto\smake\sa\ssingle\snew\ncharacter.\s\sLike\nfor\sinstance\sthe\skSa\sin\sunicode\sis\nu'\\u0915\\u094D\\u0937'.\s\sIn\sLinux,\sthis\nlooks\sperfect\sin\sa\sweb-browser\sor\sin\smy\sshell-konsole\nwhich\ssupports\nunicode.\nI\sam\susing\sPython-2.4.2\swhich\sdefinitely\ssupports\nunicode.\s\sBut\sthe\nproblem\sis\sin\sthe\sfinal\svisual\srendering\sthat\sit\sdoes\nnot\sshow\sthe\skSa\ncharacter\sbut\sshows\sit\sas\sk\sSa\sas\stwo\sseparate\ncharacters.\s\sFor\sexample,\nu'\\u0915\\u093f'.\su0915\sstands\sfor\s'ka'\sthe\sfirst\nconsonant\sin\sdevanagari.\nu093f\sstands\sfor\s\sthe\sthird\svowel\s'i'\spronounced\sas\s'e'\nas\sin\s'pre'.\s\sThis\nvowel\swhen\scombined\sto\s'ka'\smust\shave\sa\sline+curve\sthat\nvisually\slooks\nlike\s'f'\sshould\sbe\sto\sthe\sleft\sof\sthe\sconsonant\s'ka'.\s\nThough\sin\swindows,\nwhen\sI\sgive\su'\\u0915\\u093f',\sit\srenders\scorrectly,\sin\nredhat\slinux,\sit\sshows\sthe\s'f'\sto\sthe\sright\swhich\smakes\nit\slook\slike\sit\sis\sadding\sthe\nvowel\sto\sthe\snext\sconsonant\sin\sa\sword.\s\sNow\sthere\sis\nalso\sthis\sanother\nproblem\sbut\sboth\sin\swindows\sand\slinux\salike.\s\sThe\nmaking\sof\snew\ncharacters\slike\sthe\skSa\sor\susing\sthe\sZero-Width-Joiner\sand\nZero-Width-Non-Joiner\sto\smake\shalf\scharacters\setc....\n\nIs\sthere\sby\sany\schance\sthese\sthings\scould\sbe\scorrectly\nrendered??\s\sI\smean,\nI\suse\sPyQt,\sit\scorrectly\srenders\sthe\sfonts.\s\sBut,\sPyQt\nneeds\sQt\sand\ngetting\sQt\sfor\sWindows\sis\sa\swhole\sbig\sstory.\s\sSo,\sI\nwant\sto\sstick\sto\nTkinter\sand\stry.\s\sCan\s\syou\splease\ssuggest\sany\smethod\nthat\swould\sallow\sme\nto\smake\sthe\sTkinter-Python\sto\sgive\sthe\scorrect\svisual\nrendering\sof\sthe\ncharacters.\s\sWe\suse\sthe\sX11\sfonts\swhile\srunning\sPyQt\nwhich\sI\sguess\sthe\sQt\nuses.\s\sIf\smy\sxterm\sshell-konsole\scould\srender\sunicode\nfonts\scorrectly,\sI\nwould\sguess\sPython\sTkinter\sas\sa\sGUI\spackage\smust\ndefinitely\sbe\sable\sto\nrender\sthe\sfonts\scorrectly.\n\nplease\slet\sme\sknow\sif\syou\scan\shelp\sme,\sif\syes,\sthen\show??\n\nThanks\sin\sadvance!!\n\nCheers,\n-Siva.\n\n
J foundin obsolete:\s8.4.13
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 44.\sUTF-8\sStrings
J title devanagari\sfonts\srendering\sin\spython-Tkinter
J type Bug
K 1560611fffffffffffffffffffffffffffffffff
U nobody
Z dca97a9562b57b06ae4a8707a0d46a14