[LH4725] Smart quotes incorrect after punctuation

sc
schoolmann
Posts: 22
Joined: Tue Jun 27, 2017 12:29 am
Platform: Windows

Wed Jul 29, 2020 3:54 pm Post

Smart quotes do not work properly when they are immediately after a punctuation mark, such as a dash or an open parens. They appear as right-hand (closing) quotation marks, instead of left-hand (opening) marks. It seems as though the code designating which mark to use is simply checking to see if the former character is a space or not. It should look for spaces, dashes, and open parens, brackets, or braces.
Scrivener Quote Examples.png
Scrivener Quote Examples.png (6.22 KiB) Viewed 519 times

zo
zornhau
Posts: 165
Joined: Wed Nov 17, 2010 2:17 pm
Platform: Windows
Contact:

Wed Oct 14, 2020 12:16 pm Post

schoolmann wrote:Smart quotes do not work properly when they are immediately after a punctuation mark, such as a dash or an open parens. They appear as right-hand (closing) quotation marks, instead of left-hand (opening) marks. It seems as though the code designating which mark to use is simply checking to see if the former character is a space or not. It should look for spaces, dashes, and open parens, brackets, or braces.
Scrivener Quote Examples.png


Still true!

User avatar
tiho_d
Posts: 1548
Joined: Tue Sep 13, 2011 1:14 pm
Platform: Linux + Windows

Wed Oct 14, 2020 12:42 pm Post

Thanks, I have added this to our bug tracking system and hope to have it fixed in the next update.

User avatar
LAP
Posts: 1033
Joined: Tue Sep 21, 2010 5:25 pm
Platform: Windows
Location: Sydney
Contact:

Thu Oct 15, 2020 3:57 am Post

In the latest build (RC11) it's mostly fixed; however, I just noticed it still breaks for em-dashes and ellipses.
upload.png
upload.png (11.58 KiB) Viewed 394 times

User avatar
Sparrowhawk
Posts: 125
Joined: Thu Dec 05, 2013 4:49 pm
Platform: Mac, Win + iOS

Thu Oct 15, 2020 4:17 pm Post

LAP wrote:In the latest build (RC11) it's mostly fixed; however, I just noticed it still breaks for em-dashes and ellipses.
upload.png


Not sure that is a bug. A lot of dialogue ends with those two forms of punctuation, I'd want the current function.
You will find more evidence of the ridiculousness of humanity in the bathroom mirror than any other place in the world.

TH
THuckabay
Posts: 16
Joined: Sun Mar 26, 2017 10:07 pm
Platform: Windows

Thu Oct 15, 2020 4:35 pm Post

It most certainly is a bug, and a rather serious one at that. It amazes me that after all this time, it has still not been fixed. I have authored dozens of highly-technical academic (scholarly) books, and this bug—failing to handle "smart" quotes properly following a variety of characters, not just ellipses or en or em dashes or minus signs—has been a complete bane and pain. Every form of preceding 'bracket" should be handled as well, not just "[", "{", "(" and the like, but also "<", etc.

User avatar
tiho_d
Posts: 1548
Joined: Tue Sep 13, 2011 1:14 pm
Platform: Linux + Windows

Thu Oct 15, 2020 8:32 pm Post

After looking at this feature further we decided to follow Ms Word opening smart quote only after the following cases: start of a line, after a space, (, [, {, -, EnDash, and EmDash. Ms Word does NOT use opening smart quote after Ellipsis and '<'. If we have missed a symbol which precedes an opening smart quote in MS Word, please let us know. If MS Word does not use opening smart quote after this symbol, we will not add it, Thanks.