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 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).