Junior Member
Join Date: Apr 2007
Posts: 23
|
I've just started work on a home-brew Savage Worlds Interface Zero data file, and I ran into what may or may not be a bug. When I edit quoted text, quotes are getting converted into smart quotes. Since this is the first HL work I've done in a while, I'm thinking it could be an OS issue (I recently
upgraded to Yosemite) or an HL issue (also recently upgraded) or just user error somehow. Example below. (Working version) foreach pick in hero where "thingid.skIZKnow" if (compare(lowercase(eachpick.field[domDomain].text),"programming") = 0) then validif (eachpick.field[trtFinal].value >= 4) endif nexteach (modify the word 'programming' and crack, broken) foreach pick in hero where "thingid.skIZKnow" if (compare(lowercase(eachpick.field[domDomain].text), “program”) = 0) then validif (eachpick.field[trtFinal].value >= 4) endif nexteach System: Mac Tower OS X Yosemite 10.10.1 Hero Lab v6.1b |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Are you working in the editor, or in a different text editing program?
Are there any error messages when you compile? |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
You need quotes like " not like “. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#3 |
Junior Member
Join Date: Apr 2007
Posts: 23
|
This is happening inside the HL editor. I'm curious if HL might have changed what editor it uses on the Mac recently? Or maybe Yosemite changed the behavior of the editor code that's being used by HL? I don't recall smart quotes being a problem in the past.
So, yes, this is HL's editor. Yes, regular quotes are being turned into smart quotes (same as Word and a lot of other programs do). Maybe there's a way to turn this off somewhere? When I copy/paste in regular quotes, it compiles fine. Thanks! |
#4 |
Member
Join Date: Sep 2014
Location: Toronto Ontario
Posts: 68
|
Looks like an OSX thing (since at least Maverick)
From Apple support: http://support.apple.com/kb/PH18439 Use smart quotes and dashes Automatically convert straight quotation marks to typographical (“curly”) ones, and double hyphens to em dashes (—). Set an app to always use smart quotes and dashes: In a document, choose Edit > Substitutions, then choose Smart Quotes and Smart Dashes (checkmarks show they’re on). To turn them off, choose the commands again. Apply smart quotes and dashes to existing text: To use them in part of a document, select the text, choose Edit > Substitutions > Show Substitutions, make sure the Smart Dashes and Smart Quotes checkboxes are selected, then click Replace in Selection. To use them in the entire document, click Replace All. Choose a style for smart quotes: In a document, choose Edit > Substitutions > Show Substitutions, make sure the Smart Quotes checkbox is selected, then choose styles from the pop-up menus. You can set a default style for smart quotes for all apps that use them in the Text pane of Keyboard preferences. |
#5 |
Junior Member
Join Date: Apr 2007
Posts: 23
|
Awesome! Thanks! That seems to have done the trick!
|
#6 |
|
|