View Single Post
Old 02-20-2015, 06:14 AM   #12
Francois_C
Zealot
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
Quote:
Originally Posted by DigitEditLab View Post
@Francois_C:
The punctuation in French is perfectly processed thanks to a non-breakable space added with a safe and effective regex query, instead of any "smarten punctuation".
Bon courage, collègue !
"Smarten punctuation" generally works well for me. On LibreOffice, I use this (rather empirically written but generally working – to add non breakable spaces – except for opening lower double quotes that must be treated separately):
([a-z0-9àâäéèêëíìîïóòôöùúÛüÿyç…;!?»”"\)])([;:?!»])
Replace with:
$1(paste non breakable space here)$2
and:
([a-z0-9àâäéèêëíìîïóòôöùúÛüÿyç…;!?»”"\)]) ([;:?!»])
$1(paste non breakable space here)$2
Which regex are you using?

Last edited by Francois_C; 02-20-2015 at 06:35 AM.
Francois_C is offline   Reply With Quote