Re: [NTG-context] UTF8 / TeXUtils parsing error

2011-07-15 Thread Mojca Miklavec
On Fri, Jul 15, 2011 at 02:50, Brian Wedde wrote:

 The culprit is \enableregime[utf]. It works fine with TeXLive2010 on Linux, 
 but not on a ConTeXt Minimals (stable) installation on FreeBSD. I'm assuming 
 I haven't installed something
 correctly.

 \contextversion outputs 2010.07.30 11:35

Try to install (in parallel, you don't need to overwrite the old
minimals) the beta version and try to compile with that one. It is
quite possible that there is a version mismatch between tex macros and
ruby scripts (minimals update mtxrun, but not ruby scripts; and the
having current version installed often causes problems; I will try
to fix that).

Mojca
___
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] UTF8 / TeXUtils parsing error

2011-07-15 Thread Hans Hagen

On 15-7-2011 3:01, luigi scarso wrote:


When compiling, TeXUtils has a heart attack:

. . .
TeXUtil | parsing filefilename.tui
TeXUtil | fatal error in plugin (processing): invalid multibyte escape



This causes cumulative errors on each iteration with repeating indices.


at some point ruby internals changed and the ruby scripts were adapted 
to it (actually, I have a lua variant of texutil but no time to test it, 
otherwise we could get rid of ruby completely)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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
___


Re: [NTG-context] UTF8 / TeXUtils parsing error

2011-07-15 Thread Brian Wedde
I updated Ruby to the latest and greatest beta but have the same results: 
TeXUtils does not function correctly when processing .tui files, likely due to 
character encoding issues in Ruby.

I'm running Ruby 1.9.2 and this seems to be the problem. 1.8.7 was working fine 
on other machines. There are evidently large changes in Ruby API and string 
handling and character encoding in upgrading from 1.8.x - 1.9.x.

I'm making the assumption that the only way to handle this is to downgrade 
Ruby.

Are there any alternatives?

Thanks for your help again!
___
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] UTF8 / TeXUtils parsing error

2011-07-15 Thread luigi scarso
On Fri, Jul 15, 2011 at 8:34 PM, Brian Wedde wbr...@onlineed.com wrote:
 I updated Ruby to the latest and greatest beta but have the same results:
 TeXUtils does not function correctly when processing .tui files, likely due to
 character encoding issues in Ruby.

 I'm running Ruby 1.9.2 and this seems to be the problem. 1.8.7 was working 
 fine
 on other machines. There are evidently large changes in Ruby API and string
 handling and character encoding in upgrading from 1.8.x - 1.9.x.

 I'm making the assumption that the only way to handle this is to downgrade
 Ruby.
yes


-- 
luigi
___
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] UTF8 / TeXUtils parsing error

2011-07-14 Thread Brian Wedde
Minimal example:


\enableregime[utf]
\defineregister[Index][Indeces]
\starttext
\Index{x}x.
\pagebreak
\placeIndex 
\stoptext


When compiling, TeXUtils has a heart attack:

. . .
TeXUtil | parsing file filename.tui
TeXUtil | fatal error in plugin (processing): invalid multibyte escape
contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:204:in 
`prepare'
contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:886:in 
`block in processor'
contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:878:in 
`each'
contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:878:in 
`processor'
contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:127:in 
`block in processors'
contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:125:in 
`each'
contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:125:in 
`processors'
contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1060:in 
`processed'
contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1667:in `block 
in runtexutil'
contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1660:in `each'
contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1660:in 
`runtexutil'
contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1981:in 
`processfile'
contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1149:in `block 
(2 levels) in processtex'
contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1139:in 
`timedrun'
contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1148:in `block 
in processtex'
contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1145:in `each'
contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1145:in 
`processtex'
contextroot/tex/texmf-context/scripts/context/ruby/texexec.rb:66:in `process'
contextroot/tex/texmf-context/scripts/context/ruby/texexec.rb:56:in `main'
contextroot/tex/texmf-context/scripts/context/ruby/base/switch.rb:133:in 
`execute'
contextroot/tex/texmf-context/scripts/context/ruby/texexec.rb:795:in `main'

This causes cumulative errors on each iteration with repeating indices.

The culprit is \enableregime[utf]. It works fine with TeXLive2010 on Linux, 
but not on a ConTeXt Minimals (stable) installation on FreeBSD. I'm assuming I 
haven't installed something 
correctly.

\contextversion outputs 2010.07.30 11:35


Any thoughts? This one is over my head.

Thanks! Your help is very much appreciated
___
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] UTF8 / TeXUtils parsing error

2011-07-14 Thread luigi scarso
On Fri, Jul 15, 2011 at 2:50 AM, Brian Wedde wbr...@onlineed.com wrote:
 Minimal example:


 \enableregime[utf]
 \defineregister[Index][Indeces]
 \starttext
 \Index{x}x.
 \pagebreak
 \placeIndex
 \stoptext


 When compiling, TeXUtils has a heart attack:

 . . .
 TeXUtil | parsing file filename.tui
 TeXUtil | fatal error in plugin (processing): invalid multibyte escape
 contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:204:in 
 `prepare'
 contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:886:in 
 `block in processor'
 contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:878:in 
 `each'
 contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:878:in 
 `processor'
 contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:127:in 
 `block in processors'
 contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:125:in 
 `each'
 contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:125:in 
 `processors'
 contextroot/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1060:in 
 `processed'
 contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1667:in 
 `block in runtexutil'
 contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1660:in 
 `each'
 contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1660:in 
 `runtexutil'
 contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1981:in 
 `processfile'
 contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1149:in 
 `block (2 levels) in processtex'
 contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1139:in 
 `timedrun'
 contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1148:in 
 `block in processtex'
 contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1145:in 
 `each'
 contextroot/tex/texmf-context/scripts/context/ruby/base/tex.rb:1145:in 
 `processtex'
 contextroot/tex/texmf-context/scripts/context/ruby/texexec.rb:66:in 
 `process'
 contextroot/tex/texmf-context/scripts/context/ruby/texexec.rb:56:in `main'
 contextroot/tex/texmf-context/scripts/context/ruby/base/switch.rb:133:in 
 `execute'
 contextroot/tex/texmf-context/scripts/context/ruby/texexec.rb:795:in 
 `main'

 This causes cumulative errors on each iteration with repeating indices.

 The culprit is \enableregime[utf]. It works fine with TeXLive2010 on Linux, 
 but not on a ConTeXt Minimals (stable) installation on FreeBSD. I'm assuming 
 I haven't installed something
 correctly.

 \contextversion outputs 2010.07.30 11:35


 Any thoughts? This one is over my head.

 Thanks! Your help is very much appreciated
 ___
 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
 ___

It's ok with mkii/mkiv on my latest minimals
Check the ruby version, mine is
# ruby --version
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]


-- 
luigi
___
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
___