From: Taguchi T. <ta...@to...> - 2003-11-18 06:23:54
|
Hi, all. I've installed cvsuped tclplugin to following my box: OS: FreeBSD5.1-current X: X-Window 4.3.0 Mozilla: mozilla-1.5 I've got some probrems. a. FreeBSD's libtcl84.so and libtk84.so dose not have -export-dynamic ld option. so I had to make patch for tcl/tk FreeBSD port. b. Tcl Stub mechanism dosen't work. so I had to disable it. If stub mechanism is enabled, Mozilla will crash when read some page which contain some tclet. Above probrems are resolved. But I still have some probrems. First, and seriouce one is follwing: "I can not input any text to text and entry widget." Selecting region using mouse is ok. but I can not input any text using keybords. Does anyone help me? Thanks. -- T.Taguchi. |
From: Jeff H. <je...@Ac...> - 2003-11-18 18:10:39
|
> I've installed cvsuped tclplugin to following my box: > OS: FreeBSD5.1-current > X: X-Window 4.3.0 > Mozilla: mozilla-1.5 I'm assuming that you built the plugin yourself? Did you make not of all the special conditions in the README? > I've got some probrems. > a. FreeBSD's libtcl84.so and libtk84.so dose not have > -export-dynamic ld option. so I had to make patch > for tcl/tk FreeBSD port. > b. Tcl Stub mechanism dosen't work. so I had to disable it. > If stub mechanism is enabled, Mozilla will crash when > read some page which contain some tclet. Can you elaborate more specifically on the patches required to the configure/makefile? > First, and seriouce one is follwing: > > "I can not input any text to text and entry widget." This sounds similar to http://aspn.activestate.com/ASPN/Mail/Message/tclplugin-core/1513253 Does the work-around work for you? Jeff Hobbs, The Tcl Guy http://www.ActiveState.com/, a division of Sophos |
From: Taguchi T. <ta...@to...> - 2003-11-20 06:44:03
|
Thanks, Jeff. > > I've installed cvsuped tclplugin to following my box: > > OS: FreeBSD5.1-current > > X: X-Window 4.3.0 > > Mozilla: mozilla-1.5 > > I'm assuming that you built the plugin yourself? Yes. I use Tcl8.4.4. > > I've got some probrems. > > a. FreeBSD's libtcl84.so and libtk84.so dose not have > > -export-dynamic ld option. so I had to make patch > > for tcl/tk FreeBSD port. > > b. Tcl Stub mechanism dosen't work. so I had to disable it. > > If stub mechanism is enabled, Mozilla will crash when > > read some page which contain some tclet. > > Can you elaborate more specifically on the patches required to the > configure/makefile? a. is a probrem FreeBSD itselfs. I'll make a patch, and send it to Tcl port maintainer for FreeBSD. I think b is a probrem in FreeBSD or Tcl/Tk. not tclplugin. But I'll make a workaround patch for tclplugin. I think it will save some FreeBSD users. > > First, and seriouce one is follwing: > > > > "I can not input any text to text and entry widget." > > This sounds similar to > http://aspn.activestate.com/ASPN/Mail/Message/tclplugin-core/1513253 > > Does the work-around work for you? Yes! Did you resolve this probrem? I've try to use focus command. but it did not work at all. Thanks --- T.Taguchi. P.S. Just now, I've been able to input Japanese multibyte strings using XIM into entry, text widget! Wow, great!! |
From: Taguchi T. <ta...@to...> - 2003-11-21 06:21:54
|
I found another workaround. Mozilla can Drag&Drop any links in the pages. So Drag&Drop a link to tclet, then its tclet will get focus. Please do not ask me "Why?" ;-) By the way, I get other probrem. I wrote following tag: <embed type="application/x-tcl" width="400" height="400" frameborder="NO" src="http://localhost/test.tcl"> and file test.tcl is as following: #!/usr/local/bin/wish8.4 text .text .text insert 1.0 "Hello World!" pack .text I've try to execute this tclet, but I got following error message. An error occured during execution of this Tclet: invalid command name "<PRE>" while executing "<PRE>" ("uplevel" body line 1) invoked from within "upvelel #0 {<PRE> <HR>invalid command name "text" while executing "text .text"<HR> <P><B>OUTPUT BUFFER:</B></P> #!/usr/local/bin/wish8.4 text .tex..." I think this message means this tclet has evaled using tclsh rather than wish interp. Demo tclets in tclplugin demo pages are evaled normaly. but local one is no. Why? What should I do? Thanks. -- T.Taguchi. |
From: Taguchi T. <ta...@to...> - 2003-11-25 07:46:37
|
Sorry, Jeff. I'm using apache rivet. so *.tcl file is evaluated as rivet acript firstly. Rivet is a "Tcl" interp. so any Tk command get errors. I've modify my apache httpd.conf file. then this probrem was resolved. By the way, I think current tclplugin assume all tclet is wrriten using UTF-8 encoding. This means, in the web page which is writen euc-jp encoding, SCRIPT itself must use UTF-8 encoding. Euc-jp encoded file can not contain any UTF-8 string. I think tclet encoding may be able to set by tclet author. such as: <embed type="x-application/tcl" src="./sample-tclet.tcl" charset="euc-jp" ...> So I've made a patch. BEGIN>--8<CUT HERE>8--- --- library/browser.tcl~ Tue Dec 24 08:05:53 2002 +++ library/browser.tcl Tue Nov 25 13:53:13 2003 @@ -690,6 +690,14 @@ return } + # convert from external encoding to utf-8 using charset arg.. + if {[interp eval $name [list info exists embed_args(charset)]] && \ + [lsearch [encoding names] \ + [set encoding [interp eval $name \ + [list set embed_args(charset)]]]] > -1} { + set chunk [encoding convertfrom $encoding $chunk] + } + IAppend $name stream,$stream,data $chunk log $name "stored data for $stream in stream,$stream,data attr" END>---8<CUT HERE>8--- Thanks. -- T.Taguchi. |
From: Jeff H. <je...@Ac...> - 2004-02-03 01:46:10
|
> From: Taguchi Takeshi ... > By the way, I think current tclplugin assume all tclet is > wrriten using UTF-8 encoding. This means, in the web page > which is writen euc-jp encoding, SCRIPT itself must use UTF-8 > encoding. Euc-jp encoded file can not contain any UTF-8 string. > > I think tclet encoding may be able to set by tclet author. > such as: > <embed type="x-application/tcl" > src="./sample-tclet.tcl" > charset="euc-jp" ...> > > So I've made a patch. I've added this (code slightly modified, requires exact match to 'encoding names') to 3.0a2. Jeff Hobbs, The Tcl Guy http://www.ActiveState.com/, a division of Sophos |