[NTG-context] TeXexec / mptex / Ruby bug with Unicode letters
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 ___
Re: [NTG-context] beta (MP)
On Mon, 10 Dec 2012 23:28:17 +0100 Hans Hagen pra...@wxs.nl wrote: Hi, I uploaded a beta. There are some minor changes in the mp machinery (as preparation for 'double' support. As I upgraded some file related code recently there can be issues (easy to solve once known as it's hard to foresee all bordercases). Hans (Already reported directly, but I forgot to put the list on copy.) There is a problem with the new beta. Minimal example: \starttext \startMPcode draw fullcircle scaled 1cm ; \stopMPcode \stoptext metapost initializing instance 'metafun' using format 'metafun' metapost loading 'metafun': /home/local/context/beta/tex/texmf-context/metapost/context/base/metafun.mpiv, using method: default luatex: ../../../source/texk/web2c/mplibdir/mp.w:5353: do_set_attr_head: Assertion `A-type==mp_structured' failed. mtx-context | fatal error: no return code, message: luatex: execution interrupted ___ 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] beta (MP)
On 12/11/2012 09:05 AM, Alan BRASLAU wrote: (Already reported directly, but I forgot to put the list on copy.) There is a problem with the new beta. Minimal example: \starttext \startMPcode draw fullcircle scaled 1cm ; \stopMPcode \stoptext This example works for me, and valgrind does not report anything out of the ordinary at that point. What system do you run on? Best wishes, Taco ___ 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] beta (MP)
Hi Alan, Your example works on my machine (Mac OS X 10.8 and Context version 2012.12.10 23:20). Best regards: OK On 11 déc. 2012, at 09:05, Alan BRASLAU alan.bras...@cea.fr wrote: On Mon, 10 Dec 2012 23:28:17 +0100 Hans Hagen pra...@wxs.nl wrote: Hi, I uploaded a beta. There are some minor changes in the mp machinery (as preparation for 'double' support. As I upgraded some file related code recently there can be issues (easy to solve once known as it's hard to foresee all bordercases). Hans (Already reported directly, but I forgot to put the list on copy.) There is a problem with the new beta. Minimal example: \starttext \startMPcode draw fullcircle scaled 1cm ; \stopMPcode \stoptext metapost initializing instance 'metafun' using format 'metafun' metapost loading 'metafun': /home/local/context/beta/tex/texmf-context/metapost/context/base/metafun.mpiv, using method: default luatex: ../../../source/texk/web2c/mplibdir/mp.w:5353: do_set_attr_head: Assertion `A-type==mp_structured' failed. mtx-context | fatal error: no return code, message: luatex: execution interrupted ___ 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 ___ ___ 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] beta (MP)
On Tue, Dec 11, 2012 at 9:36 AM, Taco Hoekwater t...@elvenkind.com wrote: On 12/11/2012 09:05 AM, Alan BRASLAU wrote: (Already reported directly, but I forgot to put the list on copy.) There is a problem with the new beta. Minimal example: \starttext \startMPcode draw fullcircle scaled 1cm ; \stopMPcode \stoptext This example works for me, and valgrind does not report anything out of the ordinary at that point. What system do you run on? broken here too # context test.tex mtx-context | run 1: luatex --fmt=/opt/luatex/standalone-mkiv/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en --jobname=test --lua=/opt/luatex/standalone-mkiv/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui --no-parse-first-line --c:currentrun=1 --c:fulljobname=./test.tex --c:input=./test.tex --c:kindofrun=1 cont-yes.mkiv This is LuaTeX, Version beta-0.72.0-2012121022 (rev 4499) \write18 enabled. (/opt/luatex/standalone-mkiv/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2012.12.10 23:20 MKIV fmt: 2012.12.11 int: english/english system cont-new.mkiv loaded (/opt/luatex/standalone-mkiv/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system files jobname: test, input: test, result: test fontslatin modern fonts are not preloaded languageslanguage en is active (test.tex{/opt/luatex/standalone-mkiv/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fontstypescripts unknown: library 'loc' {/opt/luatex/standalone-mkiv/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/luatex/standalone-mkiv/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsfallback modern rm 12pt is loaded metapost initializing instance 'metafun' using format 'metafun' metapost loading 'metafun': /opt/luatex/standalone-mkiv/tex/texmf-context/metapost/context/base/metafun.mpiv, using method: default luatex: ../../../source/texk/web2c/mplibdir/mp.w:5353: do_set_attr_head: Assertion `A-type==mp_structured' failed. mtx-context | fatal error: no return code, message: luatex: execution interrupted Linux luigicasa-K55VD 3.5.0-19-generic #30-Ubuntu SMP Tue Nov 13 17:48:01 UTC 2012 x86_64 x86_64 x86_64 GNU/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 ___
Re: [NTG-context] TeXexec / mptex / Ruby bug with Unicode letters
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 ___
Re: [NTG-context] OOP in Metafun.
In article CADVh14XYT3Mi6aPUOv4Py==_gjy=MAFEH-hQbmRVE=r_d-t...@mail.gmail.com, Andre Caldas andre.em.cal...@gmail.com wrote: But I would like to use some object oriented like approach. [...] How do I do that in METAFUN/METAPOST? You may want to take a look at my attempt: http://users.dimi.uniud.it/~nicola.vitacolonna/home/content/metappeal Looks nice! I didn't find any license explaining the licensing terms. In the documentation there is a Disclaimer. In short, do what you want with the code, but do not blame me ;) Nicola ___ 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] firstsetup
I guess my first-setup.sh is outdated, because running it the site called from within cannot be found. There might have been a recent post about this, but then I must confess either having missed this or forgotton to save that post. Will someone be so kind as to post a zipped actual first-setup.sh or point out its current location? Thanks in advance. Hans van der Meer ___ 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] firstsetup
On Tue, Dec 11, 2012 at 11:24 AM, H. van der Meer h.vanderm...@uva.nl wrote: I guess my first-setup.sh is outdated, because running it the site called from within cannot be found. There might have been a recent post about this, but then I must confess either having missed this or forgotton to save that post. Will someone be so kind as to post a zipped actual first-setup.sh or point out its current location? Thanks in advance. Hans van der Meer http://wiki.contextgarden.net/ConTeXt_Standalone search for first-setup.sh -- 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 ___
Re: [NTG-context] firstsetup
On Tue, Dec 11, 2012 at 11:24 AM, H. van der Meer wrote: I guess my first-setup.sh is outdated, because running it the site called from within cannot be found. What exactly isn't working? Which server are you calling and via which protocol (http or rsync)? It is true that the old server has been switched down, but I changed the IP of contextgarden.net on 30th November (and some other IPs just recently). There might have been a recent post about this, but then I must confess either having missed this or forgotton to save that post. Will someone be so kind as to post a zipped actual first-setup.sh or point out its current location? Thanks in advance. rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh . (or distribution instead of minimals, and a couple of other mirroring location; we also used to have standalone in the name, but if anyone really misses it, I can bring it back) Over http protocol it's: http://distribution.contextgarden.net/setup/first-setup.sh http://minimals.contextgarden.net/setup/first-setup.sh (once DNS catches up :) or some mirrors like: http://minimals.metatex.org/setup/ However, I don't understand why first-setup.sh itself (fetching distribution from rsync) would fail, no matter how old it is. (I didn't transfer the headers and icons yet though. And quite some changes have been done in repository, but none of them should be fatal.) Mojca PS: what *is* actually down is lurker/archive. It doesn't want to compile with a recent compiler. ___ 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] firstsetup
Thanks, This repaired a wrong link in my setup. Hans van der Meer On 11 dec. 2012, at 11:28, luigi scarso luigi.sca...@gmail.com wrote: On Tue, Dec 11, 2012 at 11:24 AM, H. van der Meer h.vanderm...@uva.nl wrote: I guess my first-setup.sh is outdated, because running it the site called from within cannot be found. There might have been a recent post about this, but then I must confess either having missed this or forgotton to save that post. Will someone be so kind as to post a zipped actual first-setup.sh or point out its current location? Thanks in advance. Hans van der Meer http://wiki.contextgarden.net/ConTeXt_Standalone search for first-setup.sh -- 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] spacing: units in math
Hi, I still do have problems with a wrong spacing between number and unit in math mode (minimal example below). Clearly, I could do something like $\alpha = $ \unit{1,2 meter} but I think this is likely to result in problems with the look of the result in case this is close to a line break. Cheers, Andreas MINIMAL EXAMPLE \starttext \unit{1,2 meter} % what I would expect $\unit{1,2 meter}$ % wrong spacing $\unit{1{,}2 meter}$ % there is no output after 1 \stoptext MINIMAL EXAMPLE Am Nov 30, 2012 um 8:43 PM schrieb Romain Diss romain.d...@yahoo.fr: Le jeudi 29 novembre 2012, Andreas Mang a écrit : Hi there, I encountered some problems with the built in units command in MKIV. I provide a minimal example which should demonstrate my problems. Maybe I am doing something wrong... \setupbodyfont[pagella] \starttext \unit{11,1e-1 micro mol per second} \par $\unit{11,1e-1 micro mol per second}$ \par \unit{11,1e-1 per second} \par \unit{11,1e-1 / second} \par \stoptext Don't know for the first two, but the last two should be replaced by: \unit{11,1e-1 inverse second} All the best. -- Romain Diss romain.d...@yahoo.fr ___ 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 ___ ___ 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] Problem using League of Moveable Type's Gothic font in simple project
Hello, I have a simple sign that I need to put together with a good title font. Since, I have been looking for a project to try out LoMT's Gothic (http://www.theleagueofmoveabletype.com/league-gothic) I thought that this would be a perfect opportunity. Unfortunately, I am getting some errors from LuaTeX that I am unable to decipher. The context file compiles successfully with other fonts such as Museo via the simplefonts mechanism. Note that the errors come after the message: otf loading font loaded okay and seems related to the adobe glyph list, which I am unfamiliar with. Any guidance would be greatly appreciated. -- Pavneet ConTeXt ver: 2012.12.10 23:20 MKIV fmt: 2012.12.11 int: english/english system cont-new.mkiv loaded (/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system files jobname: electricalpanelwarning, input: electricalpanelwarning, result: electricalpanelwarning fontslatin modern fonts are not preloaded languageslanguage en is active (electricalpanelwarning.tex resolversmodules loaded: 'simplefonts' (/opt/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv loading ConTeXt User Module / Simplefonts + /opt/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua) fontstypescripts unknown: library 'loc' {/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontsotf loading loading: /home/pavneet/.fonts/opentype/theleagueof-league-gothic-64c3ede/LeagueGothic-Regular.otf (hash: leaguegothic-regular) fontsotf loading font loaded okay fontsotf loading file size: 24472 fontsencoding loading (extended) adobe glyph list ! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-otf.lua:1095: table index is nil stack traceback: ...text/tex/texmf-context/tex/context/base/font-otf.lua:1095: in function 'enhancer' ...text/tex/texmf-context/tex/context/base/font-otf.lua:260: in function 'enhance' ...text/tex/texmf-context/tex/context/base/font-otf.lua:282: in function 'apply' ...text/tex/texmf-context/tex/context/base/font-otf.lua:457: in function 'load' ...text/tex/texmf-context/tex/context/base/font-otf.lua:1942: in function 'otftotfm' ...text/tex/texmf-context/tex/context/base/font-otf.lua:1969: in function ...text/tex/texmf-context/tex/context/base/font-otf.lua:1968 (tail call): ? (tail call): ? (tail call): ? ...text/tex/texmf-context/tex/context/base/font-def.lua:299: in function 'loadfont' ...text/tex/texmf-context/tex/context/base/font-ctx.lua:469: in function 'loadfont' ...text/tex/texmf-context/tex/context/base/font-def.lua:413: in function 'read' ...text/tex/texmf-context/tex/context/base/font-ctx.lua:965: in function 'definefont_two' \directlua :1: in main chunk. system tex error on line 8 in file electricalpanelwarning.tex: LuaTeX error ... -- - - Pavneet Arora Waroc Fine Audio + Custom Home Cinema www.waroc.com 416.937.WAROC (9276) ___ 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] Problem using League of Moveable Type's Gothic font in simple project
Am 11.12.2012 um 19:29 schrieb Pavneet Arora pavneet_ar...@waroc.com: Hello, I have a simple sign that I need to put together with a good title font. Since, I have been looking for a project to try out LoMT's Gothic (http://www.theleagueofmoveabletype.com/league-gothic) I thought that this would be a perfect opportunity. Unfortunately, I am getting some errors from LuaTeX that I am unable to decipher. The context file compiles successfully with other fonts such as Museo via the simplefonts mechanism. Note that the errors come after the message: otf loading font loaded okay and seems related to the adobe glyph list, which I am unfamiliar with. I can reproduce the problem but it’s always useful to provide a minimal example for the problem. \starttext {\definedfont[file:LeagueGothic-Regular*default]Regular} {\definedfont[file:LeagueGothic-Italic*default]Italic} \stoptext Wolfgang ___ 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] Problem using League of Moveable Type's Gothic font in simple project
On 12/11/2012 7:54 PM, Wolfgang Schuster wrote: Am 11.12.2012 um 19:29 schrieb Pavneet Arora pavneet_ar...@waroc.com: Hello, I have a simple sign that I need to put together with a good title font. Since, I have been looking for a project to try out LoMT's Gothic (http://www.theleagueofmoveabletype.com/league-gothic) I thought that this would be a perfect opportunity. Unfortunately, I am getting some errors from LuaTeX that I am unable to decipher. The context file compiles successfully with other fonts such as Museo via the simplefonts mechanism. Note that the errors come after the message: otf loading font loaded okay and seems related to the adobe glyph list, which I am unfamiliar with. I can reproduce the problem but it’s always useful to provide a minimal example for the problem. \starttext {\definedfont[file:LeagueGothic-Regular*default]Regular} {\definedfont[file:LeagueGothic-Italic*default]Italic} \stoptext in font-otf.lua, around line 1061, you can add a check for name: if not name then -- in fact an error report_otf(skipping weird lookup number %s,k) elseif features then (no beta today, I'm in the middle of some experiments) 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 ___