From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87156 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: automatically adding commands to some characters Date: Mon, 28 Apr 2014 18:10:16 -0400 Message-ID: <535ED1C8.5000506@rik.users.panix.com> References: <535ECDEF.70905@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1906796555==" X-Trace: ger.gmane.org 1398723059 8595 80.91.229.3 (28 Apr 2014 22:10:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2014 22:10:59 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 29 00:10:53 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wetl9-0001i2-2q for gctc-ntg-context-518@m.gmane.org; Tue, 29 Apr 2014 00:10:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8BD201021E for ; Tue, 29 Apr 2014 00:10:46 +0200 (CEST) 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 dHEl4bu-SR4u for ; Tue, 29 Apr 2014 00:10:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0A7B610217 for ; Tue, 29 Apr 2014 00:10:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 23E21101E7 for ; Tue, 29 Apr 2014 00:10:36 +0200 (CEST) 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 duOIHdhzjJPl for ; Tue, 29 Apr 2014 00:10:34 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 8F651101E1 for ; Tue, 29 Apr 2014 00:10:26 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3SMAORg018323 for ; Tue, 29 Apr 2014 00:10:25 +0200 Original-Received: from [192.168.201.179] (cpe-67-240-55-150.nycap.res.rr.com [67.240.55.150]) by mailbackend.panix.com (Postfix) with ESMTP id 8AE812EB31 for ; Mon, 28 Apr 2014 18:10:23 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <535ECDEF.70905@gmx.es> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=New York; city=Richmond Hill; latitude=40.7005; longitude=-73.8345; http://maps.google.com/maps?q=40.7005,-73.8345&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WLTyao0s - 2d42f651aaa4 - 20140429 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87156 Archived-At: This is a multi-part message in MIME format. --===============1906796555== Content-Type: multipart/alternative; boundary="------------090200090602050305020103" This is a multi-part message in MIME format. --------------090200090602050305020103 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2014-04-28 17:53, Pablo Rodriguez wrote: > Dear list, > > with slashes and en-dashes I experience the following in ConTeXt: > sometimes I need to add an \hskip0pt command after them to allow > linebreaks. One example would be "Council Directive 93/98/EEC". > > The issue comes when using ConTeXt as target format from markdown > sources. pandoc generates the file, but it makes no sense to edit the > ConTeXt source. > > Is there any command that allows the addition of arbitrary commands when > a character appears in text? I mean, a way that internally replaces > "Council Directive 93/98/EEC" with "Council Directive 93/\hskip0pt > 98/\hskip0pt EEC" > > Many thanks for your help, > > > Pablo \setbreakpoints in MKIV should do it. Just add it to you pandoc context template. -- Rik --------------090200090602050305020103 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 2014-04-28 17:53, Pablo Rodriguez wrote:
Dear list,

with slashes and en-dashes I experience the following in ConTeXt:
sometimes I need to add an \hskip0pt command after them to allow
linebreaks. One example would be "Council Directive 93/98/EEC".

The issue comes when using ConTeXt as target format from markdown
sources. pandoc generates the file, but it makes no sense to edit the
ConTeXt source.

Is there any command that allows the addition of arbitrary commands when
a character appears in text? I mean, a way that internally replaces
"Council Directive 93/98/EEC" with "Council Directive 93/\hskip0pt
98/\hskip0pt EEC"

Many thanks for your help,


Pablo
\setbreakpoints in MKIV should do it. Just add it to you pandoc context template.

--
Rik
--------------090200090602050305020103-- --===============1906796555== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1906796555==--