• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Is this a bug?

PhilAdams

Member
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
 
Are you working in the editor, or in a different text editing program?

Are there any error messages when you compile?
 
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
If this text is "exact" then your issue is the quotes. They are not standard ASCII quotes. They look like what Word does with its non-standard ASCII quotes and HL can't deal with it.

You need quotes like " not like “.
 
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!
 
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.
 
Back
Top