Adri Genis wrote:
I don't know if this is the correct forum to ask a Scintilla-related question.
>
I have recently imported code/text from a PDF-file. I would like to change \x093 to a normal quote. I have looked at stripTrailingSpaces, but I don't seem to get the hang of it.

Uh? What relation between "Left Double Quotation Mark" and stripTrailingSpaces?

Am I correct to use \093 for “ as regex ?

For me, \x093 and \093 are different things, but since 093 isn't a correct octal number, I suppose this is just a typo.

In Scintilla, the primitive RegExp engine doesn't handle numerical escape chars, just \a, \b, \f, \n, \r, \t, \v although with the current implementation/use, it will never see \n and \r since only whole lines are given to this engine.

Can anybody give me pointers on how to replace characters globally with Scintella/Lua ?

Uh again? Scintilla isn't related with Lua except by its Lua lexer.
Lua is embeded in SciTE, not in Scintilla.

I suppose you know how to do a replace in SciTE: Ctrl+H, type the wanted char (Alt+0147) or paste it, then type in the next field the char replacing the previous one.

But since you are asking that on the Scintilla list, I suppose you have your own program using it. Scintilla doesn't have a routine to replace strings. This has to be implemented in the Scintilla client. You can take a look at the way SciTE does it. And, if you check the "Transform \xx expressions" option, you can search and replace \x93, as they are converted by SciTE before submitting the request to Scintilla.

HTH.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to