- Jul
- 532
- 10
I’m moving towards changing my quotes and apostrophes to smart quotes and smart apostrophes, which aren’t drawn correctly in web browsers but are drawn very correctly in the console and easier for me to use because I can tell which quotes are which more easily.
I noticed .... they don’t work inside for loops.
Kinda like how iff-then often doesn’t work inside for loops.
Basically, in these 2 snippet examples, the quotes display correctly in the 1ˢᵗ, but not in the 2ⁿᵈ. It baffles me.
I’m sure there’s a technical reason why. I’m just sad that i have to go back and change single character into environment variables, or change for loops into subroutines, if i want to use them.
Does not display smart quotes/apostrophes correctly:
Does display smart quotes/apostrophes correctly:
It’s hard for me to fathom end-users who want to use the same characters that “phone folk” use being able to remember where “phone” characters are allowed and where they aren’t. I can barely remember and keep running into surprises. It would be nice if the character was treated the same in all TCC situations.
I noticed .... they don’t work inside for loops.
Kinda like how iff-then often doesn’t work inside for loops.
Basically, in these 2 snippet examples, the quotes display correctly in the 1ˢᵗ, but not in the 2ⁿᵈ. It baffles me.
I’m sure there’s a technical reason why. I’m just sad that i have to go back and change single character into environment variables, or change for loops into subroutines, if i want to use them.
Does not display smart quotes/apostrophes correctly:
Code:
for %%tmpLetterForMeaning in (%1$) do (
echo tmpLetterForMeaning = %tmpLetterForMeaning%
if "1" ne "%@RegEx[:,%tmpLetterForMeaning%]" (
call fatal_error "%left_quote%%tmpLetterForMeaning%%right_quote% makes no sense. This parameter should have been in the forumat of %left_quote%{%italics_on%letter%italics_off%}:{%italics_on%meaning%italics_off%}%right_quote%, where %left_quote%letter%right_quote% is a letter found in our additional allowable keys %faint_on%(currently set to %left_quote%additional_keys%%right_quote%)%faint_off%"
)
set tmp_meaning_letter=%@LEFT[1,%tmpLetterForMeaning%]
set tmp_meaning_expand=%@RIGHT[%@EVAL[%@LEN[%tmpLetterForMeaning]-2],%tmpLetterForMeaning%]
echo ‘%tmp_meaning_letter%’ means ‘tmp_meaning_expand’
)
Does display smart quotes/apostrophes correctly:
Code:
for %%tmpLetterForMeaning in (%1$) do ( gosub processLetterMeaning "%tmpLetterForMeaning%")
goto :EOF
:processLetterMeaning
echo tmpLetterForMeaning = %tmpLetterForMeaning%
if "1" ne "%@RegEx[:,%tmpLetterForMeaning%]" (
call fatal_error "%left_quote%%tmpLetterForMeaning%%right_quote% makes no sense. This parameter should have been in the forumat of %left_quote%{%italics_on%letter%italics_off%}:{%italics_on%meaning%italics_off%}%right_quote%, where %left_quote%letter%right_quote% is a letter found in our additional allowable keys %faint_on%(currently set to %left_quote%additional_keys%%right_quote%)%faint_off%"
)
set tmp_meaning_letter=%@LEFT[1,%tmpLetterForMeaning%]
set tmp_meaning_expand=%@RIGHT[%@EVAL[%@LEN[%tmpLetterForMeaning]-2],%tmpLetterForMeaning%]
echo ‘%tmp_meaning_letter%’ means ‘tmp_meaning_expand’
return
It’s hard for me to fathom end-users who want to use the same characters that “phone folk” use being able to remember where “phone” characters are allowed and where they aren’t. I can barely remember and keep running into surprises. It would be nice if the character was treated the same in all TCC situations.
Last edited: