Major package reorganization:

- Move code to src/.
- Move docs to doc/:
  + texi doc to doc/texinfo/
  + original manual pages to doc/man/
  + translated manual pages to doc/man/xx/


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1543 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Jordi Mallach
2003-09-07 00:44:12 +00:00
parent 417b03a4c3
commit 298b975264
36 changed files with 500 additions and 525 deletions

View File

@@ -18,10 +18,7 @@ depcomp
install-sh
missing
mkinstalldirs
nano
nano.info
nano.spec
stamp-h
stamp-h.in
stamp-h1
texinfo.tex

View File

@@ -31,6 +31,8 @@ CVS code -
disabled if justification is disabled. (DLR)
- Make sure the "historylog" option isn't included at all if
NANO_SMALL is defined. (DLR)
- Source reorganization: move code to src/, docs to doc/. (Jordi)
- Translation updates (see po/ChangeLog for details).
- files.c:
do_browser()
- Some of the Pico compatibility options in the file browser
@@ -85,6 +87,7 @@ CVS code -
interpreted as Ctrl-[character], and the support for Pico's
Esc Esc [three-digit decimal ASCII code] input method, if
applicable. (DLR)
- French translation by Jean-Philippe Gu<47>rard.
- nano.1.html, nanorc.5.html:
- Regenerated. (DLR)
- nanorc.sample:

View File

@@ -1,36 +1,11 @@
## $Id$
AUTOMAKE_OPTIONS = gnu no-dependencies
DEFS= -DSYSCONFDIR=\"$(sysconfdir)\"
SUBDIRS = doc m4 po src
bin_PROGRAMS = nano
nano_SOURCES = color.c \
cut.c \
files.c \
global.c \
move.c \
nano.c \
nano.h \
proto.h \
rcfile.c \
search.c \
utils.c \
winio.c
man_MANS = nano.1 nanorc.5
nano_LDADD = @GLIB_LIBS@ @LIBINTL@
info_TEXINFOS = nano.texi
MAKEINFO = makeinfo --no-split
EXTRA_DIST = ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS \
README THANKS TODO UPGRADE config.rpath install-sh missing \
mkinstalldirs nano.1.html nanorc.5.html faq.html \
nanorc.sample nano.spec $(man_MANS)
SUBDIRS = po m4
localedir = $(datadir)/locale
INCLUDES = -Iintl -DLOCALEDIR=\"$(localedir)\" -I@includedir@
mkinstalldirs nano.spec
ACLOCAL_AMFLAGS = -I m4

1
TODO
View File

@@ -13,6 +13,7 @@ For version 1.4:
(^R^X^X)(requires figuring out when to keep cursor pos and when not
to).
- Fix resetstatuspos global which we shouldn't have.
- Rewrite the nano FAQ in SGML.
Old requests:

View File

@@ -20,7 +20,7 @@
# $Id$
AC_INIT([GNU Nano], [1.2.99-cvs], [nano-devel@gnu.org], [nano])
AC_CONFIG_SRCDIR([nano.c])
AC_CONFIG_SRCDIR([src/nano.c])
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER([config.h:config.h.in])
@@ -347,5 +347,16 @@ then
LDFLAGS="$LDFLAGS $glib_libs"
fi
AC_CONFIG_FILES([Makefile m4/Makefile po/Makefile.in nano.spec])
AC_CONFIG_FILES([
Makefile
doc/Makefile
doc/man/Makefile
doc/man/fr/Makefile
doc/texinfo/Makefile
m4/Makefile
po/Makefile.in
src/Makefile
nano.spec
])
AC_OUTPUT

2
doc/.cvsignore Normal file
View File

@@ -0,0 +1,2 @@
Makefile
Makefile.in

3
doc/Makefile.am Normal file
View File

@@ -0,0 +1,3 @@
SUBDIRS = man texinfo
EXTRA_DIST = faq.html nanorc.sample

2
doc/man/.cvsignore Normal file
View File

@@ -0,0 +1,2 @@
Makefile
Makefile.in

5
doc/man/Makefile.am Normal file
View File

@@ -0,0 +1,5 @@
SUBDIRS = fr
man_MANS = nano.1 nanorc.5
EXTRA_DIST = nano.1.html nanorc.5.html $(man_MANS)

2
doc/man/fr/.cvsignore Normal file
View File

@@ -0,0 +1,2 @@
Makefile
Makefile.in

5
doc/man/fr/Makefile.am Normal file
View File

@@ -0,0 +1,5 @@
mandir = @mandir@/fr
man_MANS = nano.1 nanorc.5
EXTRA_DIST = $(man_MANS)

229
doc/man/fr/nano.1 Normal file
View File

