Le 08/05/2023 à 15:21, Jean-Pierre Chrétien a écrit :
Le 08/05/2023 à 14:43, Pavel Sanda a écrit :On Mon, May 08, 2023 at 02:17:41PM +0200, Jean-Pierre Chrétien wrote:In French, the guillemets are inserted as characters ?? and ?? (automatically translated from typed character "), but they are associated to a protected space, so in ?? exemple ??, there are 9 characters without blanks and 11 with blanks.But this protected space is added by user or it's LyX's doing?LyX does the job, the spaces appear in the LyX window.Same stuff for punctuation marks : ; ? and !, which are all preceded by a protected space in French. the space is added by Lyx, but it does not need to appear in the LyX window.But it is weirder than it looks: if the user types in a space before : ; ? and !, LyX does not add anything, but makes it a protected space if it is not one.So, it is clear that the French guillemets counts for 2 characters (one if blanks excluded), but for the : ; ? and ! characters, it would be necessary to count 2 characters if the punctuation sign is not preceded by a blank. I suppose that you count characters in the output from the analysis of the characters in the LyX window, is this correct ?
Attached is an example file. -- Jean-Pierre
ponctuation.lyx
Description: application/lyx
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel