Hi Miguel,
 could you be more specific on the difficulty you encountered? I've tried to 
open files with names like üöàéàî.tm and it works fine.
What do not work for you?

I do not fully master texmacs internals to tell you about encodings. As far as 
I understand strings are internally mostly encoded in ec (cork) with escapes 
for the form <XXXX> (this is called texmacs universal encoding) if I'm not 
wrong. There is part of the documentation which treats the source code. Some it 
is outdated but it will give you an idea of the main internal structures. 

Best
max


On 6 nov. 2010, at 18:58, Miguel de Benito Delgado wrote:

> Well... more of a quick hack than a solution. There are way too many layers 
> of string en/decoding for me to grasp right now, but changing line 301 inside 
> qt_chooser_widget_rep::perform_dialog of qt_dialogues.cpp to read
> 
>         file = "(url-system " * scm_quote (cork_to_utf8(as_string (u))) * ")";
> 
> (i.e. reencoding the cork'ed string as utf8) and adding the necessary 
> #include "converter.hpp" will enable TeXmacsQT to open .tm files with special 
> chars (á,é,ü,ä,...) in their names. This wasn't working for me (SVN rev 3564).
> 
> I don't understand why, but applying the same change to the portion of the 
> code which opens image files, a few lines above, will break it. Meaning I get 
> a new error
> 
> TeXmacs] cannot read image file '/Users/miguel/whatever with á.jpg' in 
> qt_image_size
> 
>  Although, by the way, I can't be sure because I can't see any images at all. 
> All I get is a lot of
> 
> TeXmacs] warning: cannot render 
> /Users/miguel/(blabla...)/misc/pixmaps/unknown.ps
> 
> This looks like I didn't compile ps support in or something, right? I would 
> gladly investigate this issue further, but I'd need some help. For instance: 
> what is the internal representation of strings? which encoding? which 
> escaping? how does Scheme expect them to be?
> 
> Regards,
> ________________
> Miguel de  Benito.
> _______________________________________________
> Texmacs-dev mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/texmacs-dev

_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to