Re: [NTG-context] First time user trying to get Context to work
The problem has been solved. It turned out Ruby is installed twice on my computer. One is the regular download from www.ruby-lang.org, the other one came with cygwin (which I wasn't aware of). The cygwin path string was before the c:\ruby path string. When I moved the c:\ruby path before the cygwin path Context worked correctly. And this took me a full day of hacking. Sigh. Thanks for all your help. Harrie. On Mon, Jul 13, 2009 at 10:22 AM, Hans Hagen pra...@wxs.nl wrote: Harrie Frericks wrote: Problem 2 (not-solved) I'm getting the infamous error: I can't find the format file `cont-en.fmt'! I searched this list and tried texexec --make --all This doesn't solve the problem. The problem is located in this part of the output: did you run 'setuptex' in the tex path first? Hans Yes, I did. It makes no difference. the ./pdftex suggests that your env vars are not set up; on unix make sure that you run . setuptex (with period) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ConTeXt Minimals parsing of .tui broken with ruby 1.9.1 in Windows
Hello all, I want to report a problem that is either in ConTeXt, or in ruby 1.9.1 (last version of ruby). More probably, the problem has to do with ruby handling non-ASCII characters. I have no means of trying Linux, Solaris, etc... Anyone using ConTeXt with ruby 1.9.1 will face it probably (at least in Windows :-) The problem happens with all files, even with the simple Hello: \starttext Hello World \stoptext After installing ConTeXt Minimals (the devel version) yesterday, I ran the above example with ruby 1.9.1-p129 in Windows (both Win 2000 and XP show the problem). Meanwhile I compiled and tried several versions of Ruby, and found the following pattern of problems: ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32] PROBLEM ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mingw32]PROBLEM ruby 1.9.0 (2008-10-04 revision 19669) [i386-mingw32] No problem ruby 1.8.7 (2009-06-12 patchlevel 174) [i386-mingw32] No problem ruby 1.8.6 (2009-06-08 patchlevel 369) [i386-mingw32] No problem So, whatever it is, it is broken with ruby 1.9.1. All the versions of ruby were compiled in Windows using the mingw toolchain, with GCC 3.4.5. Here is the description of what happens When texutil parses the .tui file, I get the following (see comments after this text output): - ... Output written on con-hello1.pdf (1 page, 21759 bytes). Transcript written on con-hello1.log. TeXUtil | parsing file con-hello1.tui TeXUtil | debug 1 jasa #File:0x1271d18 xxx c \thisissectionseparator{-} xxx c \thisisutilityversion{2008.10.14} xxx c \thisisbytesequence{?+Ç} TeXUtil | fatal error in parsing con-hello1.tui TeXUtil | shortcuts : 0 TeXUtil | expansions: 0 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 0 TeXUtil | temporary files: 0 TeXUtil | commands: 2 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | runtime: 2.703125 The lines with debug 1 jasa and starting with xxx result from the simple debug code I inserted in the file texutil.rb to find the problematic line. The error happens when the following ruby code is executed: (the extra debug lines have a mark # jasa ) -- texutil.rb (snippet, around line 1025) -- def loaded(filename) begin tuifile = File.suffixed(filename,'tui') if FileTest.file?(tuifile) then report(parsing file #{tuifile}) if f = open(tuifile) then report(debug 1 jasa #{f}) # jasa f.each do |line| print xxx #{line} # jasa case line.chomp when /^f (.*)$/o then @plugins.reader('MyFiles',$1.splitdata) when /^c (.*)$/o then @plugins.reader('MyCommands', [$1]) when /^e (.*)$/o then @plugins.reader('MyExtras', $1.splitdata) when /^s (.*)$/o then @plugins.reader('MySynonyms', $1.splitdata) when /^r (.*)$/o then @plugins.reader('MyRegisters',$1.splitdata) when /^p (.*)$/o then @plugins.reader('MyPlugins', $1.splitdata) when /^x (.*)$/o then @plugins.reader('MyKeys', $1.splitdata) when /^r (.*)$/o then # nothing, not handled here else # report(unknown entry #{line[0,1]} in line #{line.chomp}) end end f.close end else report(unable to locate #{tuifile}) end rescue report(fatal error in parsing #{tuifile}) @filename = 'texutil' else @filename = filename end end --- From the debugging lines that are expelled, it is clear that the line in the .tui file that triggers the problem is: c \thisisbytesequence{ ...non-ASCII codes... } and, precisely, it s the second line of the 'case': when /^c (.*)$/o then @plugins.reader('MyCommands', [$1]) which processes the .tui line and triggers the 'rescue' clause. So I think the problem lies in the digestion of non-ASCII characters by the last version of Ruby. I don't know what is the meaning of the \thisisbytesequence line in ConTeXt and the maening of those non-ASCII chars. I followed the @plugins.reader('MyCommands', [$1]) and figured out that what raises the exception happens before the @plugins.reader method, since it is never reached when the \thisisbytesequence line is
Re: [NTG-context] ConTeXt Minimals parsing of .tui broken with ruby 1.9.1 in Windows
Jose Augusto wrote: Hello all, I want to report a problem that is either in ConTeXt, or in ruby 1.9.1 (last version of ruby). More probably, the problem has to do with ruby handling non-ASCII characters. I have no means of trying Linux, Solaris, etc... Anyone using ConTeXt with ruby 1.9.1 will face it probably (at least in Windows :-) The problem happens with all files, even with the simple Hello: \starttext Hello World \stoptext After installing ConTeXt Minimals (the devel version) yesterday, I ran the above example with ruby 1.9.1-p129 in Windows (both Win 2000 and XP show the problem). (maybe mojca can patch this in core-uti.mkii: ): % \appendtoks % \immediatewriteutilitycommand{\thisisbytesequence{\testbytesequence}}% % \to \everyopenutilities \let\testbytesequence \empty % keep this \let\thisisbytesequence\gobbleoneargument % keep this The reason for this test is that in the past there were engines around that were 8 bit but configured to be 7 bit. Especially tetex was a problem but as that is now obsolete we can remove this test. Meanwhile I compiled and tried several versions of Ruby, and found the following pattern of problems: ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32] PROBLEM ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mingw32]PROBLEM ruby 1.9.0 (2008-10-04 revision 19669) [i386-mingw32] No problem ruby 1.8.7 (2009-06-12 patchlevel 174) [i386-mingw32] No problem ruby 1.8.6 (2009-06-08 patchlevel 369) [i386-mingw32] No problem So, whatever it is, it is broken with ruby 1.9.1. All the versions of ruby were compiled in Windows using the mingw toolchain, with GCC 3.4.5. actually, ruby 1.9+ broke the scripts anyway, as some file related functionality was no longer available (and moved to modules) so i already adapted all the ruby scripts From the debugging lines that are expelled, it is clear that the line in the ..tui file that triggers the problem is: c \thisisbytesequence{ ...non-ASCII codes... } and, precisely, it s the second line of the 'case': when /^c (.*)$/o then @plugins.reader('MyCommands', [$1]) which processes the .tui line and triggers the 'rescue' clause. So I think the problem lies in the digestion of non-ASCII characters by the last version of Ruby. looks that way ... quite disturbing if they changed the default; maybe they move to utf8 but then i'd expect that to happen in 2+ versions thanks for looking into it Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt Minimals parsing of .tui broken with ruby 1.9.1 in Windows
After installing ConTeXt Minimals (the devel version) yesterday, I ran the above example with ruby 1.9.1-p129 in Windows (both Win 2000 and XP show the problem). (maybe mojca can patch this in core-uti.mkii: ): % \appendtoks % \immediatewriteutilitycommand{\thisisbytesequence{\testbytesequence}}% % \to \everyopenutilities \let\testbytesequence \empty % keep this \let\thisisbytesequence\gobbleoneargument % keep this Done, but untested. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] TeXLive newbie can't run Context
I'm the newest of newbies and have installed of TexLive on a PC running Vista. The post-installation tests described in Section 3.5 of the TeXLive Guide run just fine (Tex, LaTex, pdfLaTex). No tests were included for Context, so I failed around trying to run Texexec amd Texmfstart to no good end. How can I determine if Context was installed properly and how do I run Context? Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey Football player w C small image003.jpg___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXLive newbie can't run Context
Tom wrote: I'm the newest of newbies and have installed of TexLive on a PC running Vista. The post-installation tests described in Section 3.5 of the TeXLive Guide run just fine (Tex, LaTex, pdfLaTex). No tests were included for Context, so I failed around trying to run Texexec amd Texmfstart to no good end. How can I determine if Context was installed properly and how do I run Context? did you install ruby? as an alternative take the minimals from the context garden as they are more up to date (as well as much smaller) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] verses together
Ciro Soto wrote: I am writing a book with poems and need to maintain four, sometimes five, lines together in the same page. I don't know in advance which four lines will be split at the end of the page. How would I implement this? Using \testpage[n] works, only if I know in advance where the the split happens. add this to your local cont-new.tex file (after \protect): \def\startlines {\@@rgbefore \pushmacro\checkindentation \whitespace %\page[\v!preference]} gaat mis na koppen, nieuw: later \nobreak \begingroup \setupindenting[\@@rgindenting]% \typesettinglinestrue \setupwhitespace[\v!none]% \obeylines \ignorespaces \gdef\afterfirstobeyedline % tzt two pass, net als opsomming {\gdef\afterfirstobeyedline {\nobreak \doifnot\@@rgoption\v!packed{\global\let\afterfirstobeyedline\relax}}}% \def\obeyedline {\par \futurelet\next\dobetweenthelines}% \activatespacehandler\@@rgspace \GotoPar} \def\dobetweenthelines {\doifmeaningelse\next\obeyedline {\@@rginbetween} {\afterfirstobeyedline}} \setuplines [\c!option=, \c!before=\blank, \c!after=\blank, \c!inbetween=\blank, \c!indenting=\v!no, \c!space=\v!default] -- -- -- -- test: (the packed option is new) \setuplines[indenting={yes,medium,odd},option=packed] % no yes odd even \starttext \dorecurse{33}{test\par} \startlines first second third fourth first second third fourth first second third fourth first second third fourth \stoplines \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXLive newbie can't run Context
Hans, I didn't explicitly install ruby because I thought that was done automatically as part of the TexLive install. A ruby folder exists as c:\Program Files\texlive\2008\texmf-dist\scripts\context\ruby and has files in it. Where can instructions for installing ruby be found? Thanks, Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Hans Hagen Sent: Tuesday, July 14, 2009 12:31 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] TeXLive newbie can't run Context Tom wrote: I'm the newest of newbies and have installed of TexLive on a PC running Vista. The post-installation tests described in Section 3.5 of the TeXLive Guide run just fine (Tex, LaTex, pdfLaTex). No tests were included for Context, so I failed around trying to run Texexec amd Texmfstart to no good end. How can I determine if Context was installed properly and how do I run Context? did you install ruby? as an alternative take the minimals from the context garden as they are more up to date (as well as much smaller) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] alpha release
Hi I've put an alpha release on the website - no beta as mkiv needs the trunk version of luatex - a close to complete split in mkii/mkiv - cleaned up mkiv code - cleaned up mkiv backend (some pending issues) - some speedups in mkiv - a few fixes in mkii - updated mkiv typescripts (more to come) - fixes in mkiv structure this version is not replicated on the context garden as we run older luatex binaries there (0.45 release by the end of this month) you can unzip this file on your locla tree but best first rename the tex/context/base directory and make a fresh one as otherwise you end up with a weird mixture (due to the definitive split in .mkii/.mkiv there are not that many shared .tex files any more) on the upcoming tex live there will be an updated mkii (either this one or the current beta which is basically a current for mkii) and an old mkiv (maybe the beta) or a new one but that one will not run then with the luatex on texlive as it is too old; this is no big deal as you can either use the minimals or use the new updater in the upcoming tex live to fetch newer binaries (norbert and mojca showed that trickery at bachotek 2009) next on the mkiv agenda is an upgrade/rework of everything related to page building but it might as well be postponed till we have a bit more access (which will happen sometime after eurotex); the first priority is to get the new structure related code right but as idris is already publising books made by mkiv it's not that bad as it sounds. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXLive newbie can't run Context
Tom wrote: Hans, I didn't explicitly install ruby because I thought that was done automatically as part of the TexLive install. A ruby folder exists as c:\Program Files\texlive\2008\texmf-dist\scripts\context\ruby and has files in it. Where can instructions for installing ruby be found? i normally google for one (there are a couple of installers, just take a native windows version) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Two newbie questions about Texfont
Now that I finally have Context running I'm trying to install a number of type1 fonts. I've read the Texfont manual, but I couldn't find answers to these questions: 1. Can Texfont recursively process a font tree? I have a directory font tree like this: c:\fonts\type1\font-family1 c:\fonts\type1\font-family2 c:\fonts\type1\font-family3 each font-family subdirectory has a number of .afm files. If I set --sourcepath to c:\fonts\type1 can Texfont recurse all the subdirectories of the font families and locate and process the .afm files? 2. Can Texfont handle .afm files with extensions in uppercase? Most of my type1 font files are in uppercase like: XYZ_.AFM I can only get Texfont to process these files if I first rename them to lowercase, like XYZ_.AFM Thanks, Harrie. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Two newbie questions about Texfont
Harrie Frericks wrote: Now that I finally have Context running I'm trying to install a number of type1 fonts. I've read the Texfont manual, but I couldn't find answers to these questions: 1. Can Texfont recursively process a font tree? I have a directory font tree like this: c:\fonts\type1\font-family1 c:\fonts\type1\font-family2 c:\fonts\type1\font-family3 each font-family subdirectory has a number of .afm files. If I set --sourcepath to c:\fonts\type1 can Texfont recurse all the subdirectories of the font families and locate and process the .afm files? 2. Can Texfont handle .afm files with extensions in uppercase? Most of my type1 font files are in uppercase like: XYZ_.AFM I can only get Texfont to process these files if I first rename them to lowercase, like XYZ_.AFM since you're new to context you can consider skipping pdftex and moving on to either xetex or luatex (which uses context mkiv) for luatex/mkiv you don't need to mess around with fonts as this combo directly handles afm/pfb files so there is no need for creating tfm metrics Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Two newbie questions about Texfont
Thanks, Hans, I will look into that. Harrie On Tue, Jul 14, 2009 at 8:13 PM, Hans Hagen pra...@wxs.nl wrote: Harrie Frericks wrote: Now that I finally have Context running I'm trying to install a number of type1 fonts. I've read the Texfont manual, but I couldn't find answers to these questions: 1. Can Texfont recursively process a font tree? I have a directory font tree like this: c:\fonts\type1\font-family1 c:\fonts\type1\font-family2 c:\fonts\type1\font-family3 each font-family subdirectory has a number of .afm files. If I set --sourcepath to c:\fonts\type1 can Texfont recurse all the subdirectories of the font families and locate and process the .afm files? 2. Can Texfont handle .afm files with extensions in uppercase? Most of my type1 font files are in uppercase like: XYZ_.AFM I can only get Texfont to process these files if I first rename them to lowercase, like XYZ_.AFM since you're new to context you can consider skipping pdftex and moving on to either xetex or luatex (which uses context mkiv) for luatex/mkiv you don't need to mess around with fonts as this combo directly handles afm/pfb files so there is no need for creating tfm metrics Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ruby or perl or lua or ...
hi hans---just curious. do you plan conTeXt to use just one computer language in the future? /iaw ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] XML one more time.
I have the xml sources for the Gimp manual. I can't seem to get them to translate to a pdf. The top xml file just contains a series of calls to subordinate files. When I run this through Context I get just the text of the first file in no particular format and none of the subfiles. I have tried texexec --environment=gimp gimp.xml and texexec --environment=xml gimp.xml The Gimp advice is to use dblatex, but that seems to think it is on a Windows system and generates errors containing code like c:\foo Now I can hand convert each and every xml statement in each and every subfile to a TeX equivalent but there should be a shorter way. There are more than 600 subfiles. Or I can write a program to do that to either the xml source or the html derivative. But I hope Context will enable me to do it with less labor. BTW the html generation works flawlessly following the approved Gimp script. -- John Culleton Create Book Covers with Scribus/e-book $5.95 http://www.booklocker.com/books/4055.html ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ruby or perl or lua or ...
On Tue, Jul 14, 2009 at 21:09, ivo welch wrote: hi hans---just curious. do you plan conTeXt to use just one computer language in the future? (even though I'm not Hans ...) No. At least TeX, lua and metapost will probably stay, so that already adds to three languages :) :) :) If talking about scripting (ruby, perl) ... in ideal world it should all end up being lua only (until the next language comes to the horizon), but there might not be enough motivation to rewrite *all* the existing scripts, so some of the older scripts (texfont etc.) will probably stay in ruby/perl for a while/forever unless somebody else rewrites them or unless Hans will need them. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXLive newbie can't run Context
Hans, Please pardon these very basic questions. Do I understand correctly that Context requires that a Ruby compiler that is not part of the TexLive package be installed? I had not previously heard of the Ruby language so know nothing about it. I assume that there are competing compilers/interpreters for the language and various releases of those compilers. Which compilers are compatible with TexLive? Does this compiler need to be installed in any particular directory? Thanks, Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Hans Hagen Sent: Tuesday, July 14, 2009 1:40 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] TeXLive newbie can't run Context Tom wrote: Hans, I didn't explicitly install ruby because I thought that was done automatically as part of the TexLive install. A ruby folder exists as c:\Program Files\texlive\2008\texmf-dist\scripts\context\ruby and has files in it. Where can instructions for installing ruby be found? i normally google for one (there are a couple of installers, just take a native windows version) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ruby or perl or lua or ...
ivo welch wrote: hi hans---just curious. do you plan conTeXt to use just one computer language in the future? indeed. most useful script are already converted to lua (mtx-* files that run on top of mtxrun); the advantage is that mtxrun has a built in filedatabase handler (so we don't use kpsewhich at all) and is pretty fast the only bit that is still depending on ruby is the index sorting that is built in texexec (used by pdftex and xetex) but i could not motivate myself to rewrite that bit the luatx workflow only uses lua and uses luatex itself as lua interpreter so there are no dependencies Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TeXLive newbie can't run Context
On Tue, 14 Jul 2009, Tom wrote: Hans, Please pardon these very basic questions. Do I understand correctly that Context requires that a Ruby compiler that is not part of the TexLive package be installed? I had not previously heard of the Ruby language so know nothing about it. I assume that there are competing compilers/interpreters for the language and various releases of those compilers. Which compilers are compatible with TexLive? Does this compiler need to be installed in any particular directory? For windows, see http://wiki.contextgarden.net/Ruby_Installation Aditya ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ruby or perl or lua or ...
Mojca Miklavec wrote: On Tue, Jul 14, 2009 at 21:09, ivo welch wrote: hi hans---just curious. do you plan conTeXt to use just one computer language in the future? (even though I'm not Hans ...) No. At least TeX, lua and metapost will probably stay, so that already adds to three languages :) :) :) If talking about scripting (ruby, perl) ... in ideal world it should all end up being lua only (until the next language comes to the horizon), but there might not be enough motivation to rewrite *all* the existing scripts, so some of the older scripts (texfont etc.) will probably stay in ruby/perl for a while/forever unless somebody else rewrites them or unless Hans will need them. we'll see how many context+pdftex users are around in a few years from now; of course i'll have a few existing workflows that use pdftex (and probably for many years) but one seldom needs to generate fonts for that actually yesterday i had to update a pdftex based style and generate tfm's for an ttf font and of course the font was so bugged that i needed fontforge to turn it into a proper pfb file with adobe encoding; the original had a completely messed glyph names; interesting is that mkiv/luatex works ok with that font but of course the unicode vector in the pdf will be flaky as well Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML one more time.
Am 14.07.2009 um 21:23 schrieb John Culleton: I have the xml sources for the Gimp manual. I can't seem to get them to translate to a pdf. The top xml file just contains a series of calls to subordinate files. When I run this through Context I get just the text of the first file in no particular format and none of the subfiles. I have tried texexec --environment=gimp gimp.xml and texexec --environment=xml gimp.xml The Gimp advice is to use dblatex, but that seems to think it is on a Windows system and generates errors containing code like c:\foo Now I can hand convert each and every xml statement in each and every subfile to a TeX equivalent but there should be a shorter way. There are more than 600 subfiles. Or I can write a program to do that to either the xml source or the html derivative. But I hope Context will enable me to do it with less labor. You have to define what should happen with each file in the docbook source, there is a old module for ConTeXt to do this but I don't know if it works with a recent installation. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML one more time.
Wolfgang Schuster wrote: You have to define what should happen with each file in the docbook source, there is a old module for ConTeXt to do this but I don't know if it works with a recent installation. no (as it overloads core macros) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___