-
Notifications
You must be signed in to change notification settings - Fork 598
Open
Description
Following #378, it would be great to add non-breaking thin spaces also to other punctuation marks and currency symbols, according to Unicode : Space around punctuation and Non-breaking space#In France:
L'usage actuel en PAO française tend toutefois à généraliser l'usage de l'espace fine insécable dans tous les cas, aussi pour le deux-points et les guillemets.
Which means:
The current use in French Computer-Assisted Production however tends to generalize the use of thin non-breaking space in all cases, also for the colon and quotation marks.
For now I do it with Gulp:
function html() {
return src('public/**/*.html')
.pipe(beautify({
indent_size: 2,
preserve_newlines: false,
extra_liners: []
}))
.pipe(replace('« ', '« '))
.pipe(replace(' »', ' »'))
.pipe(replace('« ', '« '))
.pipe(replace(' »', ' »'))
.pipe(replace(' :', ' :'))
.pipe(replace(' ;', ' ;'))
.pipe(replace(' !', ' !'))
.pipe(replace(' ?', ' ?'))
.pipe(replace(' %', ' %'))
.pipe(replace(' €', ' €'))
.pipe(replace(' <i ', ' <i '))
.pipe(replace('</i> ', '</i> '))
.pipe(dest('public'))
}
  is a non-breaking space.
« is «
» is »
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels