jrincayc / ucblogo-code

Berkeley Logo interpreter
https://people.eecs.berkeley.edu/~bh/logo.html
GNU General Public License v3.0
190 stars 34 forks source link

On Mac, smart quotes are on by default and cause problems #162

Closed GrantMeStrength closed 1 year ago

GrantMeStrength commented 1 year ago

On a Mac, editing a word definition will open the editor and any " characters entered will be converted to smart quotes which break code. This option can be turned off system-wide, but a better approach would be to disable this in the editor.

dmalec commented 1 year ago

Agree on the better approach; this is also the root cause of issue #72. When I looked into that issue, my understanding was:

That said, I'm game to look into something on the 3.0.x line if I overlooked an option there.

In terms of moving to the wxWidgets 3.2.x release (where it should be addressed), I had been planning on tackling that last year when 3.2 released; but, life happened :). My initial foray indicated that Linux and MacOS were straightforward; but, Windows was a bit trickier and I remember hitting a wall there.

(not to say this isn't worth tackling, I just figure it helps to have context about why it is the way it is currently)

GrantMeStrength commented 1 year ago

"To disable smart quotation marks in wxWidgets, you can use the wxTextCtrl::SetAutoLayout method](https://docs.wxwidgets.org/3.0/classwx_button.html)" Not sure how accurate that is.

dmalec commented 1 year ago

I wasn't able to find that phrase on the linked page or on the page for wxTextCtrl (https://docs.wxwidgets.org/3.0/classwx_text_ctrl.html). By any chance did you mean to post a different link?

I have mostly gotten the wxWidgets 3.2.x migration sorted, so, we should at least be able to use the approach introduced in 3.1.1 shortly.