The following environment variables specify a Unicode character used to
replace an ASCII character in the @UQUOTES
function, or in several commands when /Q
is used. The value of
the variable may be a single character; a decimal value 32 through 65533; or a
hexadecimal value 0x20 through 0xFFFD.
OPENQUOTE : | replaces the ASCII double-quote ( " ) at the start of a quotation; the default value is 0x201C ( “ ). |
CLOSEQUOTE : | replaces the ASCII double-quote ( " ) at the end of a quotation; the default is 0x201D ( ” ). |
OPENSQUOTE : | replaces the ASCII apostrophe ( ' ) at the start of a quotation; the default is 0x2018 ( ‘ ). |
CLOSESQUOTE : | replaces the ASCII apostrophe ( ' ) at the end of a quotation; the default is 0x2019 ( ’ ). |
APOSTROPHE : | replaces the ASCII apostrophe ( ' ) within a word; the default is 0x2019 ( ’ ). |
'OKINA : | replaces the ASCII apostrophe ( ' ) between two vowels; the default is 0x2018 ( ‘ ). |
PRIME : | replaces the ASCII apostrophe ( ' ) after a number; the default is 0x27 ( ' ). |
DOUBLEPRIME : | replaces the ASCII double-quote ( " ) after a number; the default is 0x22 ( " ). |
EMDASH : | replaces pairs of ASCII hyphens ( - ); the default is 0x2014 |
Note that the variable name 'OKINA
begins, ironically enough, with
an apostrophe. To disable ‘okinas, SET 'OKINA=0X2019
(or the same value as the apostrophe).
These environment variables control the interpretation of some old-fashioned ASCII text conventions:
UQUOTES_DOUBLES : | set to 0 to prevent replacing doubled apostrophes with quotes |
UQUOTES_GRAVES : | set to 0 to prevent replacing grave accents with open quotes |
For example:
rem Use guillemets for quotations:
set openquote=0xab
set closequote=0xbb
echo %@uquotes["Sacré bleu!" he exclaimed.]