ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* UTF8 / TeXUtils parsing error
@ 2011-07-15  0:50 Brian Wedde
  2011-07-15  1:01 ` luigi scarso
  2011-07-15  7:04 ` Mojca Miklavec
  0 siblings, 2 replies; 6+ messages in thread
From: Brian Wedde @ 2011-07-15  0:50 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UTF8 / TeXUtils parsing error
  2011-07-15  0:50 UTF8 / TeXUtils parsing error Brian Wedde
@ 2011-07-15  1:01 ` luigi scarso
  2011-07-15  7:46   ` Hans Hagen
  2011-07-15  7:04 ` Mojca Miklavec
  1 sibling, 1 reply; 6+ messages in thread
From: luigi scarso @ 2011-07-15  1:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Jul 15, 2011 at 2:50 AM, Brian Wedde <wbrian@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UTF8 / TeXUtils parsing error
  2011-07-15  0:50 UTF8 / TeXUtils parsing error Brian Wedde
  2011-07-15  1:01 ` luigi scarso
@ 2011-07-15  7:04 ` Mojca Miklavec
  1 sibling, 0 replies; 6+ messages in thread
From: Mojca Miklavec @ 2011-07-15  7:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UTF8 / TeXUtils parsing error
  2011-07-15  1:01 ` luigi scarso
@ 2011-07-15  7:46   ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2011-07-15  7:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

>> When compiling, TeXUtils has a heart attack:
>>
>> . . .
>> TeXUtil | parsing file<filename>.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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UTF8 / TeXUtils parsing error
  2011-07-15 18:34 Brian Wedde
@ 2011-07-15 18:39 ` luigi scarso
  0 siblings, 0 replies; 6+ messages in thread
From: luigi scarso @ 2011-07-15 18:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Jul 15, 2011 at 8:34 PM, Brian Wedde <wbrian@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UTF8 / TeXUtils parsing error
@ 2011-07-15 18:34 Brian Wedde
  2011-07-15 18:39 ` luigi scarso
  0 siblings, 1 reply; 6+ messages in thread
From: Brian Wedde @ 2011-07-15 18:34 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-07-15 18:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-15  0:50 UTF8 / TeXUtils parsing error Brian Wedde
2011-07-15  1:01 ` luigi scarso
2011-07-15  7:46   ` Hans Hagen
2011-07-15  7:04 ` Mojca Miklavec
2011-07-15 18:34 Brian Wedde
2011-07-15 18:39 ` luigi scarso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).