TeXworks / texworks

Main codebase for TeXworks, a simple interface for working with TeX documents
https://tug.org/texworks/
GNU General Public License v2.0
700 stars 130 forks source link

Balance delimiters F9 #409

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Inside delimiters, say a footnote, write some text that has an apostrophe in 
it. Like this:

\footnote{The main text of the collation is cited 
from Trikamji’s edition.}

2. Place the cursor on the word "edition" and press F9. 
3. The delimited area is not recognised.

I expect the scope of the delimited footnote to be highlighted. 
The F9 check is reading the apostrophe as an unbalanced close-group
and is therefore not giving the correct reading for the overall group.

Using Version 0.3 r.671 (launchpad), Ubuntu GNU/Linux Lucid, up to date.

Smart Quotes Mode = Unicode characters.

Thanks,
Dominik Wujastyk

Original issue reported on code.google.com by wujas...@gmail.com on 4 Sep 2010 at 8:08

GoogleCodeExporter commented 9 years ago
I can reproduce this behaviour (using crtl + b as shortcut instead of F9).

Using Version 0.5 r.1023 (personal)

Original comment by henrikmidtiby@gmail.com on 28 Oct 2012 at 9:50

GoogleCodeExporter commented 9 years ago
One additional comment.

The issue were reproduced by copy paste of the above code. 
When I later tried to insert the example by typing, I was not able to insert 
the apostrophe char in the texworks code editor.

Original comment by henrikmidtiby@gmail.com on 28 Oct 2012 at 11:06