[texworks] ver 567 Scripts - Cariag/Line returns now coming back as ??

Paul A Norman paul.a.norman at gmail.com
Tue Mar 16 11:55:40 CET 2010

Thanks Stafan,

So I'm best to convert to QTScript, I don;t have enough experience in
LUA for regular expressions but I can do it in JS or QTScript no

So it looks from Jonathan's post there that I would need to so something like

txt =  txt.replace(/\u2029/g, '\n');

When this is "fixed" would I need to remove that line?

I have noticed that other characters are similarly treated, is there a
table somewhere I could look at please to know how TeXWorks editor
handles things pasted from other word processors that look ok in
TeXWorks but  perhaps can come back from script as rectangles or

Many thanks again,

On 16 March 2010 20:04, Stefan Löffler <st.loeffler at gmail.com> wrote:
> Am 2010-03-15 23:55, schrieb Paul A Norman:
>> Dear Jonathan or Stefan,
>> I've updated my scripts to use the new api and that is working well.
>> However (I'm still using LUA) when I pass a series of selected
>> (highlighted in the editor) blocks of text to a script, the carriage
>> returns/ line breaks between the blocks of text  are now returned as
>> ?? with no carriage return/ line breaks and all the text runs together
>> of course.
> This has been reported before by Kap4lin and a workaround was given.
> This never made it to the issue list on GC, though, so it was overlooked.
> I've now added the issue
> (http://code.google.com/p/texworks/issues/detail?id=301) and posted a
> patch there. If you need this going right away, take a look at the
> answers to post http://tug.org/pipermail/texworks/2010q1/002120.html for
> the workaround.
> Stefan

More information about the texworks mailing list