From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32350 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Making a verbatim file for another language Date: Fri, 29 Dec 2006 10:37:29 -0500 (EST) Message-ID: References: <58E326FC-9E9E-487E-A9D4-2CCA840F0E4D@mac.com> <6faad9f00612261047s2f12559es8b3d33e54261a70@mail.gmail.com> <491FFCED-C4FF-4827-9F7C-C5AFF7F27D86@mac.com> <7AC887FE-D047-4DD3-B152-54281A998401@mac.com> <6faad9f00612281547u4f9d91e8v9deec1e6f460053d@mail.gmail.com> <6faad9f00612290509n5694464er42ff74533b62d022@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167406679 12189 80.91.229.10 (29 Dec 2006 15:37:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Dec 2006 15:37:59 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 29 16:37:57 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by dough.gmane.org with esmtp (Exim 4.50) id 1H0Jnp-0000Lf-Tz for gctc-ntg-context-518@m.gmane.org; Fri, 29 Dec 2006 16:37:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B1A4E2013D; Fri, 29 Dec 2006 16:35:42 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22142-01-2; Fri, 29 Dec 2006 16:35:35 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E232820116; Fri, 29 Dec 2006 16:35:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DE94E20139 for ; Fri, 29 Dec 2006 16:35:32 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21822-03-3 for ; Fri, 29 Dec 2006 16:35:26 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with SMTP id 0A6DD20131 for ; Fri, 29 Dec 2006 16:35:25 +0100 (CET) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY tombraider.mr.itd.umich.edu ID 45953639.B9693.22204 ; 29 Dec 2006 10:37:30 -0500 Original-To: mailing list for ConTeXt users In-Reply-To: <6faad9f00612290509n5694464er42ff74533b62d022@mail.gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32350 Archived-At: On Fri, 29 Dec 2006, Mojca Miklavec wrote: > On 12/29/06, cormullion@mac.com wrote: > > OK, I think vim works OK here, so this is what I tried: > > > > ... > > \setupcolors[state=start] > > > > \usemodule[vimsyntax] > > > > \definetypeVIMfile [typeRUBY] [syntax=ruby] > > > > \typeRUBY[typeRUBY]{fibo.rb} > > > > \defineVIMtyping[RUBY][syntax=ruby] > > > > \startRUBY > > # This is a ruby program > > > > puts "Hello World" > > \stopRUBY > > ... > > > > Error message was this: > > > > system : no macros found in module vimsyntax > > Weird! Do you have a file t-vimsyntax.tex in the same folder as the > file where you're running the sample? An alternative is to place the > file under [texmf]/tex/context/third/t-vimsyntax.tex and then run > "[sudo] mktexlsr". > > But in any case you need to have 2context.vim in the same folder > (there is no support for an arbitrary path of the script yet). > > > ! Undefined control sequence. > > l.15 \definetypeVIMfile > > [typeRUBY] [syntax=ruby] > > > > So it looks like it didn't really get started... The files t- > > vimsyntax.text and 2context.vim are rattling loose in the directory... > > It has to be *t-vimsyntax.tex*, not *.text*, if that's the case. But > if I try to rename the file, I get "module vimsyntax not found", while > you get "no macros found in module vimsyntax". > > While googling through the archive I've found the following message: > http://archive.contextgarden.net/message/20050215.182506.0838140e.en.html > > Citing: > > tracefiles showed that ConTeXt was expecting a file > > name with six or less characters after t-; my module was called > > t-utfgreek, so ConTeXt was looking for t-utfgre and couldn't find it You can also try renaming t-vimsyntax.tex to t-vims.tex and then using \usemodule[vims] But with an old ConTeXt, there can be other things that do not work. The best thing will be to update. > Which version of TeX/ConTeXt are you using? (Perhaps Hans has changed > something in the meantime, to make that work again.) Are you using > Gerben's i-Installer? In that case and if you have a chance, can you > please test the new TeXLive-based distribution? > > (I didn't know that 8-char was still a limitation nowadays.) AFAIK, it is not. The 8-char limitation was removed about two years ago. Aditya