all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: GNU Emacs manual in plain text
Date: Wed, 11 Jun 2014 02:38:24 +0200	[thread overview]
Message-ID: <87vbs85lhb.fsf@debian.uxu> (raw)
In-Reply-To: 8738fc7161.fsf@debian.uxu

Emanuel Berg <embe8573@student.uu.se> writes:

> You can also use Emacs-w3m for this. Navigate to the
> URL, then `C-x w' (write-file) and save it to, say,
> page.txt. Check what kind of file it is with
> 'file'. If it says it is UTF-8 or whatever, you can
> use 'recode -f ascii page.txt'. (-f will drop things
> that cannot be recoded.)
>
> Emacs-w3m and recode has to be aptituded from the
> repositories.

Oh, I forgot to mention, 'fold' is useful to change the
length of the lines - 55 chars is perhaps a good digit
- remember, it shouldn't be too wide - just think of
newspaper and magazine articles which typically have
something like three columns for a split A3 - all to
increase readability. (Though to get the max of it, I
think you have to write in a certain way as well...)
Anyway:

fold -s -w 55 old_file.txt > new_file.txt

-w (--width) is to set the desired length (in chars)

-s (--spaces) is to tell fold to break lines at spaces

This would be the last step before

lpr -P $LPDEST page.txt

and then you get to do the absolutely best part: to
read it :)

-- 
underground experts united:
http://user.it.uu.se/~embe8573


  reply	other threads:[~2014-06-11  0:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-09 11:57 GNU Emacs manual in plain text Raffaele Ricciardi
2014-06-09 12:52 ` kastian
2014-06-09 14:44 ` Eli Zaretskii
     [not found] ` <mailman.3286.1402317849.1147.help-gnu-emacs@gnu.org>
2014-06-11  0:14   ` Emanuel Berg
2014-06-11  0:38     ` Emanuel Berg [this message]
     [not found] ` <mailman.3291.1402325112.1147.help-gnu-emacs@gnu.org>
2014-06-14 18:40   ` Raffaele Ricciardi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vbs85lhb.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.