From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72065 Path: news.gmane.org!not-for-mail From: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Newsgroups: gmane.comp.tex.context Subject: Re: ConvertToConteXt - convert special ConTeXt-characters (PHP) Date: Tue, 01 Nov 2011 18:21:22 +0100 Message-ID: <87fwi792st.fsf@micropit.couberia.bzh> References: <4EB01B4D.2070601@gmx.de> 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: dough.gmane.org 1320168100 24554 80.91.229.12 (1 Nov 2011 17:21:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2011 17:21:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 01 18:21:35 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RLI1n-0002Dt-ME for gctc-ntg-context-518@m.gmane.org; Tue, 01 Nov 2011 18:21:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1C29DCB098; Tue, 1 Nov 2011 18:21:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IVOiJB4tqEvQ; Tue, 1 Nov 2011 18:21:29 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 289BECB0A8; Tue, 1 Nov 2011 18:21:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 036E1CB0A8 for ; Tue, 1 Nov 2011 18:21:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hhttdECZ0tQE for ; Tue, 1 Nov 2011 18:21:24 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 78203CB098 for ; Tue, 1 Nov 2011 18:21:24 +0100 (CET) Original-Received: from smtp.smtpout.orange.fr (smtp04.smtpout.orange.fr [80.12.242.126]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pA1HLNR7006265 for ; Tue, 1 Nov 2011 18:21:24 +0100 Original-Received: from micropit.couberia.bzh ([2.12.37.122]) by mwinf5d51 with ME id rtMP1h0022e7Fde03tMP9Y; Tue, 01 Nov 2011 18:21:23 +0100 X-ME-engine: default Original-Received: by micropit.couberia.bzh (Postfix, from userid 1000) id DB0AF500669; Tue, 1 Nov 2011 18:21:22 +0100 (CET) In-Reply-To: <4EB01B4D.2070601@gmx.de> (Jan Heinen's message of "Tue, 01 Nov 2011 17:16:13 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.12.242.126; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bFPRlnq9 - 5fe4336ba8b5 - 20111101 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:72065 Archived-At: On Tue, Nov 01 2011, Jan Heinen wrote: > $xstring = str_replace ( "!", "\\char33", $xstring ); // Why is "!" special in ConTeXt? (same question applies for many other characters) With \asciimode there is probably only one character to convert: "\" (and the sequence "%%", that should be quite rare) -- Peter ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________