From nobody Sun Aug 6 12:36:20 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RJf863sfpz4q037 for ; Sun, 6 Aug 2023 12:36:22 +0000 (UTC) (envelope-from grahamperrin@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RJf863L6tz4QJy for ; Sun, 6 Aug 2023 12:36:22 +0000 (UTC) (envelope-from grahamperrin@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691325382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SUM5tgle6dSJVZVb46fn3MI2GkiCrg2CfAHCeg9H1OY=; b=yZq/m64i2jyfTnDJQmG5x4atWJR4aDE6kvCKe1sUr8cCNoEEYGyg+DsvHWFV0askHrAhUx h5sMeAoIi3ybJQFvrU79X1z0F/XQZZ98ehHtWktVAf1HVxSkYmm7qKp60m9TC9vJ9hGPF0 V+EnoBtpsHVHEBGaOrBKZROaQrO7aDKFQblzMgvs4533/bY69/aBg6sw6D92BjEGekWphB t8Terg8/DsT2l+G/sC4qNhxvqKmJr02RvTG1zvh50KCHqlZR7EHLVqnAeGJQ11fBCTTXV0 Zhf7sXFWis5Z0T6KfuesTg1Bu27wFMT7CKpeob8uvii3j1WdYcYhBN/x20bTXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691325382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SUM5tgle6dSJVZVb46fn3MI2GkiCrg2CfAHCeg9H1OY=; b=bGM+fKRMiHBpz2wAiuo7KQ7UeNH/z5ITCmDJ1H4C1InLwGfOnl5bNUjNTQAbpuLKsq1EJ8 VY3luJX28Uc93ofvIKKVgcBWjOleNyt4vc9nKh5nprfZcBIqxPZJaEBMf7Bj4p8fOXfQeo zO/Mv6TzUEPWlO1wJ81kieZtWcHvYck0o2A4XEx+8i2CM//+xEiR8eN0zf6E2+5b7MkRAu PYWyF7lwV3OGZ98+H0aobk642PBLi8eZVeDbUrh6P4/ozuo6HsfqncIFbym3kk+QiJsWPQ 3d4egjGSb1ix30s+Gw9V/PzIWHlpOkP7eHOzbuKsoFIuLku4l1rV1P8xyBQXvg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691325382; a=rsa-sha256; cv=none; b=ufpDY5jOe1HZ7v9YTbZIN1MSog/V9Wy+tjD/0xlDX0EDOHHmDkrCIgKg2cqxlWrEda/1Uu WSkkwz4eJWOh3u6e3FsZIWV6v0j1nKD09W6asf4RNAMGkkM7zVR4r59OmOATxQ+/O8eg6h dGwKPc4HzOz2qLr6SfKQisi2n3f0sR7Z//fMi0yWgCNoZOHA027oCYtXmqxcBmKbuvtpCg aWFFuSF1MmKXycS6Lvur+MFqVizTrjpbAUtDlfXdnHaaTlJcQsmEYQv2loVTKny35/Mjde KuAcJIPrrWsm6VNhpaAx3OzzbetHwHtQ6BEp+V+hhLH7HUBOLq15QlqMBRyS0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from [192.168.1.10] (80-42-66-93.dynamic.dsl.as9105.com [80.42.66.93]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: grahamperrin) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RJf860Twdz9g0 for ; Sun, 6 Aug 2023 12:36:21 +0000 (UTC) (envelope-from grahamperrin@freebsd.org) Message-ID: <9911e4cf-3498-4221-6ba4-e7cea34f7606@freebsd.org> Date: Sun, 6 Aug 2023 13:36:20 +0100 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Subject: Re: demandoc(1) To: freebsd-hackers@freebsd.org References: <0345d177-0da2-e41b-6a49-b3fe06e52be0@freebsd.org> From: Graham Perrin Organization: FreeBSD Content-Language: en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 06/08/2023 11:12, Yuri wrote: > … sample usr.bin/demandoc/Makefile attached. Success, thanks: % man -P less 1 demandoc % which demandoc /usr/bin/demandoc % file /usr/bin/demandoc /usr/bin/demandoc: ELF 64-bit LSB pie executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 14.0 (1400093), FreeBSD-style, stripped % demandoc -w /usr/src/share/man/man9/intro.9 | spell -b | less % demandoc -w /usr/src/share/man/man9/intro.9 | aspell list --encoding utf-8 | sort | uniq | less % Re: – where the '--mode=nroff' part of the aspell(1) example will have little or no effect in most cases – it will be preferable to have aspell present everyday language, without markup. For as long as there'll be no aspell filter mode for mdoc, demandoc might be the best workaround. I can, for example: demandoc /usr/src/share/man/man9/intro.9 | xclip – and then use the context menu of the system tray icon for my local LanguageTool server. The result, pictured: . I spent a few hours searching, can't find a way to make combined use of demandoc with the check command of aspell; for aspell to be interactive with a markup-free, human-friendly view of an mdoc page (not a word list). If anyone has a solution in mind, I'll raise the question in Stack Exchange.