flnews_post_proc 1.80 → 1.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/flnews_post_proc +5 -0
- data/doc/fr/html/flnews_post_proc.html +151 -12
- data/doc/fr/man/flnews_post_proc.1.gz +0 -0
- data/doc/fr/pdf/flnews_post_proc.pdf +0 -0
- data/doc/fr/rst/flnews_post_proc.rst +31 -0
- data/doc/html/flnews_post_proc.html +351 -537
- data/doc/man/flnews_post_proc.1.gz +0 -0
- data/doc/pdf/flnews_post_proc.pdf +0 -0
- data/doc/rst/flnews_post_proc.rst +49 -1
- data/lib/basic_logging.rb +0 -1
- data/lib/body.rb +18 -9
- data/lib/configuration.rb +25 -25
- data/lib/flnews_post_proc.rb +8 -1
- data/lib/headers.rb +40 -28
- data/lib/newsgroups.rb +7 -2
- data/lib/override.rb +2 -1
- data/lib/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e17e4be42296bfb10faf914f36e8453ef54cdab18174a5c069b145fbe75f4976
|
|
4
|
+
data.tar.gz: d0c0de705ac9cc26595952ee32a113dc2d2b7f66850d2232bc63aa96eb2f43af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0a93b95e176331607537ab17ab6739bfc02283133662402df8db6b05eb5b0c6f36252ff6dd49d8dc4b45b34cf18c3181c6b363834a60dbe59d823465c2f5b7c1
|
|
7
|
+
data.tar.gz: e4517634172349c97fd9062b5044b8b7982aa1a034c3fdef9e47d5fe754fd0f5cef662d8b0c677ce06ed1cfed6b20caaf99f8d181a0a8b1b333d07e29e5baa34
|
data/bin/flnews_post_proc
CHANGED
|
@@ -88,6 +88,11 @@ if (!STDIN.tty?)
|
|
|
88
88
|
warn 'Input contains other things than plain-text, but I cannot say, what.'
|
|
89
89
|
end
|
|
90
90
|
end
|
|
91
|
+
# Is this article superseding another ?
|
|
92
|
+
if (Headers::supersedes?(artext) )
|
|
93
|
+
debug 'is supersedes! '
|
|
94
|
+
config.set(:SUPERSEDES, true)
|
|
95
|
+
end
|
|
91
96
|
#----------->
|
|
92
97
|
# Allow to override the configuration,
|
|
93
98
|
# if not disabled (default is true)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta name="generator" content="vim - Vi Improved, a programmer's editor; HTML Tidy for Linux version 5.8.0
|
|
5
5
|
"/>
|
|
@@ -18,16 +18,23 @@
|
|
|
18
18
|
Stylesheet for use with Docutils.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
/* The defaults for docutils */
|
|
22
|
-
@import url(html4css1.css);
|
|
23
|
-
|
|
24
21
|
body {
|
|
25
|
-
background-color:#
|
|
22
|
+
background-color:#e0f0c0;
|
|
26
23
|
font-family: Verdana,Helvetica,Univers;
|
|
27
24
|
}
|
|
28
25
|
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
p {width: 80%;}
|
|
27
|
+
|
|
28
|
+
h1.title {color:#800080;font-size:2em;}
|
|
29
|
+
h2 {color:darkblue;font-size:1.5em;}
|
|
30
|
+
h3 {color:#3030f0;font-size:1em;}
|
|
31
|
+
|
|
32
|
+
nav:before {
|
|
33
|
+
content:'Contenu';
|
|
34
|
+
font-weight:bold;
|
|
35
|
+
color:darkblue;
|
|
36
|
+
font-size:1.5em;
|
|
37
|
+
}
|
|
31
38
|
|
|
32
39
|
p, ul.simple, ol.simple, dt {margin-left:2em;}
|
|
33
40
|
dd {margin-left:4em;}
|
|
@@ -44,24 +51,115 @@
|
|
|
44
51
|
|
|
45
52
|
pre.literal-block {
|
|
46
53
|
margin-left:2em;
|
|
47
|
-
font-family:
|
|
48
|
-
}
|
|
49
|
-
|
|
54
|
+
font-family:Verdana,Helvetica,Univers;
|
|
55
|
+
}8
|
|
50
56
|
blockquote {background-color:#ffc090;
|
|
51
57
|
padding:0.5em;
|
|
58
|
+
width:80%;
|
|
52
59
|
border-radius:0.5em;
|
|
53
60
|
}
|
|
54
61
|
|
|
62
|
+
|
|
55
63
|
/*]]>*/
|
|
56
64
|
</style>
|
|
57
65
|
</head>
|
|
58
|
-
<body>
|
|
66
|
+
<body class="with-toc">
|
|
59
67
|
<main id="flnews-post-proc">
|
|
60
68
|
<h1 class="title">flnews_post_proc</h1>
|
|
61
69
|
|
|
62
70
|
<p class="subtitle" id="post-traitement-pour-flnews">
|
|
63
71
|
Post-Traitement pour flnews</p>
|
|
64
72
|
|
|
73
|
+
<nav class="contents local" id="contents" role="doc-toc">
|
|
74
|
+
<ul class="simple">
|
|
75
|
+
<li>
|
|
76
|
+
<p><a class="reference internal" href="#synopsis" id=
|
|
77
|
+
"toc-entry-1">SYNOPSIS</a>
|
|
78
|
+
</p>
|
|
79
|
+
</li>
|
|
80
|
+
|
|
81
|
+
<li>
|
|
82
|
+
<p><a class="reference internal" href="#description" id=
|
|
83
|
+
"toc-entry-2">DESCRIPTION</a>
|
|
84
|
+
</p>
|
|
85
|
+
|
|
86
|
+
<ul>
|
|
87
|
+
<li>
|
|
88
|
+
<p><a class="reference internal" href=
|
|
89
|
+
"#les-limites-d-un-lecteur-basique-de-news-ce-qui-peut-faire-program"
|
|
90
|
+
id="toc-entry-3">Les limites d'un lecteur basique de
|
|
91
|
+
news – ce qui peut faire
|
|
92
|
+
<strong>flnews_post_proc</strong></a>
|
|
93
|
+
</p>
|
|
94
|
+
</li>
|
|
95
|
+
|
|
96
|
+
<li>
|
|
97
|
+
<p><a class="reference internal" href=
|
|
98
|
+
"#dialogue-pour-desactiver-des-options" id=
|
|
99
|
+
"toc-entry-4">Dialogue pour désactiver des
|
|
100
|
+
options</a>
|
|
101
|
+
</p>
|
|
102
|
+
</li>
|
|
103
|
+
</ul>
|
|
104
|
+
</li>
|
|
105
|
+
|
|
106
|
+
<li>
|
|
107
|
+
<p><a class="reference internal" href="#configuration"
|
|
108
|
+
id="toc-entry-5">CONFIGURATION</a>
|
|
109
|
+
</p>
|
|
110
|
+
|
|
111
|
+
<ul>
|
|
112
|
+
<li>
|
|
113
|
+
<p><a class="reference internal" href=
|
|
114
|
+
"#options-de-configuration" id="toc-entry-6">Options
|
|
115
|
+
de configuration</a>
|
|
116
|
+
</p>
|
|
117
|
+
</li>
|
|
118
|
+
</ul>
|
|
119
|
+
</li>
|
|
120
|
+
|
|
121
|
+
<li>
|
|
122
|
+
<p><a class="reference internal" href=
|
|
123
|
+
"#autres-informations" id="toc-entry-7">Autres
|
|
124
|
+
Informations</a>
|
|
125
|
+
</p>
|
|
126
|
+
|
|
127
|
+
<ul>
|
|
128
|
+
<li>
|
|
129
|
+
<p><a class="reference internal" href=
|
|
130
|
+
"#remplacement-avec-signature" id=
|
|
131
|
+
"toc-entry-8">Remplacement avec signature</a>
|
|
132
|
+
</p>
|
|
133
|
+
</li>
|
|
134
|
+
|
|
135
|
+
<li>
|
|
136
|
+
<p><a class="reference internal" href="#tester" id=
|
|
137
|
+
"toc-entry-9">Tester</a>
|
|
138
|
+
</p>
|
|
139
|
+
</li>
|
|
140
|
+
|
|
141
|
+
<li>
|
|
142
|
+
<p><a class="reference internal" href="#code-source"
|
|
143
|
+
id="toc-entry-10">Code source</a>
|
|
144
|
+
</p>
|
|
145
|
+
</li>
|
|
146
|
+
|
|
147
|
+
<li>
|
|
148
|
+
<p><a class="reference internal" href="#license" id=
|
|
149
|
+
"toc-entry-11">License</a>
|
|
150
|
+
</p>
|
|
151
|
+
</li>
|
|
152
|
+
|
|
153
|
+
<li>
|
|
154
|
+
<p><a class="reference internal" href="#auteur" id=
|
|
155
|
+
"toc-entry-12">Auteur</a>
|
|
156
|
+
</p>
|
|
157
|
+
</li>
|
|
158
|
+
</ul>
|
|
159
|
+
</li>
|
|
160
|
+
</ul>
|
|
161
|
+
</nav>
|
|
162
|
+
|
|
65
163
|
<section id="synopsis">
|
|
66
164
|
<h2>SYNOPSIS</h2>
|
|
67
165
|
|
|
@@ -569,7 +667,7 @@ alt.fr.test: /home/[utilisateur]/.signatures</pre>
|
|
|
569
667
|
<p>EXEMPLE: No</p>
|
|
570
668
|
</blockquote>
|
|
571
669
|
|
|
572
|
-
<p><strong>OVERRIDE_CONFIG</strong>
|
|
670
|
+
<p id="override-config"><strong>OVERRIDE_CONFIG</strong>
|
|
573
671
|
</p>
|
|
574
672
|
|
|
575
673
|
<blockquote>
|
|
@@ -597,6 +695,47 @@ alt.fr.test: /home/[utilisateur]/.signatures</pre>
|
|
|
597
695
|
<section id="autres-informations">
|
|
598
696
|
<h2>Autres Informations</h2>
|
|
599
697
|
|
|
698
|
+
<section id="remplacement-avec-signature">
|
|
699
|
+
<h3>Remplacement avec signature</h3>
|
|
700
|
+
|
|
701
|
+
<p>Lors du remplacement d'un article existant, aucune
|
|
702
|
+
signature n'est appliquée automatiquement. Ceci permet de
|
|
703
|
+
conserver autant de contenu original que possible.</p>
|
|
704
|
+
|
|
705
|
+
<p>Pour conserver la signature originale dans la nouvelle
|
|
706
|
+
version de l'article :</p>
|
|
707
|
+
|
|
708
|
+
<ol class="arabic simple">
|
|
709
|
+
<li>
|
|
710
|
+
<p>Dans flnews, sélectionnez l'intégralité de l'article
|
|
711
|
+
avec la souris – de la première ligne (y compris toute
|
|
712
|
+
introduction) jusqu'à la dernière ligne de la
|
|
713
|
+
signature.</p>
|
|
714
|
+
</li>
|
|
715
|
+
|
|
716
|
+
<li>
|
|
717
|
+
<p>Dans le menu Article, sélectionnez
|
|
718
|
+
<strong>Remplacer</strong>.</p>
|
|
719
|
+
</li>
|
|
720
|
+
|
|
721
|
+
<li>
|
|
722
|
+
<p>Apportez les modifications souhaitées. Notez que la
|
|
723
|
+
signature sera incluse dans le texte modifiable,
|
|
724
|
+
contrairement à la situation normale où flnews supprime
|
|
725
|
+
les signatures avant d'ouvrir l'éditeur.</p>
|
|
726
|
+
</li>
|
|
727
|
+
|
|
728
|
+
<li>
|
|
729
|
+
<p>Envoyez l'article.</p>
|
|
730
|
+
</li>
|
|
731
|
+
</ol>
|
|
732
|
+
|
|
733
|
+
<p><strong>Note :</strong> Le dialogue de configuration
|
|
734
|
+
(voir ci-dessous : <a class="reference internal" href=
|
|
735
|
+
"#override-config">OVERRIDE_CONFIG</a>) n'affecte pas les
|
|
736
|
+
signatures lors d'un remplacement.</p>
|
|
737
|
+
</section>
|
|
738
|
+
|
|
600
739
|
<section id="tester">
|
|
601
740
|
<h3>Tester</h3>
|
|
602
741
|
|
|
Binary file
|
|
Binary file
|
|
@@ -8,6 +8,11 @@ flnews_post_proc
|
|
|
8
8
|
Post-Traitement pour flnews
|
|
9
9
|
------------------------------------------
|
|
10
10
|
|
|
11
|
+
.. contents::
|
|
12
|
+
:local:
|
|
13
|
+
:backlinks: none
|
|
14
|
+
:depth: 3
|
|
15
|
+
|
|
11
16
|
SYNOPSIS
|
|
12
17
|
=======================
|
|
13
18
|
Un article est envoyé au logiciel de post-traitement via STDIN. Cela se fait
|
|
@@ -358,6 +363,8 @@ Options de configuration
|
|
|
358
363
|
|
|
359
364
|
EXEMPLE: No
|
|
360
365
|
|
|
366
|
+
.. _OVERRIDE_CONFIG:
|
|
367
|
+
|
|
361
368
|
**OVERRIDE_CONFIG**
|
|
362
369
|
|
|
363
370
|
Une constante booléenne. Vous pouvez décider d'ignorer les options
|
|
@@ -378,6 +385,30 @@ Options de configuration
|
|
|
378
385
|
Autres Informations
|
|
379
386
|
===================
|
|
380
387
|
|
|
388
|
+
Remplacement avec signature
|
|
389
|
+
---------------------------
|
|
390
|
+
|
|
391
|
+
Lors du remplacement d'un article existant, aucune signature n'est appliquée
|
|
392
|
+
automatiquement. Ceci permet de conserver autant de contenu original que
|
|
393
|
+
possible.
|
|
394
|
+
|
|
395
|
+
Pour conserver la signature originale dans la nouvelle version de l'article :
|
|
396
|
+
|
|
397
|
+
1. Dans flnews, sélectionnez l'intégralité de l'article avec la souris – de la
|
|
398
|
+
première ligne (y compris toute introduction) jusqu'à la dernière ligne de
|
|
399
|
+
la signature.
|
|
400
|
+
|
|
401
|
+
2. Dans le menu Article, sélectionnez **Remplacer**.
|
|
402
|
+
|
|
403
|
+
3. Apportez les modifications souhaitées. Notez que la signature sera incluse
|
|
404
|
+
dans le texte modifiable, contrairement à la situation normale où flnews
|
|
405
|
+
supprime les signatures avant d'ouvrir l'éditeur.
|
|
406
|
+
|
|
407
|
+
4. Envoyez l'article.
|
|
408
|
+
|
|
409
|
+
**Note :** Le dialogue de configuration (voir ci-dessous : `OVERRIDE_CONFIG`_)
|
|
410
|
+
n'affecte pas les signatures lors d'un remplacement.
|
|
411
|
+
|
|
381
412
|
Tester
|
|
382
413
|
------
|
|
383
414
|
L'effet qu'aura l'exécution du programme peut être vérifié de deux manières :
|