Re: about escape sequence in RC file



"Susan Kong" <susan@xxxxxxxxxxxxxx> wrote in message
news:e3huvLnuFHA.904@xxxxxxxxxxxxxxxxxxxxxxx
> Hi there,
>
> As we know \n, \r can be used as escape sequence in string table of RC
> file,
> but when I use \" or \', they automatically are changed to \\" and \\' and
> as a result displaying of them definitely are not correct.Who knows why
> this
> happens?
>
> Moreover, anybody knows the escape sequence of "square" and "cubic",
> which
> represent area and volumn unit respectively.
>
> Appreiciate any response.

For single and double quotes you don't need the slash at all. Since they're
string resources, embedded quotes don't need to be escaped (the escapes are
implied because the open/close quotes are also implied).

The square and cubic symbols can be inserted directly into any string
resource:

The square symbol is ALT+0178
The cubic symbol is ALT+0179

NOTE: Ensure the document's typeface actually supports these characters and
prevent the user from changing the typeface to one that does not. If you
must employ user-defined fonts, consider using an otherwise unused token in
place of the escaped character. When you encounter the token, determine its
coordinates within the string, replace it with a space, then overlay the
appropriate character using an appropriate typeface at the established
coordinates. You could also use a standard numeric character with a smaller
font size if you prefer -- particularly useful when dealing with powers
other than 2 or 3. A better alternative would be to use a fixed-font that
actively supports the required mathematical representations you need.


.



Relevant Pages

  • RfD: Escaped Strings version 4
    ... the S" string can only contain printable characters, ... the S" string cannot contain the '"' character, ... as an escape character for the entry of characters that cannot be ... \b BS (backspace, ASCII 8) ...
    (comp.lang.forth)
  • RfD: Escaped Strings version 4
    ... the S" string can only contain printable characters, ... the S" string cannot contain the '"' character, ... as an escape character for the entry of characters that cannot be ... \b BS (backspace, ASCII 8) ...
    (comp.lang.forth)
  • Re: problems with opening files due to files path
    ... GUI or it is a console app. ... of what an escape character and escape sequence is. ... character) inside a string specially, it makes the character after the ...
    (comp.lang.python)
  • Re: html_entity_decode + regex = profit?
    ... I've got an incoming string with a caret that's been escaped to ... The caret isn't a legal character where it's going (a text ... You can also use preg_quoteto escape metacharacters in a string. ...
    (comp.lang.php)
  • [TOMOYO #15 3/8] Common functions for TOMOYO Linux.
    ... This file contains common functions (e.g. policy I/O, pattern matching). ... Since TOMOYO Linux is a name based access control, ... TOMOYO Linux's string manipulation functions make reviewers feel crazy, ... the Linux kernel accepts all characters but NUL character ...
    (Linux-Kernel)