From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17807 Path: main.gmane.org!not-for-mail From: Rob Ermers Newsgroups: gmane.comp.tex.context Subject: Re: m-letter.tex -- backslash interpretation error Date: Mon, 10 Jan 2005 18:10:11 +0100 Message-ID: <41E2B6F3.7050206@hccnet.nl> References: <20050107183527.GA21057@fly.srk.fer.hr> <20050107192353.5796@news.comp.lancs.ac.uk> <41E13A7A.4060007@hccnet.nl> <41E18E52.5040108@wxs.nl> Reply-To: r.ermers@hccnet.nl, mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000009050405030103070400" X-Trace: sea.gmane.org 1105376645 30029 80.91.229.6 (10 Jan 2005 17:04:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2005 17:04:05 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 10 18:03:56 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Co2xQ-0005fW-00 for ; Mon, 10 Jan 2005 18:03:56 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D8DFF1276F; Mon, 10 Jan 2005 18:03:54 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02182-02; Mon, 10 Jan 2005 18:03:53 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 016C2127A6; Mon, 10 Jan 2005 18:03:52 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6CC92127A6 for ; Mon, 10 Jan 2005 18:03:51 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02208-01 for ; Mon, 10 Jan 2005 18:03:50 +0100 (CET) Original-Received: from hnexfe06.hetnet.nl (unknown [195.121.6.172]) by ronja.ntg.nl (Postfix) with ESMTP id 3074E1276F for ; Mon, 10 Jan 2005 18:03:50 +0100 (CET) Original-Received: from [127.0.0.1] ([81.206.233.107]) by hnexfe06.hetnet.nl with Microsoft SMTPSVC(5.0.2195.6874); Mon, 10 Jan 2005 18:03:49 +0100 User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <41E18E52.5040108@wxs.nl> X-OriginalArrivalTime: 10 Jan 2005 17:03:49.0496 (UTC) FILETIME=[5AAF7780:01C4F736] X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17807 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17807 This is a multi-part message in MIME format. --------------000009050405030103070400 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable Hans, thanks for your reaction! Here is the minimal example: 1. brief-test.tex is the letter. 2. brief-inhoud-test is the letter content. 3. test-data.xml contains some addresses The problem is that any backslash in the letter content is changed into=20 `` in the pdf file. In the "reference" I also put a backslash (after the=20 item "concerns"), but this one survives. To get that result I use: \startsetups[letter:content] \input brief-inhoud-test.tex \stopsetups If I use \startbuffer[texletter] \input brief-inhoud-test.tex \stopbuffer the content is not loaded into the letter at all; the result is then=20 ``input brief-inhoud-test.tex instead of the content of the file. The encoding problem with \ is described in one of your manuals, but I=20 really don't know where to repair it. A second problem is that the first address slides down to the content=20 much more than it should. I tried to circumvent that by inserting a=20 dummy address. Thanks in advance, Robert Ermers h h extern wrote: > Rob Ermers wrote: >=20 >> Dear Friends, >> >> It seems I am really having a problem. The backslash in my import=20 >> document yields =93. >> >> \startsetups[letter:content] >> \input brieftekst >> \stopsetups >> >> My document (brieftext.tex) among other things contains the following=20 >> string: >> >> ge\"interesseerde, which yields --> ge=93=94interesseerde >> >> I am unable to use any normal code in my text, which is very problemat= ic! >=20 >=20 > ... a minimal example ... >=20 > looks like an encoding mismatch or so >=20 > Hans >=20 > ----------------------------------------------------------------- > 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 > ----------------------------------------------------------------- >=20 > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context >=20 >=20 --------------000009050405030103070400 Content-Type: text/xml; name="test-data.xml" Content-Disposition: inline; filename="test-data.xml" Content-Transfer-Encoding: quoted-printable =EF=BB=BF

Dummy

Dummy

test

test

J. Jansen

Langeweg 66

Aalsterweg 29

1234 AB Eindhoven

J. Pietersen

Korteweg 66

Aalsterweg 29

B-1234 Zonhoven

J. van den Berg

Laan der Drie\"eenheid

1234 AB Beginhoven

num297 num1 num3 num3 =20
--------------000009050405030103070400 Content-Type: text/plain; name="brief-inhoud-test.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="brief-inhoud-test.tex" Hierbij deel ik u mede dat we hier erg effici\"ent werken en niet ge\"interesseerd zijn in ge\"evolueerde dieselmotoren. --------------000009050405030103070400 Content-Type: text/plain; name="brief-test.tex" Content-Disposition: inline; filename="brief-test.tex" Content-Transfer-Encoding: quoted-printable =EF=BB=BF%starttext \setups [letter:place] \stoptext \endinput \setupoutput[pdftex] %\tracelayerstrue %\usemodule[xtag-ini] \usemodule[corres] \usemodule[letter-re] \mainlanguage[nl] \setupbodyfont[ss] %\setvariables[letter:head][graphic=3Dbriefpapier-mo-p.010.pdf] \definelayer [letternext] [state=3Dnext, % graphic=3Dbriefpapier-mo-p.011.pdf, width=3D\paperwidth, height=3D\paperheight] \setvariables [letter:reference] [line=3D2, noflines-min=3D2, noflines-max=3D5, noflines=3D\getvariable{letter:reference}{noflines-max} ] \setvariables [letter:style] [opening=3Dformal, closing=3Dformal] %\setvariables % [letter:data] % [opening=3D, % initials=3D, % prefix=3D, % suffix=3D, % informalname=3D, % formalname=3D] % noflines=3D10] \setvariables[letter:address][line=3D6, hoffset=3D100mm,width=3D70mm] %\startsetups[contact:handle] %\XMLflush{address} \endgraf %\stopsetups %\startbuffer[texletter] %\input brieftekst-pol-jan2005 %\stopbuffer \startsetups[letter:content] \input brief-inhoud-test.tex \stopsetups \setvariables [letter:data] [address=3D\XMLflush{address}, %prefix=3D\XMLflush{prefix}, %initials=3D\XMLflush{initials}, %formalname=3D\XMLflush{formalname}, %informalname=3D\XMLflush{informalname} %content=3D{\getbuffer[texletter]}, %,content=3D\getbuffer concerns=3DGe\"interesseerd?, date=3D10 januari 2005, author=3DDr. R.J.H.= M. Ermers ] \setvariables[contacts][selection=3Dn, file=3Dtest-data.xml] \startsetups[contact:handle] \setups[letter:place] \stopsetups \XMLprocesscontacts[test-data.xml] \starttext %\setups[letter:place] \stoptext=20 --------------000009050405030103070400 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------000009050405030103070400--