From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68797 Path: news.gmane.org!not-for-mail From: Marc Trius Newsgroups: gmane.comp.tex.context Subject: Re: First Line After Whitespace Styling Date: Fri, 27 May 2011 14:08:50 -0500 Message-ID: <20110527140850.00a64814.derpayatz@riseup.net> References: <20110527110839.10cb22a0.derpayatz@riseup.net> <00EB6D34-DC89-4A0E-A3BA-652AE151BD4D@googlemail.com> 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 1306523362 12856 80.91.229.12 (27 May 2011 19:09:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 May 2011 19:09:22 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri May 27 21:09:15 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 1QQ2PK-0002b3-2h for gctc-ntg-context-518@m.gmane.org; Fri, 27 May 2011 21:09:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 23590CAD99; Fri, 27 May 2011 21:09:13 +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 LIidmBECC+kD; Fri, 27 May 2011 21:09:10 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ABB47CAD92; Fri, 27 May 2011 21:09:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 91DF6CAD92 for ; Fri, 27 May 2011 21:09:09 +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 eLKAOi+iCpxk for ; Fri, 27 May 2011 21:08:58 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 008B8CAD91 for ; Fri, 27 May 2011 21:08:57 +0200 (CEST) Original-Received: from mx1.riseup.net (mx1.riseup.net [204.13.164.18]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4RJ8tZN025350 for ; Fri, 27 May 2011 21:08:57 +0200 Original-Received: from swift.riseup.net (swift-pn.riseup.net [10.0.1.46]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 522EE25F036 for ; Fri, 27 May 2011 12:08:54 -0700 (PDT) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: derpayatz@swift.riseup.net) with ESMTPSA id 6D837C93D In-Reply-To: <00EB6D34-DC89-4A0E-A3BA-652AE151BD4D@googlemail.com> X-Mailer: Sylpheed 3.1.0beta2 (GTK+ 2.22.0; i686-pc-linux-gnu) X-Virus-Scanned: clamav-milter 0.97 at mx1 X-Virus-Status: Clean X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=204.13.164.18; country=US; region=WA; city=Seattle; postalcode=98104; latitude=47.6026; longitude=-122.3284; metrocode=819; areacode=206; http://maps.google.com/maps?q=47.6026,-122.3284&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rEMH8U17 - 21e2e505924b - 20110527 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:68797 Archived-At: On Fri, 27 May 2011 18:30:53 +0200 Wolfgang Schuster wrote: > > Am 27.05.2011 um 18:08 schrieb Marc Trius: > > > Hi, > > I would like to be able to specify a style that would apply to text that appears on the first line of a paragraph after whitespace. I have no idea how to go about it. > > > > Specifically, I have a font with an alternate glyph that can only be used after whitespace, and I would like to have it used automatically when appropriate. > > Do you want a initial? > > \setupinitial[state=start] > > \starttext > \placeinitial \input knuth > \stoptext > > Wolfgang > No, what is something like: ... \starttypescript [Standard] \definetypeface [Standard] [rm] [serif] [frankruehl] [default] [features=default] \definetypeface [Alt] [rm] [serif] [frankruehl] [default] [features=alt] \stoptypescript ... {\Alt This is the first line after a whitespace, this is the linebreak} and this is the rest of the paragraph. I'd like to have a macro that automatically styles the first line only so I don't have to guess at linebreaks every time I edit the text. I need to do this because in texts that are written with the Hebrew alphabet, a shorter glyph of the tallest letter, 'lamed,' is used inside a block of text than in a first line, so that the interline space can be smaller. Employing this technique makes the difference between a pretty good and a really first-rate typesetting job :) Thanks, Marc > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ -- Marc Trius "The enemy is the gramophone mind, whether or not one agrees with the record that is being played at the moment." --- George Orwell ___________________________________________________________________________________ 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 ___________________________________________________________________________________