« Module:Biblio/Ouvrage » : différence entre les versions

Contenu supprimé Contenu ajouté
Aucun résumé des modifications
Ajout d'un point si nécessaire avant la plume ; pas de marque ‎ s'il n'y a pas de caractère rtl
Ligne 225 :
local annee = validArg( 'année', 'date', 'year' )
if annee then
local lrm
wiki.minsert( ',‎ ', Commun.inscriptionDate( args ) )
if Langue.nonLatin( wiki.concat() ) then
lrm = '‎'
end
wiki.minsert( ',&', lrm;, ' ', Commun.inscriptionDate( args ) )
-- le &lrm est une marque de texte gauche à droite, utile si le texte qui précède est en droite à gauche (arabe, hébreux...)
end
Ligne 305 ⟶ 309 :
end
end
local patternPonct = '[,.;:!?]$'
local ponctuation = wiki.concat():gsub( '%b<>', '' ):match( patternPonct )
-- Ajout des méthadonnées COinS (ContextObjects in Spans)
Ligne 318 ⟶ 325 :
end
if validArg( 'plume' ) then
local point
wiki.minsert( Commun.plume )
if not citation and not ponctuation then
point = '.'
end
wiki.minsert( point, Commun.plume )
end
wiki.minsert( Commun.commentaire( args ) )