From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83919 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: beta Date: Sat, 24 Aug 2013 01:39:31 +0200 Message-ID: <5217F2B3.90503@wxs.nl> References: <52161AC8.4020002@wxs.nl> <7D24758E-DCEA-463F-9FFF-1248D4327BE7@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1377301215 8320 80.91.229.3 (23 Aug 2013 23:40:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Aug 2013 23:40:15 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 24 01:40:19 2013 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 1VD0xi-0006p2-Tn for gctc-ntg-context-518@m.gmane.org; Sat, 24 Aug 2013 01:40:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E99211021D; Sat, 24 Aug 2013 01:39:01 +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 fDAMdPEeYi8I; Sat, 24 Aug 2013 01:39:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 42E451021A; Sat, 24 Aug 2013 01:39:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F058D1021A for ; Sat, 24 Aug 2013 01:38:57 +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 bA1oQLdk0kIh for ; Sat, 24 Aug 2013 01:38:47 +0200 (CEST) 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 A120A101E0 for ; Sat, 24 Aug 2013 01:38:47 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7NNdwHS017062 for ; Sat, 24 Aug 2013 01:39:58 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.104; Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 2647-1713362 for ; Sat, 24 Aug 2013 01:39:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <7D24758E-DCEA-463F-9FFF-1248D4327BE7@gmail.com> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0003 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TKgnDWiH - 2caca83cdd0d - 20130824 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:83919 Archived-At: On 8/23/2013 2:41 PM, Otared Kavian wrote: > Hi Hans, > > This is a very nice feature indeed. > Out of curiosity, I wondered whether it is possible to to have \placeinitial to work with \definefirstline, or a variant of it: that is not only have the first character of the first sentence as a dropped capital, but also the first line (or first few words) for instance in smallcaps. I played with that before uploading but it was somewhat tricky. Anyway, I redid some code so now you can do this: \setupbodyfont [pagella] \setupalign [tolerant,stretch] \setupfirstline [alternative=line, color=darkred, style=\setfontfeature{smallcaps}] \setupfirstline [fancy] [n=3] \setupfirstline [fancier] [alternative=word, color=darkblue, style=bold, n=3] \setupfirstline [weirder] [alternative=line, color=darkgreen, style=\setfontfeature{smallcaps}, n=3] \setupinitial [location=text, n=2, color=darkred, voffset=-.5ex, before={\blank[2*big]}] \starttext \setfirstline \input ward \par \placeinitial \input ward \par \setupindenting[medium,yes] \setinitial % \placeinitial \input ward \par \setinitial % \placeinitial \setfirstline \input ward \par \setfirstline[fancy] \input ward \par \setfirstline[fancier] \input ward \par \setinitial % \placeinitial \setfirstline[weirder] \input ward \par \stoptext > Another curiosity question: is it on purpose that > \definefirstline > [fancy] > [alternative=line, > color=darkred, > style=\setfontfeature{smallcaps}, > n=2] > does not produce two lines of text in smallcaps? I cannot imagine someone using it but it should work now. I must admit that I never use dropcaps or even this firstline stuff so it was more a challenge than a neccessity. I have no clue (yet) to what extend it all interferes with other trickery but I suppose that such features are only used in controlled situations. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________