Loading ...
Sorry, an error occurred while loading the content.

Re: [ploticus] differences between SVG and PNG in ploticus [4 Attachments]

Expand Messages
  • Kay Wrobel
    Hi Amir, Just to clarify, on the PNG command, you re outputting to the SVG file name. That is a typo. Correct? Kay Wrobel MIS Associate *Hawk Electronics,
    Message 1 of 5 , Mar 5, 2012
    • 0 Attachment
      Hi Amir,

      Just to clarify, on the PNG command, you're outputting to the SVG file name. That is a typo. Correct?

      Kay Wrobel

      MIS Associate
      Hawk Electronics, Inc.
      800-THE-HAWK
      800-843-4295
      kwrobel@...

      On 03/04/2012 09:32 AM, Amir E. Aharoni wrote:  

      Hello,

      I am maintaining Erik Zachte's EasyTimeline tool, which uses Ploticus
      for rendering and is used by Wikipedia for historical timelines.

      I was trying to make it work better with non-Latin scripts by using
      the SVG file that Ploticus creates. It works well for some files, but
      some other SVG files come out garbled, even though the PNG file that
      was created with the same input was good.

      In the attachments you'll find:
      * the input ploticus script
      * the PNG file that I get
      * the SVG file that I get
      * the font that I use to render it (TaameyFrankCLM)

      The commands to run Ploticus were:

      '/usr/bin/ploticus'  -svg -o 'ploticus-timeline-bad.svg'
      'ploticus-timeline-input.txt' -tightcrop -font
      'TaameyFrankCLM-Medium.ttf' -xml_encoding UTF-8

      '/usr/bin/ploticus'  -png -o 'ploticus-timeline-good.svg'
      'ploticus-timeline-input.txt' -tightcrop -font
      'TaameyFrankCLM-Medium.ttf'

      Does anybody have an idea of what I can do to make it work correctly?

      Thank you very much,

      --
      Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי
      http://aharoni.wordpress.com
      ‪“We're living in pieces,
      I want to live in peace.” – T. Moore‬

      The information in this e-mail is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, you may not print, save or otherwise store the e-mail or any of the contents thereof in electronic or physical form, nor copy, use or disseminate the information contained in the email.  If you are not an intended recipient,  please notify the sender of this email immediately.
      
      This electronic message transmission contains information from the sender that may be proprietary, confidential and/or privileged. If you are not the intended recipient, be aware that any disclosure, copying or distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify the sender immediately by replying to the address listed in the "From:" field. 
      
    • Amir E. Aharoni
      Hi Kay, Thank you very much for the prompt reply! Yes, I of course meant to write the SVG command with .svg and the PNG command with .png. Now the complicated
      Message 2 of 5 , Mar 5, 2012
      • 0 Attachment
        Hi Kay,

        Thank you very much for the prompt reply!

        Yes, I of course meant to write the SVG command with .svg and the PNG command with .png.

        Now the complicated part: I made sure that the font is installed on system and tried to specify the font by its name - "Taamey Frank CLM". The image came out with the correct fonts, but the boxes at the bottom were still broken. I also tried explicitly specifying other fonts - "Liberation Sans", "DejaVu Sans" etc. - and the problem was the same. There are supposed to be two boxes, but i see more boxes on the right.

        --
        Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי
        http://aharoni.wordpress.com
        ‪“We're living in pieces,
        I want to live in peace.” – T. Moore‬


        2012/3/5 Kay Wrobel <kwrobel@...>
        Amir,

        The other thing to note about the font is that SVGs obtain the font differently. In fact, I believe that the font name is simply part of the XML, but the font has to be installed on the client. Check out http://ploticus.sourceforge.net/doc/fonts.html in the SVG section:
        If you're using SVG , font availablility and naming depends on the environment in effect where the SVG file is being viewed, ie. if you're viewing on MSIE on a win32 system see the list of fonts available in MS Word.
        So if the end user doesn't have that font, you'll be out of luck. I had the same issue recently. In the end I ended up using a font that was generic and widely used (Times).

        In addition, for PNG, you have to use the TTF file name, whereas in SVG you have to use the actual font name (without .ttf).


        Kay Wrobel

        MIS Associate
        Hawk Electronics, Inc.
        800-THE-HAWK
        800-843-4295
        kwrobel@...

        On 03/04/2012 09:32 AM, Amir E. Aharoni wrote:
         
        [Attachment(s) from Amir E. Aharoni included below]

        Hello,

        I am maintaining Erik Zachte's EasyTimeline tool, which uses Ploticus
        for rendering and is used by Wikipedia for historical timelines.

        I was trying to make it work better with non-Latin scripts by using
        the SVG file that Ploticus creates. It works well for some files, but
        some other SVG files come out garbled, even though the PNG file that
        was created with the same input was good.

        In the attachments you'll find:
        * the input ploticus script
        * the PNG file that I get
        * the SVG file that I get
        * the font that I use to render it (TaameyFrankCLM)

        The commands to run Ploticus were:

        '/usr/bin/ploticus'  -svg -o 'ploticus-timeline-bad.svg'
        'ploticus-timeline-input.txt' -tightcrop -font
        'TaameyFrankCLM-Medium.ttf' -xml_encoding UTF-8

        '/usr/bin/ploticus'  -png -o 'ploticus-timeline-good.svg'
        'ploticus-timeline-input.txt' -tightcrop -font
        'TaameyFrankCLM-Medium.ttf'

        Does anybody have an idea of what I can do to make it work correctly?

        Thank you very much,

        --
        Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי
        http://aharoni.wordpress.com
        ‪“We're living in pieces,
        I want to live in peace.” – T. Moore‬

        The information in this e-mail is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, you may not print, save or otherwise store the e-mail or any of the contents thereof in electronic or physical form, nor copy, use or disseminate the information contained in the email.  If you are not an intended recipient,  please notify the sender of this email immediately.
        
        This electronic message transmission contains information from the sender that may be proprietary, confidential and/or privileged. If you are not the intended recipient, be aware that any disclosure, copying or distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify the sender immediately by replying to the address listed in the "From:" field. 
        
      • Kay Wrobel
        ... That could be your problem. I noticed on the SVG output as you said that the boxes are off. On the PNG versions, only two boxes show up. So looks like
        Message 3 of 5 , Mar 5, 2012
        • 0 Attachment
          I am getting a warning when I run either PNG or SVG versions of the command:
          $ ploticus ploticus-timeline-input.txt -o ploticus-timeline-input.png -png -font 'TaameyFrankCLM-Medium.ttf'
          pl proc line:  2959: warning: points must have either 4 or 2 values per line
          That could be your problem. I noticed on the SVG output as you said that the boxes are off. On the PNG versions, only two boxes show up. So looks like there's an issue in your script.

          Kay Wrobel

          MIS Associate
          Hawk Electronics, Inc.
          800-THE-HAWK
          800-843-4295
          kwrobel@...

          On 03/05/2012 11:20 AM, Amir E. Aharoni wrote:
          Hi Kay,

          Thank you very much for the prompt reply!

          Yes, I of course meant to write the SVG command with .svg and the PNG command with .png.

          Now the complicated part: I made sure that the font is installed on system and tried to specify the font by its name - "Taamey Frank CLM". The image came out with the correct fonts, but the boxes at the bottom were still broken. I also tried explicitly specifying other fonts - "Liberation Sans", "DejaVu Sans" etc. - and the problem was the same. There are supposed to be two boxes, but i see more boxes on the right.

          --
          Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי
          http://aharoni.wordpress.com
          ‪“We're living in pieces,
          I want to live in peace.” – T. Moore‬


          2012/3/5 Kay Wrobel <kwrobel@...>
          Amir,

          The other thing to note about the font is that SVGs obtain the font differently. In fact, I believe that the font name is simply part of the XML, but the font has to be installed on the client. Check out http://ploticus.sourceforge.net/doc/fonts.html in the SVG section:
          If you're using SVG , font availablility and naming depends on the environment in effect where the SVG file is being viewed, ie. if you're viewing on MSIE on a win32 system see the list of fonts available in MS Word.
          So if the end user doesn't have that font, you'll be out of luck. I had the same issue recently. In the end I ended up using a font that was generic and widely used (Times).

          In addition, for PNG, you have to use the TTF file name, whereas in SVG you have to use the actual font name (without .ttf).


          Kay Wrobel

          MIS Associate
          Hawk Electronics, Inc.
          800-THE-HAWK
          800-843-4295
          kwrobel@...

          On 03/04/2012 09:32 AM, Amir E. Aharoni wrote:
           
          [Attachment(s) from Amir E. Aharoni included below]

          Hello,

          I am maintaining Erik Zachte's EasyTimeline tool, which uses Ploticus
          for rendering and is used by Wikipedia for historical timelines.

          I was trying to make it work better with non-Latin scripts by using
          the SVG file that Ploticus creates. It works well for some files, but
          some other SVG files come out garbled, even though the PNG file that
          was created with the same input was good.

          In the attachments you'll find:
          * the input ploticus script
          * the PNG file that I get
          * the SVG file that I get
          * the font that I use to render it (TaameyFrankCLM)

          The commands to run Ploticus were:

          '/usr/bin/ploticus'  -svg -o 'ploticus-timeline-bad.svg'
          'ploticus-timeline-input.txt' -tightcrop -font
          'TaameyFrankCLM-Medium.ttf' -xml_encoding UTF-8

          '/usr/bin/ploticus'  -png -o 'ploticus-timeline-good.svg'
          'ploticus-timeline-input.txt' -tightcrop -font
          'TaameyFrankCLM-Medium.ttf'

          Does anybody have an idea of what I can do to make it work correctly?

          Thank you very much,

          --
          Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי
          http://aharoni.wordpress.com
          ‪“We're living in pieces,
          I want to live in peace.” – T. Moore‬

          The information in this e-mail is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, you may not print, save or otherwise store the e-mail or any of the contents thereof in electronic or physical form, nor copy, use or disseminate the information contained in the email.  If you are not an intended recipient,  please notify the sender of this email immediately.
          
          This electronic message transmission contains information from the sender that may be proprietary, confidential and/or privileged. If you are not the intended recipient, be aware that any disclosure, copying or distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify the sender immediately by replying to the address listed in the "From:" field. 
          
          The information in this e-mail is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, you may not print, save or otherwise store the e-mail or any of the contents thereof in electronic or physical form, nor copy, use or disseminate the information contained in the email.  If you are not an intended recipient,  please notify the sender of this email immediately.
          
          This electronic message transmission contains information from the sender that may be proprietary, confidential and/or privileged. If you are not the intended recipient, be aware that any disclosure, copying or distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify the sender immediately by replying to the address listed in the "From:" field. 
          
        Your message has been successfully submitted and would be delivered to recipients shortly.