2 messages in org.openoffice.fr.progRe: [prog] rechercher espace insécable
FromSent OnAttachments
Agnès SimonetSep 17, 2004 12:21 am 
Bernard MarcellySep 17, 2004 11:23 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] rechercher espace insécableActions...
From:Bernard Marcelly (marc@club-internet.fr)
Date:Sep 17, 2004 11:23:26 am
List:org.openoffice.fr.prog

At 2004-09-17 09:21, Agnès Simonet wrote:

Bonjour,

Je cherche à détecter la présence d'un espace insécable dans un texte. Je sais le définir : EspaceInsecable = com.sun.star.text.ControlCharacter.HARD_SPACE Je sais créer un searchdescriptor : Chercheur = MonDocument.createSearchDescriptor

Chercheur.SearchString = EspaceInsecable ne fonctionne pas, ce qui me semble normal car EspaceInsecable n'est pas une chaîne, mais alors comment lui dire que je cherche l'espace insécable ?

Bonjour Agnès, Le developer'sGuide 7.3.1 donne les valeurs des caractères de contrôle insérés dans le texte : PARAGRAPH_BREAK Insert a paragraph break (UNICODE 0x000D). LINE_BREAK Inserts a line break inside of the paragraph (UNICODE 0x000A). HARD_HYPHEN A character that appears like a dash, but prevents hyphenation at its position (UNICODE 0x2011). SOFT_HYPHEN Marks a preferred position for hyphenation (UNICODE 0x00AD). HARD_SPACE A character that appears like a space, but prevents hyphenation at this point (UNICODE 0x00A0). APPEND_PARAGRAPH A new paragraph is appended (no UNICODE for this function).

Je n'ai pas vérifié, mais tu pourrais essayer de retrouver ces caractères.

Tiens nous au courant Bernard