[texworks] Quotemarks chr(34)

Alain Delmotte esperanto at swing.be
Fri Sep 18 11:27:34 CEST 2009


Jonathan Kew a écrit :
> On 18 Sep 2009, at 08:46, Alain Delmotte wrote:
>
>> Hi Paul,
>>
>> Paul A Norman a écrit :
>>> Hi All,
>>> Note: TexWorks is so stable, and useful now, that I'm using it for 
>>> major projects.
>>> Is there anything planned for correcting quotemarks chr(34) from 
>>> imporrted/pasted text please, or should I look at a script for that?
>>> Or have I missed it in the manual :-) ?
>> Do you mean changing "text" to “text” or \lq\lq{}texte\rq\rq{}or 
>> ``text''?
>> If yes, you could go to "Format / Smart quotes" and you select one of 
>> the systems.
>> Then moving the cursor over the text, whenever it will pass over a ", 
>> this will be replaced by the corresponding opening or closing 
>> symbol/code.
>
>
> I think you'll find that the "smart quotes" function only applies to 
> text *as it is typed*; it won't modify existing text, or fix up blocks 
> of text that you're pasting into the document.
No it works with text created, for example, in jEdit with ", copied and 
pasted to TeXworks and then "passing the cursor over the text" with 
Smart quotes enabled. (tested)
>
> This would certainly be do-able with a script, once we have scripting 
> support as standard (or using the experimental Lua scripting version). 
> It might also be reasonable to add a built-in "Smarten Quotes" command 
> that would apply the current "smart quotes" rules to a selected range 
> of text. That should be easy to implement after we branch the stable 
> version for TeX Live; feel free to file an enhancement request in the 
> issue tracker, to improve the odds that I'll remember it. :)
Of course a Lua script could do this.

Alain

>
> JK
>
>



More information about the texworks mailing list