From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36814 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: How to process simple HTML files with LuaTeX Date: Tue, 2 Oct 2007 05:17:14 +0200 Message-ID: <6faad9f00710012017i174a4023p90c597279e37e79@mail.gmail.com> References: <6faad9f00709130604j6d28699didefe1c18a3a90ec@mail.gmail.com> <46E9B816.3070102@wxs.nl> <6faad9f00709140646w29f06cd1m5859305eb5635e45@mail.gmail.com> <46EA9880.1060100@wxs.nl> <6faad9f00709160329m54c6331pcc0bef9176450578@mail.gmail.com> <46EDA644.1090001@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1191295231 3408 80.91.229.12 (2 Oct 2007 03:20:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Oct 2007 03:20:31 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 02 05:20:25 2007 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 lo.gmane.org with esmtp (Exim 4.50) id 1IcYJ7-0006L5-AI for gctc-ntg-context-518@m.gmane.org; Tue, 02 Oct 2007 05:20:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3EE6B1FB7E; Tue, 2 Oct 2007 05:20:21 +0200 (CEST) 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 32652-01; Tue, 2 Oct 2007 05:20:20 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9A6851FB64; Tue, 2 Oct 2007 05:17:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F27DD1FB62 for ; Tue, 2 Oct 2007 05:17:22 +0200 (CEST) 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 31559-07-11 for ; Tue, 2 Oct 2007 05:17:17 +0200 (CEST) Original-Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.224]) by ronja.ntg.nl (Postfix) with ESMTP id 107E81FB5B for ; Tue, 2 Oct 2007 05:17:16 +0200 (CEST) Original-Received: by nz-out-0506.google.com with SMTP id m7so3477263nzf for ; Mon, 01 Oct 2007 20:17:15 -0700 (PDT) Original-Received: by 10.114.149.2 with SMTP id w2mr1038208wad.1191295034803; Mon, 01 Oct 2007 20:17:14 -0700 (PDT) Original-Received: by 10.115.15.15 with HTTP; Mon, 1 Oct 2007 20:17:14 -0700 (PDT) In-Reply-To: <46EDA644.1090001@wxs.nl> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:36814 Archived-At: On 9/16/07, Hans Hagen wrote: > > i rewrote the parser (both xml and semi-xpath) so it may have been > broken, i'll upload a new beta tomorrow Hello Hans, Thanks a lot for fixing the issue with non-working \xmlatt. Now, I'm still slightly lost regarding two issues: - How to remove unneeded space? With \ignorespaces? - How to use the new verbatim code? I have tried to use \xmlsetfunction{main}{pre}{lxml.verbatim} but it didn't really work. % test.tex: \startxmlsetups all:html \xmlsetsetup{main}{h1|pre}{*} \stopxmlsetups \xmlregistersetup{all:html} % is this the proper way? \startxmlsetups h1 \subject{\ignorespaces\xmlflush{#1}} \stopxmlsetups \startxmlsetups pre {\bgroup\tt\obeylines\xmlflush{#1}\egroup} \stopxmlsetups \starttext \xmlprocess{main}{test.html}{} \stoptext % test.html

How to get rid of this spacing in some elegant way?

Title followed by a paragraph ...

and
some source
c@de
Also, this fails because of the empty line:

How to get rid of this spacing in some elegant way?

Thanks a lot, 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 ___________________________________________________________________________________