[Scilab-Dev] SEP#12: Scipad - Add support for encodings
François Vogel
fvogelnew1 at free.fr
Wed Dec 17 22:14:09 CET 2008
Sylvestre Ledru said on 17/12/2008 13:54:
> I am not sure that the word "internalization" is the right one here ;)
> Did you mean internationalization ?
Yes, sure.
Interesting slip-up (don't jump on me, I'm just kidding!). Please
don't take umbrage of this unfortunate typo.
Or more likely this mistyping can be attributed to the [sp|h]ell checker.
> I like the idea of this feature. I haven't tested it but it is possible
> to add a pull down menu for the encoding in the file chooser in the
> window "2. Open the file. ?
The short answer is no.
The long explanation needs distinguishing platforms.
On Windows, the file chooser called by Tk is the platform native
chooser provided by the OS itself. This dialog cannot be tuned and
does not have such an encoding pulldown menu. End of the story.
On Linux, the file chooser called by Tk is a dialog implemented in Tk
language. This dialog can in principle be tuned: this amounts to
tweaking the source code provided by the Tk package.
In practice I would not do this, because it would cause a lot of
headaches whenever the Tk version gets updated. Implementation of the
chooser is not part of the public interface. The public interface is
limited to the single command tk_getOpenFile, which has no existing
option to show an encoding pull down menu.
I'll fix the typing mistake above in the next version of the SEP.
Besides, I have also identified (and fixed) a minor issue with the MRU
list. The fix amounts to saving the Scipad preferences file in utf-8
encoding instead of using the platform native system encoding.
I'll publish the updated SEP soon.
I will first wait for more comments arising from the dev list.
Francois
More information about the dev
mailing list