From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3914 invoked from network); 20 Oct 2022 13:18:44 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 20 Oct 2022 13:18:44 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 13C8423558 for ; Thu, 20 Oct 2022 09:18:43 -0400 (EDT) (envelope-from bounce.mM62d39a71195ef5c3462e8b42.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 0CB48110741; Thu, 20 Oct 2022 09:18:43 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Fuxz+cuA header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=chrisjohgorman@gmail.com smtp.helo=mail-ua1-f41.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:content-transfer-encoding :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1666271922; bh=UcnM2Pa83V7SlvO6 FzYNtVwCyrEm4LyddFT/Alkkw8A=; b=bPxCu4JzCI8r2L7fxVzCZ7RJxBht6652 abavuyEEqW2FyZCWQ40cCrAdutSt/SKVpVit3FivVTp3XnFIPEKmbUQLwKCVv3VS 9C63ImmmTnwvbVHl8FLs7+oQ7FyphOmlTzkrbqM0axxg38Qwqg+vNGdnUqGviMT7 nw0G+F+3F+g= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1666271922; b=EwHm0E/DSrIbWzWLU6yhCATnLcDh8Vt2NObb8UYh1DduEnVPXm /IeORaradaSu+bTi5WhANnf88lt2LGnbiouicLbxAF9LQx+brk4YveTFlM9xSgUT LrzA9dFTL0lFloD/WJ6qOpg7PuNT5jjgUllETpzuYExUyxqO2J9eo1lIY= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Fuxz+cuA header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=chrisjohgorman@gmail.com smtp.helo=mail-ua1-f41.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Fuxz+cuA header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.222.41 (mail-ua1-f41.google.com); spf=pass smtp.mailfrom=chrisjohgorman@gmail.com smtp.helo=mail-ua1-f41.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=KFHda/uq; x-me-sender=none; x-ptr=pass smtp.helo=mail-ua1-f41.google.com policy.ptr=mail-ua1-f41.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1666271922; x=1666358322; bh=9IwtnE8aAGOWQTWhiW+97ak4AQKKYEW0 k+fcvVSxEm8=; b=nMTR//QuwpXMnqhSLvmwLmvYwBJZyOc+wNSf5Ifd9wt4qool jnsRVTOpxprXFnNjHoXPwVMSgLqeOiPp+60jMH5/RQ2lTktpg2iLvFcs2QLoKoC0 T2T6BZJxWskDQoidqqstUEeZZU1otFnXmTWNQPNefn42diNZSXNefM3UMx0= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id B2D5A1102D0 for <9fans@9fans.net>; Thu, 20 Oct 2022 09:18:31 -0400 (EDT) (envelope-from chrisjohgorman@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 7C507D64AB9; Thu, 20 Oct 2022 09:18:31 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1666271911; b=xPFoZopkP3jtZ6GNPzXIGIi1ajxPmb1BlLfGoS4XsIaWHpbCQi k2ebeldMX6QtPJYcpTwqkQOR6CDKlOXgqAZs0+dXEKvfaeBjKEt1HPnPc9nwtACz wQTb8O24AplFVQC31SgSZu3Ak7CadgPI1wPU4xO7F50SULE9ybScaEbT5pjaDU3M /pOFxSS9NjtAOKzUAFloS7DxZvOehA8xFZGjS8xZoDCdpvBraKAtZ0CVYjhRKeR9 YXPkF/Yi+hkLGwIVHiQ3HOSTkebHPmFDq/TCfcm1O0RbYNQZsVCHQ6d5zjXF0Xxr ZhpDp7wVwJ4i9JA+Wk4vfj62fhVmWy1R6s9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:content-transfer-encoding; s=arcseal; t=1666271911; bh=mgNdyvak1sbd3oF19JR1j1N465fCCsuUeIL Kx9rpce8=; b=qAW9nNmxF+Tcoy74ust+JmdVB93euvYbQOFcJ4zMO+RdeloJy4g shiEmbE8Xn1RbeZdIZJLdK7EDev4Go0wiVVCzH2IMnlwzQoFHieNi6WzpEt1ZstM 5qdQWY6fK9aZuOI4ueEYWobP5jOI6ZwGViL5VQKP0DbqI4dEd6LkwRrMLA8tFrbZ 6iLruSz41TLJ3SapZh5fzqhvAhrCykOYsJ10U1c0U+AyezqJR5F9Y9Kan5CK21ZF lM1o5AZv6TPB90YZNhKazoNmpyKK3erXLA7PypkvN0FoxazcRR6IjhWfC1rFKa6q vtkKI0sSpqzBEG0SUOH1eqyvKzcWmAxK72A== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Fuxz+cuA header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.222.41 (mail-ua1-f41.google.com); spf=pass smtp.mailfrom=chrisjohgorman@gmail.com smtp.helo=mail-ua1-f41.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=KFHda/uq; x-me-sender=none; x-ptr=pass smtp.helo=mail-ua1-f41.google.com policy.ptr=mail-ua1-f41.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeliedgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeggfhgjhf ffkffuvfgtgfesthhqredttddtjeenucfhrhhomhepvehhrhhishcuifhorhhmrghnuceo tghhrhhishhjohhhghhorhhmrghnsehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrh hnpeehffekkeelvdejgfetfeeljeevgefgheetffetheelvdeggfeugfetheduuefhffen ucffohhmrghinhepthhophhitggsohigrdgtohhmnecukfhppedvtdelrdekhedrvddvvd drgedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddtledr keehrddvvddvrdeguddphhgvlhhopehmrghilhdquhgruddqfheguddrghhoohhglhgvrd gtohhmpdhmrghilhhfrhhomhepoegthhhrihhsjhhohhhgohhrmhgrnhesghhmrghilhdr tghomheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'chrisjohgorman@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="chrisjohgorman@gmail.com"; helo=mail-ua1-f41.google.com; client-ip=209.85.222.41 Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com [209.85.222.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Thu, 20 Oct 2022 09:18:31 -0400 (EDT) (envelope-from chrisjohgorman@gmail.com) Received: by mail-ua1-f41.google.com with SMTP id y20so9133853uao.8 for <9fans@9fans.net>; Thu, 20 Oct 2022 06:18:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mgNdyvak1sbd3oF19JR1j1N465fCCsuUeILKx9rpce8=; b=KFHda/uqyYZXswwAisnBmbeGEI9yJHvZ/AS0b6X4i/BBEc8etT+xR+HhczBc5GND8x 6ocK+TLRlifgfuUcZJVWN7Ynf+tPAFUN5vMrh1iB8J4gTKt8yqsQxF9Y6qMKOkz8YbTY kCwbS+mQrEgGm3feBfSRPpbWykI0iVfKhib+baqDRBxE1WZMoO47JDqfRtvDGXSeyLWL JfW9ORk4xOHX4NRW/tMAJ67aDJR9dNQiBO7Uvi5lhg7SotuOdDa/5xm9Ncx1hKRU8gs4 dscr68wzufLt2wXzMqq3Smdwb0qSxS9sSKUnXz1u4plt72mHZMiK8lOqo2rBfjtx5nfr 9oLA== X-Gm-Message-State: ACrzQf0+KCWiP75Jr4xskhRzoo6ek8XfwR+solEHIE10ynudjtouPNSL GArdj3Ea9lhkwLDCnUXknZ2UZZjHSritpvHE69r3lbSV X-Google-Smtp-Source: AMsMyM45Xa+4c3kCUN0P2B1/Vp6r5vLofFQmtFuU2bkqSb3Is1S0sQO7vgl5jehMqmEWqMGUVdi6zOqZ/WqbyIr71XI= X-Received: by 2002:a05:6102:75b:b0:3a7:d0a2:7079 with SMTP id v27-20020a056102075b00b003a7d0a27079mr6389181vsg.64.1666271910628; Thu, 20 Oct 2022 06:18:30 -0700 (PDT) MIME-Version: 1.0 References: <16661858650.19CAe129.83221@composer.9fans.topicbox.com> <63C9218A73720FBF83C58AB34B4E8116@prosimetrum.com> In-Reply-To: <63C9218A73720FBF83C58AB34B4E8116@prosimetrum.com> From: Chris Gorman Date: Thu, 20 Oct 2022 09:18:19 -0400 Message-ID: Subject: Re: [9fans] use of plumber for new rule To: 9fans <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: b47aad2e-5079-11ed-9f18-e6924526e280 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UY2U3Mzg1ZmU1MmM1MzJkNi1NNjJkMzlhNzExOTVlZjVjMzQ2MmU4?= =?UTF-8?B?YjQyPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M62d39a71195ef5c3462e8b42:1:aVUBcqhA3ScrpBCfeRLMXP6GXElrIuIhTWC5fTKVCow Thank you Umbraticus! On Thu, Oct 20, 2022 at 4:56 AM wrote: > > Here's my rule for manpages: > > data matches (.+)\(([0-9])\) > arg isfile /sys/man/$2/$1 > plumb start rc -c 'man -t '$2' '$1' | plumb -id image' > > which replumbs the cmd output to the image port; then: > > dst is image > plumb to image > plumb client rc -c 'window -r 380 0 1600 900 ''echo -n page >/dev/label; = bind /dev/mordor /dev/label; page -i -p180 -m64''' > > either sends it to any existing page instance > or else starts a new one to send it to. > Worth noting I am using 9front's version of page, > which listens on the image port; can't recall if the original > listens on the postscript port in a similar way: probably. > If you just want to pop open a new window with > your dvi each time you can use a plumb start rule > that does whatever you want; something like: > > data matches '([a-zA-Z=C2=A1-=EF=BF=BD0-9_\-.,/]+)\.(dvi|DVI)' > arg isfile $0 > plumb start window kertex/dvips $0 '|' page > This solution works near perfectly for me. I needed to add a $wdir before the filename, but otherwise it works! To be clear, my rule is now... data matches '([a-zA-Z=C2=A1-=EF=BF=BD0-9_\-.,/]+)\.(dvi|DVI)' arg isfile $0 plumb start window kertex/dvips $wdir/$0 '|' page > There are other workflows too, if what you want is a tight > loop for editing a document and seeing the new version. > Some people use a watch(1) program that runs a command > whenever a given file changes. I prefer to tie the file write > and doc gen to a single command using (9front) sam's ^ cmd, > which sends its output to sam's command window: > > ^echo w; window troff $% '|' page > > The last shell command is remembered, so subsequent > write'n'reviews are a simple ^ thereafter. Very nice suggestion. I will try to put this one in my bag of tricks. > > umbraticus Thank you again. Take care, Chris ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tce7385fe52c532d6-M62d39= a71195ef5c3462e8b42 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription