From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59420 Path: news.gmane.org!not-for-mail From: Hongwen Qiu Newsgroups: gmane.comp.tex.context Subject: Re: Clipping of text (or something equivalent) Date: Mon, 07 Jun 2010 23:02:39 +0800 Message-ID: <4C0D0A0F.6080404@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1863126872==" X-Trace: dough.gmane.org 1275922921 13227 80.91.229.12 (7 Jun 2010 15:02:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Jun 2010 15:02:01 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 07 17:01:59 2010 connect(): No such file or directory 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 1OLdpt-0007Sy-Sf for gctc-ntg-context-518@m.gmane.org; Mon, 07 Jun 2010 17:01:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DCDD0C9D1C; Mon, 7 Jun 2010 17:01:56 +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 Zk7L1H+137jj; Mon, 7 Jun 2010 17:01:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BBF07C9D0E; Mon, 7 Jun 2010 17:01:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 22396C9D0E for ; Mon, 7 Jun 2010 17:01:52 +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 rFVN7OkI-1qe for ; Mon, 7 Jun 2010 17:01:49 +0200 (CEST) Original-Received: from mail-pw0-f41.google.com (mail-pw0-f41.google.com [209.85.160.41]) by balder.ntg.nl (Postfix) with ESMTP id 9B63EC9D09 for ; Mon, 7 Jun 2010 17:01:47 +0200 (CEST) Original-Received: by pwi6 with SMTP id 6so1212941pwi.14 for ; Mon, 07 Jun 2010 08:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type; bh=MvfBTzIMxzWPJJghYoAfHBVOGPmmfRG9ih8Eay+zH2o=; b=QHSr1dVcN0qYqEGr36cb3N6zd0qY4QoOhJBe5FSNU0XmaO2xT3qKSBdWRjFnxBEMBB n02An903gMI7nEaCdKq4AJYBcRHIPg8i9EaHd0AnPcaDllm3YKL95G/Gbk10JpX+GfM5 1WGJkQfw0b6yUho5GOz3/P6dk7IlVBHkVFPts= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; b=Aq3/JW9bRwYJy4AoZqIUoHtez/xOZ8h175RGRlinaJcfS8WHSeILrWb2o2BjpGcgUY uoap1bLLWZVdjPYpfXT1XX653VpLEJsxa/lOHULSKiOaqeTrcg63SA/VpKa3AT9H/sUh l5ljbbTUjQTnBYDhN070HTLNDByuWje6Ri0SI= Original-Received: by 10.114.215.12 with SMTP id n12mr11715836wag.68.1275922906252; Mon, 07 Jun 2010 08:01:46 -0700 (PDT) Original-Received: from wind.river ([119.136.222.95]) by mx.google.com with ESMTPS id d20sm39485675waa.3.2010.06.07.08.01.44 (version=SSLv3 cipher=RC4-MD5); Mon, 07 Jun 2010 08:01:45 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Thunderbird/3.0.4 In-Reply-To: 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:59420 Archived-At: This is a multi-part message in MIME format. --===============1863126872== Content-Type: multipart/alternative; boundary="------------040607030404060008040302" This is a multi-part message in MIME format. --------------040607030404060008040302 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit ? 2010?06?07? 22:47, Erik Margraf ??: > Hi all, > I'd like to achieve in context something like I did in > the attachment (context.pdf). My idea was (and > that's the way how I did this in Inkscape): > > - Create Text > - Double the text > - Clip one for the upper half, clip the other for the lower half Actually, you only have to clip one, either the upper half or the lower half, since the latter elements added onto the canvas will mask the former elements. > - Connect the two halves. > > My (probably naive) approach to clipping text in context was: > > ----- > \starttext > \startuniqueMPgraphic{context} > draw btex \bf Context etex xyscaled (4.0, 4.0) withcolor .8white ; > clip currentpicture to unitsquare; take something like: clip currentpicture to unitsquare scaled 8cm; and you'll know what's the problem. > \stopuniqueMPgraphic > \null\dontcomplain > \uniqueMPgraphic{context} > ----- > > (Without the "clip" - line, the string "Context" is displayed. With > clipping, nothing is displayed.) > > Any hint in the right direction towards clipping or maybe a better > way to achieve this is appreciated. > > Thanks > > Erik > > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ > --------------040607030404060008040302 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 于 2010年06月07日 22:47, Erik Margraf 写道:
Hi all,
I'd like to achieve in context something like I did in
the attachment (context.pdf). My idea was (and
that's the way how I did this in Inkscape):

   - Create Text
   - Double the text
   - Clip one for the upper half, clip the other for the lower half
Actually, you only have to clip one, either the upper half or the lower half, since the latter elements added onto the canvas will mask the former elements.
   - Connect the two halves.

My (probably naive) approach to clipping text in context was:

-----
\starttext
\startuniqueMPgraphic{context}
  draw btex \bf Context etex xyscaled (4.0, 4.0) withcolor .8white ; 
  clip currentpicture to unitsquare;
take something like:
clip currentpicture to unitsquare scaled 8cm;
and you'll know what's the problem.
\stopuniqueMPgraphic
\null\dontcomplain
\uniqueMPgraphic{context}
-----

(Without the "clip" - line, the string "Context" is displayed. With
clipping, nothing is displayed.)

Any hint in the right direction towards clipping or maybe a better
way to achieve this is appreciated.

Thanks

Erik
___________________________________________________________________________________ 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 ___________________________________________________________________________________

--------------040607030404060008040302-- --===============1863126872== 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 ___________________________________________________________________________________ --===============1863126872==--