Re: [NTG-context] mkiv and unicode

2010-03-16 Thread Hans Hagen

On 16-3-2010 17:14, Wolfgang Werners-Lucchini wrote:

Hallo,


I work all the time with good old mkii-context, but I have had a lot
of problems last time, which could be solved easely if I switch to
mkiv. So I wonder if I should change. The main argument for me to
stay with mkii is the following:

I have a lot of lua scripts withhin scite which are preprocessing my
textfiles (string.gsub etc.) These scripts depent on ansi-code and do
not work with unicode too.

An other problem I have, is to teach scite to use utf-8 per default.
(code.page=65001) does not work for me. I have tried this with a
lot of versions of scite.


code.page=65001
output.code.page=65001


I have tried this very often. I have tried this in a fresh scite
installation uncommenting this in the global propertie file. But it
doesn't work.
File-Encoding is Code Page Property. And my files are saved in Ansi.


strange


I do not want look every time if I have saved with the proper
encoding. I do not want files with ansi and files in utf mixed. I
have considered to change the editor, but I very like the lua
ability.


Has anybody experiences with scite-lua-scripts and unicode?


it depends on what you do but normally lua does not care about funny
characters in strings

an option is to run the script outside scite and pipe data back


Yes, this should allow one to use special librarys. I have heard of
'slnunicode' but haven't tested it yet.


you can then just use texlua which has this built in

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] mkiv and unicode

2010-03-15 Thread Wolfgang Werners-Lucchini
Hallo,

I work all the time with good old mkii-context, but I have had a lot 
of problems last time, which could be solved easely if I switch to 
mkiv. So I wonder if I should change. The main argument for me to 
stay with mkii is the following:

I have a lot of lua scripts withhin scite which are preprocessing my 
textfiles (string.gsub etc.) These scripts depent on ansi-code and do 
not work with unicode too.

An other problem I have, is to teach scite to use utf-8 per default.
(code.page=65001) does not work for me. I have tried this with a lot 
of versions of scite.

Has anybody experiences with scite-lua-scripts and unicode?

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv and unicode

2010-03-15 Thread Hans Hagen

On 15-3-2010 18:27, Wolfgang Werners-Lucchini wrote:

Hallo,

I work all the time with good old mkii-context, but I have had a lot
of problems last time, which could be solved easely if I switch to
mkiv. So I wonder if I should change. The main argument for me to
stay with mkii is the following:

I have a lot of lua scripts withhin scite which are preprocessing my
textfiles (string.gsub etc.) These scripts depent on ansi-code and do
not work with unicode too.

An other problem I have, is to teach scite to use utf-8 per default.
(code.page=65001) does not work for me. I have tried this with a lot
of versions of scite.


code.page=65001
output.code.page=65001


Has anybody experiences with scite-lua-scripts and unicode?


it depends on what you do but normally lua does not care about funny 
characters in strings


an option is to run the script outside scite and pipe data back

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___