Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Quotation marks in string resources

    SDK Help
    0
    4
    497
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 20/04/2017 at 02:36, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R18 demo 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :

      ---------
      Hello,
      can somebody please tell me whether it is possible and how to put quotation marks into a string in .str resource file?

      I tried this:

      STRINGTABLE  
      {  
        ID_HELLO        "Hello \"world\" !";  
      }  
      

      and also this:

      STRINGTABLE  
      {  
        ID_HELLO        "Hello \u0022world\u0022 !";  
      }  
      

      but Cinema keeps showing Error on startup and then ignores the resource file. (I'm testing french translation of my plugin).

      Thank you.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 21/04/2017 at 04:54, xxxxxxxx wrote:

        Hello,

        indeed it seems that \u0022 is not accepted or that the resulting quotation mark is interpreted as the end of the string. So far it seems that only \u0027 for an apostrophe works. Maybe this can be used instead.

        best wishes,
        Sebastian

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 21/04/2017 at 06:52, xxxxxxxx wrote:

          Thank you for answer.
          Apostrophe works also just like single character ' so there is no need to use \u0027. I tried double apostrophes and they do look like quotation mark (at least in default font).

          I was looking for some escape sequence for quotation mark but if it is not possible then I will change the text.

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            On 21/04/2017 at 07:41, xxxxxxxx wrote:

            Originally posted by xxxxxxxx

            <ADDRESS>
            User Information:
            Cinema 4D Version:   R18 demo 
            Platform:   Windows  ; Mac  ; 
            Mac OSX  ; 
            Language(s) :

            ---------
            </ADDRESS> Hello,can somebody please tell me whether it is possible and how to put quotation marks into a string in .str resource file?I tried this:

            STRINGTABLE{    ID_HELLO        "Hello \"world\" !";}
            

            and also this:

            STRINGTABLE{    ID_HELLO        "Hello \u0022world\u0022 !";}
            

            but Cinema keeps showing Error on startup and then ignores the resource file. (I'm testing french translation of my plugin).Thank you.

            I haven't checked it, but as Cinema is using unicode, you could try to switch to preferred "typographic" quotation marks instead - see https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html

            Best regards,

            Wilfried

            1 Reply Last reply Reply Quote 0
            • First post
              Last post