ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Michal Kvasnička" <prgosek@gmail.com>
To: ConTeXt <ntg-context@ntg.nl>
Subject: TeXexec / mptex / Ruby bug with Unicode letters
Date: Tue, 11 Dec 2012 09:00:05 +0100	[thread overview]
Message-ID: <CALs_GZXa9VN5NCUXpSJB+jUYpc82s4CqjfQ3zyGFKA=62_fCXA@mail.gmail.com> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2012-12-11  8:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-11  8:00 Michal Kvasnička [this message]
2012-12-11  9:19 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALs_GZXa9VN5NCUXpSJB+jUYpc82s4CqjfQ3zyGFKA=62_fCXA@mail.gmail.com' \
    --to=prgosek@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).