From owner-freebsd-questions@FreeBSD.ORG Tue Jun 12 08:06:13 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 74D3C106564A for ; Tue, 12 Jun 2012 08:06:13 +0000 (UTC) (envelope-from pwnedomina@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id E8CE88FC12 for ; Tue, 12 Jun 2012 08:06:12 +0000 (UTC) Received: by werg1 with SMTP id g1so3355190wer.13 for ; Tue, 12 Jun 2012 01:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=cc:message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; bh=hit7i38qlVhtrFzpZAGPPXXlQ1zeexSQL2eoNc7cH8g=; b=XDIt9JY1m4ADCvruLjjonjyma9dT/5AjRzHREuZ4uCek4nPQNhEfoLjzkq6Fx3g65K 6cOyePOP9rh6vzvYNbLjO1ndoPBoF/EikuinE2NYA4rE7+v7szcCm1kZIfPS7bw/z5VU rJRrY1UarG/3pyaZrGwglSEce/bLSqod2eqyhHCgPUoWp+J9xi2QuLf8XXAUfWMZwcTH EBxe8BHSK9+GiLr1SQbesLXQ/lIWdUonY6/hsVuI3cJZILQHX6TxOUAuRJdsSRR+2SLI l1qUprhe6s8l4oxHoD1a23BKpHNDg+1opAP1Ze86GZFG/IoOqvRWMk2Pmbt6M9r1lK/Z zm6g== Received: by 10.216.142.146 with SMTP id i18mr8341865wej.74.1339488371144; Tue, 12 Jun 2012 01:06:11 -0700 (PDT) Received: from [192.168.1.84] (bl19-184-171.dsl.telepac.pt. [2.80.184.171]) by mx.google.com with ESMTPS id ch9sm6822341wib.8.2012.06.12.01.06.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Jun 2012 01:06:09 -0700 (PDT) Message-Id: <7F5F7609-DB36-4E37-9196-92B797732C1D@gmail.com> From: i pwn To: Polytropon In-Reply-To: <20120612054431.b630e37a.freebsd@edvax.de> Mime-Version: 1.0 (Apple Message framework v936) Date: Tue, 12 Jun 2012 09:06:07 +0100 References: <4C067C55-8320-4D12-A312-F8E2CC699B01@gmail.com> <4FD6A057.2070101@gmail.com> <20120612054431.b630e37a.freebsd@edvax.de> X-Mailer: Apple Mail (2.936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: text format X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2012 08:06:13 -0000 on groff i've used this cmd to format the text groff -Tascii < normal.txt | sed 's/^/ /'$1 > formatted.txt on nroff what would be the cmd? On Jun 12, 2012, at 4:44 AM, Polytropon wrote: > On Tue, 12 Jun 2012 01:50:15 +0000, pwnedomina wrote: >> On 11-06-2012 23:40, Alejandro Imass wrote: >>> On Mon, Jun 11, 2012 at 5:57 PM, i pwn wrote: >>>> hi, sometime ago i asked a question about how to format a text, >>>> some people >>>> told me to use groff, but i would like to know how was file >>>> http://ipwn.altervista.org/files/Stoll,%20Clifford%20-%20The%20Cuckoo%27s%20Egg.txt >>>> fomatted. >>>> thanks in advance. >>> Most probably nroff / groff >>> >>> Take a look at the info from the authoring tools at rfceditor: >>> >>> http://www.rfc-editor.org/formatting.html >>> >> *formatted. >> i've downloaded NroffEdit but when i open the ASCII text i want to >> convert/format, it says "Not a valid nroff I-D" >> what should i do? > > Erm, you did open the output file (as pointed to), _not_ the > source file? You're trying to "edit text in a document you've > scanned". :-) > > The output text can be edited with any text editor (vi, emacs, > joe, mcedit, whichever is your favourite), but it will be kept > in this format as it _has been_ generated that way (past tense). > In order to change formatting, you need the SOURCE file with > the macros. (Compare: HTML files rendered by browser: output > looks different than input; to change it, you need to edit > the HTML source.) > > You can compare that to editing a man page: You need the page's > source (like found in /usr/src/share/examples/mdoc/example.1). > The text's SOURCE file would have looked similarly I assume. > THAT is the input format you need for the "NroffEdit" WYSIWYG > "text" editor. > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... --- JID:ipwn#cih.ms HP:ipwn.altervista.org