@@ -0,0 +1,229 @@
.\" Hey, EMACS: -*- nroff -*-
.\" nano.1 is copyright (C) 1999, 2000, 2001, 2002, 2003 by
.\" Chris Allegretta <chrisa@asty.org>
.\"
.\" (c) 2003 Jean-Philippe Gu<47>rard <jean-philippe.guerard@corbeaunoir.org>
.\" pour l'adaptation fran<61>aise
.\"
.\" This is free documentation, see the latest version of the GNU General
.\" Public License for copying conditions. There is NO warranty.
.\"
.\" Ce document est libre. Reportez-vous <20> la derni<6E>re version de la
.\" licence publique g<>n<EFBFBD>rale GNU (GNU GPL) pour conna<6E>tre ses
.\" conditions d'utilisation. AUCUNE garantie n'est offerte.
.\"
.TH NANO 1 "19 juin 2003 (v.f. du 25 ao<61>t 2003)"
.\" Please adjust this date whenever revising the manpage.
.\" Merci de modifier ces dates <20> chaque mise <20> jour de cette page.
.SH NOM
nano \- NAno un NOuvel <20>diteur, un clone libre et am<61>lior<6F> de Pico
.SH SYNOPSIS
.B nano
.I [\+LIGNE]\ [options]\ [fichier]
.br
.SH DESCRIPTION
Cette page de manuel d<>crit bri<72>vement la commande \fBnano\fP.
.PP
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invoke bold face and italics,
.\" respectively.
\fBnano\fP est un petit <20>diteur sympathique et libre, qui vise <20> remplacer
Pico, l'<27>diteur par d<>faut du paquet non-libre Pine. \fBnano\fP ne se
contentant pas de copier l'interface et l'ergonomie de Pico, il offre
<EFBFBD>galement certaines fonctionnalit<69>s manquantes (ou d<>sactiv<69>es par
d<EFBFBD>faut) de Pico. Ces fonctionnalit<69>s sont, par exemple, les fonctions de
recherche et de remplacement, et la possibilit<69> de sauter directement <20>
un num<75>ro de ligne.
.SH OPTIONS
.TP
.B \+\fILIGNE\fP
D<EFBFBD>marre avec le curseur positionn<6E> <20> la ligne num<75>ro \fILIGNE\fP.
.TP
.B \-B (\-\-backup)
Lors de l'<27>criture d'un fichier, cr<63>e une copie de s<>curit<69> de la
version pr<70>c<EFBFBD>dente, en ajoutant un tilde (~) au nom du fichier.
.TP
.B \-D (\-\-dos)
<EFBFBD>crit le fichier au format DOS.
.TP
.B \-F (\-\-multibuffer)
Active le mode multifichiers, autorisant l'<27>dition simultan<61>e de
plusieurs fichiers, si ce mode est disponible.
.TP
.B \-H (\-\-historylog)
Enregistre les cha<68>nes ayant fait l'objet d'une recherche ou d'un
remplacement dans le fichier
.I ~/.nano_history
afin de permettre leur r<>utilisation. Ceci n'est possible que si
.B nano
est capable d'utiliser les fichiers
nanorc.
.TP
.B \-I (\-\-ignorercfiles)
N'utilise pas les fichiers
.I $SYSCONFDIR/nanorc
et
.IR ~/.nanorc ,
m<EFBFBD>me si
.B nano
est capable de les utiliser.
.TP
.B \-K (\-\-keypad)
Essaie au maximum de ne pas utiliser les appels keypad() de ncurses.
Utilisez ce param<61>tre si vous vous apercevez que les fl<66>ches du pav<61>
num<EFBFBD>rique ne fonctionnent pas sous nano.
.TP
.B \-M (\-\-mac)
<EFBFBD>crit le fichier au format Mac.
.TP
.B \-N (\-\-noconvert)
D<EFBFBD>sactive la conversion automatique des fichiers depuis les
formats Mac et DOS.
.TP
.B \-Q \fIcha<EFBFBD>ne\fP (\-\-quotestr=\fIcha<68>ne\fP)
D<EFBFBD>finit le pr<70>fixe par d<>faut des citations. Nano utilise ce pr<70>fixe
pour r<>aliser une justification correcte des citations.
Si nano est capable d'utiliser des expressions rationnelles, le pr<70>fixe
par d<>faut sera "^([\ \\t]*[|>:}#])+", sinon, ce sera ">\ ".
.TP
.B \-R (\-\-regexp)
Active l'utilisation d'expressions rationnelles lors des recherches,
ainsi que la possibilit<69> d'utiliser \\\fIn\fP dans les cha<68>nes de
remplacement pour faire r<>f<EFBFBD>rence <20> la \fIn\fP-i<>me sous-expression du
motif de recherche, si cette fonction est disponible.
.TP
.B \-S (\-\-smooth)
Active le d<>filement progressif. Le texte d<>filera ligne-par-ligne au
lieu de d<>filer morceau-par-morceau.
.TP
.B \-T \fInombre\fP (\-\-tabsize=\fInombre\fP)
D<EFBFBD>finit la taille (largeur) des tabulations.
.TP
.B \-V (\-\-version)
Affiche le num<75>ro de version et l'auteur.
.TP
.B \-Y \fIcha<EFBFBD>ne\fP (\-\-syntax=\fIcha<68>ne\fP)
Indique quel mode de colorisation syntaxique adopter, parmi les modes
d<EFBFBD>finis dans le fichier
.IR .nanorc ,
si cette fonctionnalit<69> est disponible.
.TP
.B \-c (\-\-const)
Affiche en permanence la position du curseur.
.TP
.B \-h (\-\-help)
Affiche de la liste des options disponibles en ligne de commande.
.TP
.B \-i (\-\-autoindent)
Indentation automatique. Commence chaque nouvelle ligne au m<>me niveau
que la ligne pr<70>c<EFBFBD>dente. Utile pour l'<27>dition de code source.
.TP
.B \-k (\-\-cut)
^K coupe le texte du curseur <20> la fin de la ligne, au lieu de couper la
ligne enti<74>re.
.TP
.B \-l (\-\-nofollow)
Si le fichier <20>dit<69> est un lien symbolique, remplace le lien par le
nouveau fichier, sans le suivre. Ce mode ne serait-il pas utile pour
<EFBFBD>diter les fichiers de
.IR /tmp \ ?
.TP
.B \-m (\-\-mouse)
Active l'utilisation de la souris (si elle est disponible sur votre
syst<EFBFBD>me).
.TP
.B \-o \fIr<EFBFBD>pertoire\fP (\-\-operatingdir=\fIr<49>pertoire\fP)
D<EFBFBD>finit le r<>pertoire de travail. Demande <20> nano de mettre en place
quelque-chose de similaire <20> une cage chroot.
.TP
.B \-p (\-\-preserve)
Pr<EFBFBD>serve les s<>quences XON et XOFF (^Q et ^S), afin qu'elle soient
re<EFBFBD>ues par le terminal.
.TP
.B \-r \fIcolonne\fP (\-\-fill=\fIcolonne\fP)
Passe automatiquement <20> la ligne <20> la colonne \fIcolonne\fP. Par d<>faut,
le passage <20> la ligne se fait <20> la taille de l'<27>cran moins huit. Si la
valeur indiqu<71>e est n<>gative, le point de passage <20> la ligne sera
calcul<EFBFBD> relativement au bord droit de l'<27>cran. Cela permet de faire
varier le point de passage <20> la ligne lorsque l'on change la taille de
l'<27>cran.
.TP
.B \-s \fIprogramme\fP (\-\-speller=\fIprogramme\fP)
Choix d'un correcteur orthographique de remplacement.
.TP
.B \-t (\-\-tempfile)
S'il a <20>t<EFBFBD> modifi<66>, le fichier sera sauvegard<72> automatiquement sans
demande de confirmation. Identique <20> l'option -t de Pico.
.TP
.B \-v (\-\-view)
Mode visualisation (lecture seule).
.TP
.B \-w (\-\-nowrap)
D<EFBFBD>sactive le passage automatique <20> la ligne.
.TP
.B \-x (\-\-nohelp)
D<EFBFBD>sactive la barre d'aide affich<63>e en bas de l'<27>cran.
.TP
.B \-z (\-\-suspend)
Autorise <20> suspendre l'<27>diteur.
.TP
.B \-a, \-b, \-e, \-f, \-g, \-j
Ignor<EFBFBD>, pour <20>tre compatible avec Pico.
.SH FICHIERS D'INITIALISATION
\fBnano\fP lit les fichiers d'initialisation dans l'ordre suivant\ :
\fI$SYSCONFDIR/nanorc\fP, puis \fI~/.nanorc\fP. Reportez-vous <20> la page
de manuel de \fBnanorc\fP(5) et au fichier-exemple \fInanorc.sample\fP
qui devrait <20>tre livr<76> avec \fBnano\fP.
.SH NOTES
Dans certains cas, \fBnano\fP essaiera de sauvegarder le fichier en
cours d'<27>dition dans un fichier de secours. Cela arrivera
principalement si \fBnano\fP re<72>oit un signal SIGHUP ou SIGTERM, ou
bien se trouve <20> court de m<>moire. Le nom de ce fichier de secours sera
\fInano.save\fP si le fichier en cours n'avait pas encore de nom, ou
sera compos<6F> du nom du fichier en cours suivi du suffixe <20>\ .save\ <EFBFBD>. Si
un fichier de ce nom existe d<>j<EFBFBD> dans le r<>pertoire, un <20>\ .save\ <EFBFBD> et
un nombre seront ajout<75>e <20> la fin du nom du fichier en cours afin de le
rendre unique (par exemple, <20>\ .save.1\ <EFBFBD>). En mode multifichiers,
\fBnano\fP r<>alisera une sauvegarde de tous les fichiers en cours dans
leurs fichiers de secours respectifs.
.SH BOGUES
Merci de nous faire parvenir vos commentaires et de nous signaler les
bogues, en <20>crivant, en anglais, <20>
.BR nano@nano-editor.org .
N'h<>sitez pas <20> faire parvenir vos suggestions et commentaires relatifs
<EFBFBD> la version fran<61>aise de \fBnano\fP <20>
.BR jean-philippe.guerard@corbeaunoir.org .
La liste de discussion anglophone \fBnano\fP est disponible via
.BR nano-devel@gnu.org .
Pour vous abonner, envoyez un courrier <20>lectronique <20>
.BR nano-devel-request@gnu.org ,
ayant pour objet <20>\ subscribe\ <EFBFBD>.
.SH SITE INTERNET
http://www.nano-editor.org/
.SH VOIR AUSSI
.PD 0
.TP
\fBnanorc\fP(5)
.PP
\fI/usr/share/doc/nano/\fP (ou son <20>quivalent sur votre syst<73>me)
.SH AUTEUR
Chris Allegretta <chrisa@asty.org> et d'autres (voir les fichiers
\fIAUTHORS\fP et \fITHANKS\fP pour plus d'information). Cette page de
manuel a <20>t<EFBFBD> initialement r<>dig<69>e par Jordi Mallach
<jordi@sindominio.net> pour le syst<73>me GNU Debian (mais elle peut <20>tre
utilis<EFBFBD>e par d'autres).
.SH TRADUCTION
Jean-Philippe Gu<47>rard <jean-philippe.guerard@corbeaunoir.org>, 2003.

198
doc/man/fr/nanorc.5 Normal file
View File

@@ -0,0 +1,198 @@
.\" Hey, EMACS: -*- nroff -*-
.\" nanorc.5 is Copyright (C) 2003 Free Software Foundation, Inc.
.\"
.\" (c) 2003 Jean-Philippe Gu<47>rard <jean-philippe.guerard@corbeaunoir.org>
.\" pour l'adaptation fran<61>aise
.\"
.\" This is free documentation, see the latest version of the GNU General
.\" Public License for copying conditions. There is NO warranty.
.\"
.\" Ce document est libre. Reportez-vous <20> la derni<6E>re version de la
.\" licence publique g<>n<EFBFBD>rale GNU (GNU GPL) pour conna<6E>tre ses
.\" conditions d'utilisation. AUCUNE garantie n'est offerte.
.\"
.TH NANORC 5 "19 juin 2003 (v.f. du 25 ao<61>t 2003)"
.\" Please adjust this date whenever revising the manpage.
.\" Merci de modifier ces dates <20> chaque mise <20> jour de cette page.
.SH NAME
nanorc \- fichier de configuration de l'<27>diteur nano du projet GNU
.SH DESCRIPTION
Cette page de manuel d<>crit bri<72>vement le fichier de configuration de
l'<27>diteur \fBnano\fP du projet GNU.
.PP
\fBnano\fP est un petit <20>diteur sympathique et libre, qui vise <20>
remplacer Pico, l'<27>diteur par d<>faut du paquet non-libre Pine.
\fBnano\fP ne se contentant pas de copier l'interface et l'ergonomie de
Pico, il offre <20>galement certaines fonctionnalit<69>s manquantes (ou
d<EFBFBD>sactiv<EFBFBD>es par d<>faut) de Pico. Ces fonctionnalit<69>s sont, par exemple,
les fonctions de recherche et de remplacement, et la possibilit<69> de
sauter directement <20> un num<75>ro de ligne.
.PP
Le fichier \fInanorc\fP contient les param<61>tres par d<>faut de
\fBnano\fP. Lors de son d<>marrage, nano commence par lire le fichier de
configuration g<>n<EFBFBD>ral \fI$SYSCONFDIR/nanorc\fP, puis lit le fichier de
configuration personnel de l'utilisateur \fI~/.nanorc\fP.
.SH OPTIONS
Le fichier de configuration accepte une s<>rie de commandes <20>\ set\ <EFBFBD>
(activer) et <20>\ unset\ <EFBFBD> (d<>sactiver), qui permettent de d<>finir la
configuration de nano au d<>marrage sans avoir <20> utiliser d'options sur
la ligne de commande.
De plus, les mots clefs <20>\ syntax\ <EFBFBD> (syntaxe) et <20>\ color\ <EFBFBD> (couleur)
sont utilis<69>s pour d<>finir les r<>gles de colorisation pour diff<66>rents
motifs de texte. Nano lira une commande par ligne.
Les options du fichier de configuration ont priorit<69> sur les valeurs par
d<EFBFBD>faut utilis<69>es par nano. Les options donn<6E>es sur la ligne de commande
permettent d'outrepasser les options du fichier de configuration.
Les options sont d<>sactiv<69>es (unset) par d<>faut, sauf les options
prenant un argument.
Les commandes et arguments reconnus sont\ :
.TP 3
\fBset/unset autoindent\fP
Active l'indentation automatique.
.TP
\fBset/unset backup\fP
Cr<EFBFBD>e des copie de s<>curit<69> appel<65>es
.IR nom_du_fichier~ .
.TP
\fBset/unset const\fP
Affiche en permanence la position du curseur dans la barre
d'information.
.TP
\fBset/unset cut\fP
Par d<>faut, utilise ^K pour couper le texte du curseur <20> la fin de la
ligne, au lieu de couper la ligne enti<74>re.
.TP
\fBset fill \fIn\fP\fP
Passe automatiquement <20> la ligne <20> la colonne \fIn\fP. Si la valeur
indiqu<EFBFBD>e est 0 ou moins, la longueur de la ligne sera <20>gale <20> la largeur
de l'<27>cran moins \fIn\fP. La valeur par d<>faut est -8.
.TP
\fBset/unset historylog\fP
Active l'utilisation de
.I ~/.nano_history
pour enregistrer et relire les cha<68>nes ayant fait l'objet d'une
recherche ou d'un remplacement.
.TP
\fBset/unset keypad\fP
Utilise l'autre gestion du pav<61> num<75>rique.
.TP
\fBset/unset multibuffer\fP
Permet de charger simultan<61>ment plusieurs fichiers.
.TP
\fBset/unset noconvert\fP
Pas de conversion depuis les formats DOS et Mac.
.TP
\fBset/unset nofollow\fP
Ne suit pas les liens symboliques lors de l'<27>criture des fichiers.
.TP
\fBset/unset nohelp\fP
D<EFBFBD>sactive la barre d'aide affich<63>e en bas de l'<27>cran.
.TP
\fBset/unset nowrap\fP
D<EFBFBD>sactive le passage automatique <20> la ligne.
.TP
\fBset operatingdir "\fIr<EFBFBD>pertoire\fP"\fP
\fBnano\fP ne lira et n'<27>crira des fichiers qu'<27> l'int<6E>rieur du
\fIr<EFBFBD>pertoire\fP et de ses sous-r<>pertoires. De plus, celui-ci devient
le r<>pertoire courant, afin que les fichiers soient <20>crits dans ce
dossier. Par d<>faut, cette fonction est d<>sactiv<69>e.
.TP
\fBset/unset preserve\fP
Pr<EFBFBD>serve les s<>quences XON et XOFF (^Q et ^S).
.TP
\fBset quotestr "\fIcha<EFBFBD>ne\fP"\fP
D<EFBFBD>finit le pr<70>fixe par d<>faut utilis<69> pour les citations dans les
courriers <20>lectroniques. Ce pr<70>fixe est utilis<69> pour r<>aliser une
justification correcte de ces citations. Il s'agira, si votre syst<73>me le
permet, d'une <20>\ expression rationnelle <20>tendue\ <EFBFBD>. Dans le cas
contraire, il s'agira d'une cha<68>ne de texte brut. Si vous disposez des
expressions rationnelles, la valeur par d<>faut sera\ :
set quotestr "^([\ \\t]*[|>:}#])+"
Sinon, ce sera ">\ ". Notez que le <20>\ \\t\ <EFBFBD> ci-dessus correspond <20> un
caract<EFBFBD>re de tabulation.
.TP
\fBset/unset regexp\fP
Utilise par d<>faut des expressions rationnelles pour les recherches.
.TP
\fBset/unset smooth\fP
Active le d<>filement ligne-par-ligne du texte.
.TP
\fBset speller \fIprogramme\fP\fP
Utilise le correcteur orthographique \fIprogramme\fP au lieu du
correcteur int<6E>gr<67>, qui s'appuie sur \fIspell\fP.
.TP
\fBset/unset suspend\fP
Autorise <20> suspendre nano avec ^Z.
.TP
\fBset tabsize \fIn\fP\fP
Utilise une largeur de tabulation de \fIn\fP au lieu de la valeur par
d<EFBFBD>faut (8). Cette valeur doit <20>tre sup<75>rieur <20> 0.
.TP
\fBset/unset tempfile\fP
S'il a <20>t<EFBFBD> modifi<66>, le fichier sera sauvegard<72> automatiquement
sans demande de confirmation.
.TP
\fBset/unset view\fP
Interdit la modification du fichier.
.TP
.B syntax "\fIcha<68>ne\fP" ["\fImotif_de_fichier\fP" ... ]
D<EFBFBD>finit une syntaxe nomm<6D>e \fIcha<EFBFBD>ne\fP qui pourra <20>tre activ<69> via
l'option \fB-Y\fP, ou qui sera automatiquement activ<69> si le nom du
fichier en cours correspond au \fImotif_de_fichier\fP. Toutes les
instructions de colorisation \fBcolor\fP suivantes s'appliqueront <20> cette
syntaxe, jusqu'<27> la d<>finition d'une nouvelle syntaxe.
.TP
.B color \fIcouleur_texte\fP[,\fIcouleur_fond\fP] "\fImotif\fP" ...
Pour la syntaxe en cours, affiche toutes les expressions correspondant <20>
l'expression rationnelle \fImotif\fP en utilisant la couleur de texte
\fIcouleur_texte\fP et <20>ventuellement la couleur de fond
\fIcouleur_fond\fP. Les couleurs accept<70>es par \fBnano\fP pour le
texte et le fond sont\ : \fIwhite\fP (blanc), \fIblack\fP (noir),
\fIred\fP (rouge), \fIblue\fP (bleu), \fIgreen\fP (vert), \fIyellow\fP
(jaune), \fImagenta\fP, et \fIcyan\fP. Vous pouvez ajouter <20>
ces couleurs le pr<70>fixe \fIbright\fP pour obtenir une couleur plus
lumineuse. Si votre terminal est capable de g<>rer la transparence, ne
pas sp<73>cifier de \fIcouleur_fond\fP indique <20> \fBnano\fP d'essayer
d'utiliser un fond transparent.
.TP
.B color \fIcouleur_texte\fP[,\fIcouleur_fond\fP] start="\fImotif_d<5F>but\fP" end="\fImotif_fin\fP"
Affiche les expressions commen<65>ant par \fImotif_d<EFBFBD>but\fP et se terminant
par \fImotif_fin\fP en utilisant la couleur de texte \fIcouleur_texte\fP
et <20>ventuellement la couleur de fond \fIcouleur_fond\fP. Cela permet <20>
la colorisation syntaxique de s'<27>tendre sur plusieurs lignes. Notez que
toutes les occurrences successives de \fImotif_d<EFBFBD>but\fP apr<70>s le
\fImotif_d<EFBFBD>but\fP initial seront color<6F>es jusqu'<27> la prochaine instance
de \fImotif_fin\fP.
.SH FICHIERS
.TP
.I $SYSCONFDIR/nanorc
Fichier de configuration g<>n<EFBFBD>ral
.TP
.I ~/.nanorc
Fichier de configuration personnel
.SH VOIR AUSSI
.PD 0
.TP
\fBnano\fP(1)
.PP
\fI/usr/share/doc/nano/examples/nanorc.sample\fP (ou son <20>quivalent sur
votre syst<73>me)
.SH AUTEUR
Chris Allegretta <chrisa@asty.org> et d'autres (voir les fichiers
\fIAUTHORS\fP et \fITHANKS\fP pour plus d'information). Cette page de
manuel a <20>t<EFBFBD> r<>dig<69>e par Jordi Mallach <jordi@gnu.org>.
.SH TRADUCTION
Jean-Philippe Gu<47>rard <jean-philippe.guerard@corbeaunoir.org>, 2003.

4
doc/texinfo/.cvsignore Normal file
View File

@@ -0,0 +1,4 @@
Makefile
Makefile.in
nano.info
texinfo.tex

5
doc/texinfo/Makefile.am Normal file
View File

@@ -0,0 +1,5 @@
info_TEXINFOS = nano.texi
MAKEINFO = makeinfo --no-split
EXTRA_DIST = nano.info

View File

@@ -1,297 +0,0 @@
<HTML><HEAD><TITLE>Manpage of NANO</TITLE>
</HEAD><BODY>
<H1>NANO</H1>
Section: User Commands (1)<BR>Updated: August 24, 2003<BR><A HREF="#index">Index</A>
<A HREF="http://localhost/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<P>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
nano - Nano's ANOther editor, an enhanced free Pico clone
<P>
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>nano</B>
<I>[+LINE]&nbsp;[options]&nbsp;[file]</I>
<BR>
<P>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
This manual page documents briefly the <B>nano</B> command.
<P>
<B>nano</B> is a small, free and friendly editor which aims to replace
Pico, the default editor included in the non-free Pine package. Rather
than just copying Pico's look and feel, <B>nano</B> also implements some
missing (or disabled by default) features in Pico, such as &quot;search and
replace&quot; and &quot;go to line number&quot;.
<P>
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT><B>+</B><I>LINE</I>
<DD>
Places cursor at <I>LINE</I> on startup.
<DT><B>-B (--backup)</B>
<DD>
When saving a file, back up the previous version of it to the current
filename suffixed with a ~.
<DT><B>-D (--dos)</B>
<DD>
Write file in DOS format.
<DT><B>-F (--multibuffer)</B>
<DD>
Enable multiple file buffers, if available.
<DT><B>-H (--historylog)</B>
<DD>
Log search and replace strings to
<I>~/.nano_history</I>
so they may be stored for later editing, if nanorc support is
configured.
<DT><B>-I (--ignorercfiles)</B>
<DD>
Don't look at
<I>SYSCONFDIR/nanorc</I>
or
<I>~/.nanorc</I>,
if nanorc support is available.
<DT><B>-M (--mac)</B>
<DD>
Write file in Mac format.
<DT><B>-N (--noconvert)</B>
<DD>
Disable automatic conversion of files from DOS/Mac format.
<DT><B>-Q </B><I>str</I> (--quotestr=<I>str</I>)
<DD>
Set the quoting string for justifying. The default is
&quot;^([&nbsp;\t]*[|&gt;:}#])+&quot; if regular expression support is available, or
&quot;&gt;&nbsp;&quot; otherwise.
<DT><B>-R (--regexp)</B>
<DD>
Enable regular expression matching for search strings, as well as
\n subexpression replacement for replace strings, if available.
<DT><B>-S (--smooth)</B>
<DD>
Enable smooth scrolling. Text will scroll line-by-line, instead of the
usual chunk-by-chunk behavior.
<DT><B>-T </B><I>num</I> (--tabsize=<I>num</I>)
<DD>
Set the size (width) of a tab.
<DT><B>-V (--version)</B>
<DD>
Show the current version number and author.
<DT><B>-Y </B><I>str</I> (--syntax=<I>str</I>)
<DD>
Specify a specific syntax highlighting from the
<I>.nanorc</I>
to use, if available.
<DT><B>-c (--const)</B>
<DD>
Constantly show the cursor position.
<DT><B>-d (--rebinddelete)</B>
<DD>
Interpret the Delete key differently so that both Backspace and Delete
work properly. You should only need to use this option if Backspace
acts like Delete on your system.
<DT><B>-h (--help)</B>
<DD>
Display a summary of command line options.
<DT><B>-i (--autoindent)</B>
<DD>
Indent new lines to the previous line's indentation. Useful when editing
source code.
<DT><B>-k (--cut)</B>
<DD>
Enable cut from cursor to end of line with ^K.
<DT><B>-l (--nofollow)</B>
<DD>
If the file being edited is a symbolic link, replace the link with
a new file, do not follow it. Good for editing files in
<I>/tmp</I>,
perhaps?
<DT><B>-m (--mouse)</B>
<DD>
Enable mouse support (if available for your system).
<DT><B>-o </B><I>dir</I> (--operatingdir=<I>dir</I>)
<DD>
Set operating directory. Makes nano set up something similar to a
chroot.
<DT><B>-p (--preserve)</B>
<DD>
Preserve the XON and XOFF sequences (^Q and ^S) so they will be caught
by the terminal.
<DT><B>-r </B><I>cols</I> (--fill=<I>cols</I>)
<DD>
Wrap lines at column <I>cols</I>. By default, this is the width of the
screen, less eight. If this value is negative, wrapping will occur at
<I>cols</I> columns from the right of the screen, allowing the wrap point
to vary along with the screen width if resized.
<DT><B>-s </B><I>prog</I> (--speller=<I>prog</I>)
<DD>
Enable alternative spell checker command.
<DT><B>-t (--tempfile)</B>
<DD>
Always save changed buffer without prompting. Same as Pico -t option.
<DT><B>-v (--view)</B>
<DD>
View file (read only) mode.
<DT><B>-w (--nowrap)</B>
<DD>
Disable wrapping of long lines.
<DT><B>-x (--nohelp)</B>
<DD>
Disable help screen at bottom of editor.
<DT><B>-z (--suspend)</B>
<DD>
Enable suspend ability.
<DT><B>-a, -b, -e, -f, -g, -j</B>
<DD>
Ignored, for compatibility with Pico.
<P>
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>INITIALIZATION FILE</H2>
<B>nano</B> will read initialization files in the following order:
<I>SYSCONFDIR/nanorc</I>,
then
<I>~/.nanorc</I>.
Please see
<B><A HREF="http://localhost/cgi-bin/man/man2html?5+nanorc">nanorc</A></B>(5)
and the example file <B>nanorc.sample</B> which should be provided with
<B>nano</B>.
<P>
<A NAME="lbAG">&nbsp;</A>
<H2>NOTES</H2>
<B>nano</B> will try to dump the buffer into an emergency file in some
cases. Mainly, this will happen if <B>nano</B> receives a SIGHUP or
SIGTERM or runs out of memory, when it will write the buffer into a file
named
<I>nano.save</I>
if the buffer didn't have a name already, or will add a &quot;.save&quot; suffix
to the current filename. If an emergency file with that name already
exists in the current directory, &quot;.save&quot; and a number (e.g. &quot;.save.1&quot;)
will be suffixed to the current filename in order to make it unique. In
multibuffer mode, <B>nano</B> will write all the open buffers to the
respective emergency files.
<P>
<A NAME="lbAH">&nbsp;</A>
<H2>BUGS</H2>
Please send any comments or bug reports to
<B><A HREF="mailto:nano@nano-editor.org">nano@nano-editor.org</A></B>.
<P>
The <B>nano</B> mailing list is available from
<B><A HREF="mailto:nano-devel@gnu.org">nano-devel@gnu.org</A></B>.
<P>
To subscribe, email to
<B><A HREF="mailto:nano-devel-request@gnu.org">nano-devel-request@gnu.org</A></B>
with a subject of &quot;subscribe&quot;.
<P>
<A NAME="lbAI">&nbsp;</A>
<H2>HOMEPAGE</H2>
<A HREF="http://www.nano-editor.org/">http://www.nano-editor.org/</A>
<P>
<A NAME="lbAJ">&nbsp;</A>
<H2>SEE ALSO</H2>
<DL COMPACT>
<DT><B><A HREF="http://localhost/cgi-bin/man/man2html?5+nanorc">nanorc</A></B>(5)<DD>
</DL>
<P>
<I>/usr/share/doc/nano/</I> (or equivalent on your system)
<P>
<A NAME="lbAK">&nbsp;</A>
<H2>AUTHOR</H2>
Chris Allegretta &lt;<A HREF="mailto:chrisa@asty.org">chrisa@asty.org</A>&gt;, et al (see
<I>AUTHORS</I>
and
<I>THANKS</I>
for details). This manual page was originally written by Jordi Mallach
&lt;<A HREF="mailto:jordi@sindominio.net">jordi@sindominio.net</A>&gt;, for the Debian GNU system (but may be used by
others).
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">OPTIONS</A><DD>
<DT><A HREF="#lbAF">INITIALIZATION FILE</A><DD>
<DT><A HREF="#lbAG">NOTES</A><DD>
<DT><A HREF="#lbAH">BUGS</A><DD>
<DT><A HREF="#lbAI">HOMEPAGE</A><DD>
<DT><A HREF="#lbAJ">SEE ALSO</A><DD>
<DT><A HREF="#lbAK">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 21:16:54 GMT, August 24, 2003
</BODY>
</HTML>

View File

@@ -1,196 +0,0 @@
<HTML><HEAD><TITLE>Manpage of NANORC</TITLE>
</HEAD><BODY>
<H1>NANORC</H1>
Section: File Formats (5)<BR>Updated: August 24, 2003<BR><A HREF="#index">Index</A>
<A HREF="http://localhost/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
nanorc - GNU nano's rcfile
<A NAME="lbAC">&nbsp;</A>
<H2>DESCRIPTION</H2>
This manual page documents GNU <B>nano</B>'s rcfile.
<P>
<B>nano</B> is a small, free and friendly editor which aims to replace
Pico, the default editor included in the non-free Pine package. Rather
than just copying Pico's look and feel, <B>nano</B> also implements some
missing (or disabled by default) features in Pico, such as &quot;search and
replace&quot; and &quot;go to line number&quot;.
<P>
The <I>nanorc</I> file contains the default settings for <B>nano</B>.
During startup, <B>nano</B> will first read its system-wide settings from
<I>SYSCONFDIR/nanorc</I>,
and then user-specific settings from
<I>~/.nanorc</I>.
<P>
<A NAME="lbAD">&nbsp;</A>
<H2>OPTIONS</H2>
The configuration file accepts a series of &quot;set&quot; and &quot;unset&quot; commands,
which can be used to configure nano on startup without using the
command-line options. Additionally, the &quot;syntax&quot; and &quot;color&quot; keywords
are used to define syntax highlighting rules for different text
patterns. GNU nano will read one command per line.
<P>
Options in rcfiles take precedence over nano's defaults, and command
line options override rcfile settings.
<P>
Options are unset by default, except for options that take an argument.
<P>
The supported commands and arguments are:
<P>
<DL COMPACT>
<DT><B>set/unset autoindent</B><DD>
Use auto-indentation.
<DT><B>set/unset backup</B><DD>
Create backup files in
<I>filename~</I>.
<DT><B>set/unset const</B><DD>
Constantly display the cursor position in the status bar.
<DT><B>set/unset cut</B><DD>
Use cut to end of line with ^K by default.
<DT><B>set fill </B><I>n</I><DD>
Wrap lines at column number <I>n</I>. If <I>n</I> is 0 or less, the line
length will be the screen width less <I>n</I>. The default value is -8.
<DT><B>set/unset historylog</B><DD>
Enable
<I>~/.nano_history</I>
for saving and reading search/replace strings.
<DT><B>set/unset multibuffer</B><DD>
Allow inserting files into their own buffers.
<DT><B>set/unset noconvert</B><DD>
Don't convert files from DOS/Mac format.
<DT><B>set/unset nofollow</B><DD>
Don't follow symlinks when writing files.
<DT><B>set/unset nohelp</B><DD>
Don't display the help lists at the bottom of the screen.
<DT><B>set/unset nowrap</B><DD>
Don't wrap text at all.
<DT><B>set operatingdir &quot;</B><I>directory</I>&quot;<DD>
<B>nano</B> will only read and write files inside <I>directory</I> and its
subdirectories. Also, the current directory is changed to here, so
files are inserted from this dir. By default the operating directory
feature is turned off.
<DT><B>set/unset preserve</B><DD>
Preserve the XON and XOFF keys (^Q and ^S).
<DT><B>set quotestr &quot;</B><I>string</I>&quot;<DD>
The email-quote string, used to justify email-quoted paragraphs. This
is an &quot;extended regular expression&quot; if your system supports them,
otherwise a literal string. The default value is
<P>
<TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT>set quotestr &quot;^([&nbsp;\t]*[|&gt;:}#])+&quot;<BR>
<P>
if you have regexps, otherwise set quotestr &quot;&gt;&nbsp;&quot;. Note that '\t'
above stands for a literal Tab character.
<DT><B>set/unset rebinddelete</B><DD>
Interpret the Delete key differently so that both Backspace and Delete
work properly. You should only need to use this option if Backspace
acts like Delete on your system.
<DT><B>set/unset regexp</B><DD>
Do regular expression searches by default.
<DT><B>set/unset smooth</B><DD>
Use smooth scrolling by default.
<DT><B>set speller </B><I>spellprog</I><DD>
Use spelling checker <I>spellprog</I> instead of the built-in one, which
calls <I>spell</I>.
<DT><B>set/unset suspend</B><DD>
Allow nano to be suspended with ^Z.
<DT><B>set tabsize </B><I>n</I><DD>
Use a tab size of <I>n</I> instead of the default (8); must be greater
than 0.
<DT><B>set/unset tempfile</B><DD>
Save automatically on exit, don't prompt.
<DT><B>set/unset view</B><DD>
Disallow file modification.
<DT><B>syntax </B><I>str</I> [<I>fileregex</I> ... ]
<DD>
Defines a syntax named <I>str</I> which can be activated via the <B>-Y</B>
flag, or will be automatically activated if the current filename matches
<I>fileregex</I>. All following <B>color</B> statements will apply to
<I>syntax</I> until a new syntax is defined.
<DT><B>color </B><I>fgcolor</I>[,<I>bgcolor</I>] <I>regex</I> ...
<DD>
For the currently defined syntax, display all expressions matching
<I>regex</I> with foreground color <I>fgcolor</I> and optional background
color <I>bgcolor</I>. Legal colors for foreground and background color
are: white, black, red, blue, green, yellow, magenta, and cyan. You may
use the prefix &quot;bright&quot; to force a stronger color highlight. If your
terminal supports transparency, not specifying a <I>bgcolor</I> tells
<B>nano</B> to attempt to use a transparent background.
<DT><B>color </B><I>fgcolor</I>[,<I>bgcolor</I>] start=<I>sr</I> end=<I>er</I>
<DD>
Display expressions which start with <I>sr</I> and end with <I>er</I>
with foreground color <I>fgcolor</I> and optional background color
<I>bgcolor</I>. This allows syntax highlighting to span multiple lines.
Note that all subsequent instances of <I>sr</I> after an initial <I>sr</I>
is found will be highlighted until the first instance of <I>er</I>.
<I>
<P>
</DL>
</I><A NAME="lbAE">&nbsp;</A>
<H2>FILES</H2>
<DL COMPACT>
<DT><I>SYSCONFDIR/nanorc</I>
<DD>
System-wide configuration file
<DT><I>~/.nanorc</I>
<DD>
Per-user configuration file
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<DL COMPACT>
<DT><B><A HREF="http://localhost/cgi-bin/man/man2html?1+nano">nano</A></B>(1)<DD>
</DL>
<P>
<I>/usr/share/doc/nano/examples/nanorc.sample</I> (or equivalent on your
system)
<A NAME="lbAG">&nbsp;</A>
<H2>AUTHOR</H2>
Chris Allegretta &lt;<A HREF="mailto:chrisa@asty.org">chrisa@asty.org</A>&gt;, et al (see
<I>AUTHORS</I>
and
<I>THANKS</I>
for details).
This manual page was written by Jordi Mallach &lt;<A HREF="mailto:jordi@gnu.org">jordi@gnu.org</A>&gt;.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">DESCRIPTION</A><DD>
<DT><A HREF="#lbAD">OPTIONS</A><DD>
<DT><A HREF="#lbAE">FILES</A><DD>
<DT><A HREF="#lbAF">SEE ALSO</A><DD>
<DT><A HREF="#lbAG">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 21:17:00 GMT, August 24, 2003
</BODY>
</HTML>

4
src/.cvsignore Normal file
View File

@@ -0,0 +1,4 @@
Makefile
Makefile.in
nano
.deps

22
src/Makefile.am Normal file
View File

@@ -0,0 +1,22 @@
DEFS= -DSYSCONFDIR=\"$(sysconfdir)\"
localedir = $(datadir)/locale
INCLUDES = -Iintl -DLOCALEDIR=\"$(localedir)\" -I@includedir@
ACLOCAL_AMFLAGS = -I m4
bin_PROGRAMS = nano
nano_SOURCES = color.c \
cut.c \
files.c \
global.c \
move.c \
nano.c \
nano.h \
proto.h \
rcfile.c \
search.c \
utils.c \
winio.c
nano_LDADD = @GLIB_LIBS@ @LIBINTL@

View File

View File

View File

View File