ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* TeXexec / mptex / Ruby bug with Unicode letters
@ 2012-12-11  8:00 Michal Kvasnička
  2012-12-11  9:19 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Kvasnička @ 2012-12-11  8:00 UTC (permalink / raw)
  To: ConTeXt

Hallo.

It seems that something was changed in Ruby that makes texexec --mptex
not working with some Unicode letters, e.g. rcaron.

This file compiles all right with texexec --mptex:

beginfig(1);
  label(textext("a"),origin);
endfig;
end.

However, when I change "a" to "ř" (unicode for rcaron or \v{r}), it
failes with this complaint:

/home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/switch.rb:21:
Use RbConfig instead of obsolete and deprecated Config.
/home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/tex.rb:1982:in
`doruntexmp': invalid byte sequence in US-ASCII (ArgumentError)
from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/tex.rb:1525:in
`runtexmp'
from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/tex.rb:1087:in
`block in processmptex'
from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/tex.rb:1084:in
`each'
from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/tex.rb:1084:in
`processmptex'
from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/texexec.rb:76:in
`mptex'
from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/switch.rb:133:in
`execute'
from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/texexec.rb:791:in
`<main>'

It crashes both  with the latest beta (downloaded some minutes ago)
and with the latest stable (downloaded yesterday). It crashes also
with the stable instalation that was working previously. Since it
worked properly with Ubuntu 12.04 and is not working (with the same
ConTeXt installation) with Ubuntu 12.10, an  explanation might be a
change in Ruby that makes some ConTeXt code invalid.

I'm using
* Ubuntu 12.10 (Linux)
* Ruby ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
* texexec
* ConTeXt standalone (minimal) distribution from the ConTeXt Garden,
latest beta, latest stable and some older version that was previously
working.

Since I'm using it to create my teaching slides, I would really
appreciate if you could make some patch (or help me go around
somehow).

Best wishes,
Michal

P.S. I apologize if the bug is known already; I haven't found it in
the mailing list.
___________________________________________________________________________________
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] 2+ messages in thread

* Re: TeXexec / mptex / Ruby bug with Unicode letters
  2012-12-11  8:00 TeXexec / mptex / Ruby bug with Unicode letters Michal Kvasnička
@ 2012-12-11  9:19 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2012-12-11  9:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 12/11/2012 9:00 AM, Michal Kvasnička wrote:
> Hallo.
>
> It seems that something was changed in Ruby that makes texexec --mptex
> not working with some Unicode letters, e.g. rcaron.

probably true

> This file compiles all right with texexec --mptex:
>
> beginfig(1);
>    label(textext("a"),origin);
> endfig;
> end.

can you run:

context thatfile.mp

and see if you get results?

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] 2+ messages in thread

end of thread, other threads:[~2012-12-11  9:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-11  8:00 TeXexec / mptex / Ruby bug with Unicode letters Michal Kvasnička
2012-12-11  9:19 ` Hans Hagen

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