From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42747 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: hiding content Date: Fri, 25 Jul 2008 13:53:02 +0200 Message-ID: <115224fb0807250453q35969212k2825ba7a2aab6e4f@mail.gmail.com> References: <326847810807240351g5ad3fb5bs630f893ff3d73cc9@mail.gmail.com> <326847810807240534t3033b46bhc728e49c9402e8da@mail.gmail.com> <115224fb0807240603j6dd8a4e0rdf361e5b33d74c83@mail.gmail.com> <326847810807240621s33ee5555gc4e6024e00528cd2@mail.gmail.com> <115224fb0807240632o5665794j7a3848ecfcf91b19@mail.gmail.com> <20080724194307.GA18010@gaston.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1216986908 25518 80.91.229.12 (25 Jul 2008 11:55:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jul 2008 11:55:08 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 25 13:55:57 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KMLtr-000525-BI for gctc-ntg-context-518@m.gmane.org; Fri, 25 Jul 2008 13:55:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 678071FD8A; Fri, 25 Jul 2008 13:54:56 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27863-01-5; Fri, 25 Jul 2008 13:54:08 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0F7231FB95; Fri, 25 Jul 2008 13:54:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7C0931FA2B for ; Fri, 25 Jul 2008 13:54:01 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27863-01-4 for ; Fri, 25 Jul 2008 13:53:04 +0200 (CEST) Original-Received: from ag-out-0708.google.com (ag-out-0708.google.com [72.14.246.242]) by ronja.ntg.nl (Postfix) with ESMTP id E70391FD19 for ; Fri, 25 Jul 2008 13:53:02 +0200 (CEST) Original-Received: by ag-out-0708.google.com with SMTP id 35so16551985aga.1 for ; Fri, 25 Jul 2008 04:53:02 -0700 (PDT) Original-Received: by 10.100.254.18 with SMTP id b18mr2795206ani.17.1216986782244; Fri, 25 Jul 2008 04:53:02 -0700 (PDT) Original-Received: by 10.100.109.20 with HTTP; Fri, 25 Jul 2008 04:53:02 -0700 (PDT) In-Reply-To: <20080724194307.GA18010@gaston.couberia.bzh> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42747 Archived-At: On Thu, Jul 24, 2008 at 9:43 PM, Peter M=FCnster wrote: > On Thu, Jul 24 2008, Wolfgang Schuster wrote: > >> > Enabling people to view the pdf preview version (limited, containing >> > excerpts) before acquiring the full version. >> >> In this case the solution offered in the thread are no solution for your, >> it's too easy for the customers to make the hidden content visible. > > Shouldn't it be very easy with MKIV, to replace the content to hide with > whatever you want? > Examples: > - the replacement are only the corresponding line-skips %\disablemode[hiding] \enablemode[hiding] \unprotect \def\starthiding {\dostartbuffer[hiddencontent][starthiding][stophiding]} \def\stophiding {\bgroup \setbox\scratchbox\vbox{\getbuffer[hiddencontent]}% \getnoflines{\dimexpr\ht\scratchbox+\dp\scratchbox\relax}% \dorecurse{\number\noflines}{\blank[\v!force,\v!line]}% \egroup} \protect \startnotmode[hiding] \let\starthiding\relax \let\stophiding \relax \stopnotmode %\showgrid \starttext \dorecurse{2}{\input knuth\par} \starthiding \input tufte \stophiding \dorecurse{2}{\input ward\par} \starthiding \input zapf \stophiding \input knuth \stoptext > - the replacement are random letters printed in white > > Cheers, Peter Regards, Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________