ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-mac
tcl-mac
[MACTCL] Re: unicode/tkinter difficulties on macosx
by Vincent Rioux other posts by this author
Dec 9 2005 4:44AM messages near this date
RE: [MACTCL] Re: unicode/tkinter difficulties on macosx | Re: [MACTCL] Re: unicode/tkinter difficulties on macosx
Hi Alastair,
Just tried to compile tcltk with Benjamin's patch for unicode fonts display.
Tried it with 8.4.12 and then 8.4.10 with no success.
With the patch on tk8.4.10, i get numerous errors of non declared symbols.
Worse, without the patch i still can't compile tcltk8.4.10, at the very 
last compillation step, i get this:
ld: warning prebinding disabled because of undefined symbols
ld: Undefined symbols:
_TkpMeasureCharsInContext
_TkpDrawCharsInContext
I guess i must be wrong somewhere.
Is there a version of tcltk that is known to compile on 10.3 with this 
patch?
best regards,
vincent


Alastair Davies wrote:

> vincent,
> 
> My understanding is that at present TkAqua cannot draw all Unicode
> characters, but that Benjamin Riefenstahl has developed a patch (see message
> below) to enable it to do so.  
> 
> I hope this helps,
> Kind regards, Alastair
> 
> 
> -----Original Message-----
> From: Benjamin Riefenstahl
> Sent: 18 March 2005 14:09
> Subject: Re: [MACTCL] Unicode in Aqua Tk
> 
> Hi Linus,
> 
> "Linus Nyberg" writes:
>   
> 
> >I read something about ATSU not being easily pluggable into the Tk
> >structure, but I just want to know what the current status is...
> >    
> >
> 
> Unicode doesn't work satifactorily with the QuickDraw API used in the
> current Tk source.
> 
> I wrote a patch for using ATSU instead, see
> <http://sourceforge.net/tracker/?group_id=12997&atid=312997&func=detail&aid=
> 638966>.
> This implementation is slower than the QuickDraw based stuff in some
> situations, so I am working on optimizations, before this can go into
> CVS.  Unfortunately, optimizing and testing is going slow and I can
> only devote limited time to it.
> 
> benny
> 
> 
> -----Original Message-----
> From: vincent rioux
> Sent: 19 October 2005 12:24
> 
> thank you for your reply.
> well, i already tried to change of font, but still it won't take this index.
> 
> --------------------------------------------------------------------
> from Tkinter import *
> import tkFont
> root = Tk()
> myFont = tkFont.Font(size=24, family='Junicode')
> w = Label(root, text=u'\u0254', font=myFont)
> w.pack()
> root.mainloop()
> --------------------------------------------------------------------
> 
> you can find junicode on the web:
> http://www.engl.virginia.edu/OE/junicode/junicode.html
> 
> for the code of the character I wanted to display : 
> http://www.engl.virginia.edu/OE/junicode/docs/junicode_ipa.html
> 
> by advance many thanks
> vincent
> 
> 
> Russell E. Owen wrote: 
> In article <4354C5DE.5030003@[...].org>,
>  vincent rioux <vincent.rioux@[...].org> 
>  wrote:
> 
>   
> w = Label(root, text=u'\u0254')
> ...
> This should display an 'open o' of the IPA.
> It happens to work with python from FINK (hence using x11) but I just 
> can't get it to work on pythonw2.4/tcl-tk acqua. It will only display an 
> empty square....
>     
> 
> My guess is that the font you are using is missing the character in 
> question. Try setting the font of the widget to something with a richer 
> character set.
> 
> -- Russell
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Tcl-mac mailing list
> Tcl-mac@[...].net
> https://lists.sourceforge.net/lists/listinfo/tcl-mac
> 
>   
> 
Attachments:
unknown1
unknown2
unknown1
unknown2

Thread:
Russell E. Owen
Vincent Rioux
Alastair Davies
Vincent Rioux
Vincent Rioux
Alastair Davies
James Tittle
Revar Desmera
Vincent Rioux
Alastair Davies

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved