From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32347 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: Making a verbatim file for another language Date: Fri, 29 Dec 2006 14:09:21 +0100 Message-ID: <6faad9f00612290509n5694464er42ff74533b62d022@mail.gmail.com> 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> 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 1167397790 18778 80.91.229.10 (29 Dec 2006 13:09:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Dec 2006 13:09:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 29 14:09:47 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 1H0HUT-0006Hi-SK for gctc-ntg-context-518@m.gmane.org; Fri, 29 Dec 2006 14:09:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5EF8820008; Fri, 29 Dec 2006 14:07:35 +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 14553-02; Fri, 29 Dec 2006 14:07:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 998651FFF1; Fri, 29 Dec 2006 14:07:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E8D0E20001 for ; Fri, 29 Dec 2006 14:07:22 +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 14729-01-4 for ; Fri, 29 Dec 2006 14:07:16 +0100 (CET) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by ronja.ntg.nl (Postfix) with SMTP id 45B1E1FF78 for ; Fri, 29 Dec 2006 14:07:16 +0100 (CET) Original-Received: by nf-out-0910.google.com with SMTP id l37so5151177nfc for ; Fri, 29 Dec 2006 05:09:21 -0800 (PST) Original-Received: by 10.48.48.18 with SMTP id v18mr18877922nfv.1167397761279; Fri, 29 Dec 2006 05:09:21 -0800 (PST) Original-Received: by 10.48.209.2 with HTTP; Fri, 29 Dec 2006 05:09:21 -0800 (PST) Original-To: "mailing list for ConTeXt users" In-Reply-To: Content-Disposition: inline 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:32347 Archived-At: 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 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.) Mojca