Deutsch   English   Français   Italiano  
<slrnsvl5hu.fql.lhh+news-no_spam@hercule.home.arpa>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Jacques L'helgoualc'h <lhh+news-no_spam@free.fr.isnt.invalid>
Newsgroups: fr.comp.applications.emacs
Subject: Re: lire des ebooks .epub dans emacs en console
Date: Wed, 2 Feb 2022 14:33:34 -0000 (UTC)
Organization: Aucune.
Lines: 52
Message-ID: <slrnsvl5hu.fql.lhh+news-no_spam@hercule.home.arpa>
References: <61fa4142$0$6481$426a34cc@news.free.fr>
 <28spci-od62.ln1@superman.unices.org>
 <slrnsvkkef.8fu.lhh+news-no_spam@hercule.home.arpa>
 <61fa8f3a$0$6478$426a74cc@news.free.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 2 Feb 2022 14:33:34 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="9df4486d3dd22213af83610d46e343d2";
	logging-data="23210"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX185nVnQRFkoOT1bQD3i/K/V"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:IKWLuMylN33x/HgaycyleD0V8gs=
Bytes: 3038

Le 02-02-2022, cyraneo a écrit :
> Le 02/02/2022 à 10:41, Jacques L'helgoualc'h a écrit :
>> Le 02-02-2022, Stephane Tougard a écrit :
>>> On 2022-02-02, cyraneo <cyraneo@free.fr> wrote:
>>>> Bonjour à tous,
>> 
>> bonjour,
>> 
>>>> Quelqu'un pourrait-il m'indiquer un lien et comment pour pouvoir lire
>>>> des fichiers .epub dans emacs en console ?
>>>>
>>>> Par avance, merci de votre aide .
>>>
>>> Pour autant que je sache, les epub sont des archives zip avec des
>>> fichiers images à l'intérieur. En console, ça risque d'être très
>>> compliqué (pour pas dire impossible en fait).
>> 
>> Avec emacs-nov-el, je lis le texte d'un *.epub dans un terminal (emacs -nw)
>> ou en console, mais ne vois pas les images...
>> 
>> Ce n'est peut-être pas impossible, j'ai des images avec w3m dans un
>> xterm, pas en console, mais je n'ai pas creusé du côté du framebuffer.
>> 
>> J'utilise emacs et emacs-nov-el via guix, homepage:
>> 	https://depp.brause.cc/nov.el/
>> mais il y a aussi un paquet elpa-nov.deb, Homepage:
>> 	https://github.com/wasamasa/nov.el
>> 
>> Dans mon ~/.emacs, j'ai :
>> 
>> (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
>> (setq nov-text-width 80)
>> 
> Merci Jacques ! y a t-il un tuto basic pour installer ces paquets ?

De rien.

Pour avoir un emacs récent, j'ai installé guix par dessus une debian stable.
Le paquet guix/stable étant bogué, j'ai utilisé le script fourni sur
 https://guix.gnu.org/fr/download/
puis
 guix pull
 guix install emacs emacs-nov-el

et simplement ajouté les deux lignes elisp ci-dessus à mon ~/.emacs.

Sinon, « apt-get install elpa-nov » devrait marcher sur une debian/ubuntu/etc.

Il y a aussi la possibilité d'utiliser directement elpa,
 https://elpa.gnu.org/
indépendamment de la distribution Linux utilisée.