Date: Tue, 12 Jun 2012 09:06:07 +0100 From: i pwn <pwnedomina@gmail.com> To: Polytropon <freebsd@edvax.de> Cc: freebsd-questions@freebsd.org Subject: Re: text format Message-ID: <7F5F7609-DB36-4E37-9196-92B797732C1D@gmail.com> In-Reply-To: <20120612054431.b630e37a.freebsd@edvax.de> References: <4C067C55-8320-4D12-A312-F8E2CC699B01@gmail.com> <CAHieY7TxEGJzEcmccXnq_mP8zwmXtVOnCHYPXfs0VMspA5MQ1Q@mail.gmail.com> <4FD6A057.2070101@gmail.com> <20120612054431.b630e37a.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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<pwnedomina@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7F5F7609-DB36-4E37-9196-92B797732C1D>