bugGNU Octave - Bugs: bug #40750, gl2ps output for svg format does...

 
 

bug #40750: gl2ps output for svg format does not correctly map special characters

Submitted by:  Muhali <muhali>
Submitted on:  Fri 29 Nov 2013 03:20:19 PM UTC  
 
Category: Plotting with OpenGLSeverity: 2 - Minor
Priority: 1 - LaterItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Sat 21 Oct 2017 11:57:23 AM UTC, comment #9:

This bug has been fixed with this cset:

http://hg.savannah.gnu.org/hgweb/octave/rev/1b7e49a72c62

Octave now writes svg text elements itself and takes care of special characters. Closing report as fixed.

Pantxo Diribarne <pantxo>
Project Member
Fri 25 Nov 2016 10:24:41 PM UTC, comment #8:

This issue is still present in Octave 4.2.0 (fltk and qt plotting).

Code to solve this isse has been posted in comment #7.

Hartmut <hardy>
Mon 30 Jun 2014 04:01:16 PM UTC, comment #7:

Although they may want to introduce complex filtering, and for all stream types like postscript, pdf, svg, that is not what we are proposing. We just want a stream filter for the case of svg output and the 5 replacement strings mentioned.

Maybe we should just do it ourselves by searching/replacing in Octave on the svg file generated by gl2ps. Attached is an m-file that does this and could be incorporated into the print function.

(file #31645)

Rik <rik5>
Project Administrator
Mon 30 Jun 2014 10:55:42 AM UTC, comment #6:

The response for GL2PS development is below.

Ben Abbott <bpabbott>
Project Member
Tue 13 May 2014 12:41:53 AM UTC, comment #5:

I submitted a bug report for gl2ps

https://geuz.org/trac/gl2ps/ticket/10

Ben Abbott <bpabbott>
Project Member
Sun 11 May 2014 12:25:59 AM UTC, comment #4:

I think the TeX stuff is something that Octave probably has to translate. We already do something similar for the OpenGL renderer where we take the text, such as '\beta', and translate it to a Unicode point.

So, I would definitely file a bug with the 5 replacements that you identified.

Rik <rik5>
Project Administrator
Sat 10 May 2014 12:47:16 AM UTC, comment #3:

Given SVG is XML based, should this bug report be expanded to include all the TeX stuff?

Ben Abbott <bpabbott>
Project Member
Sat 10 May 2014 12:25:36 AM UTC, comment #2:

I notice that this bug hasn't been reported up stream. The bug tracker for gl2ps is at the link below.

https://geuz.org/trac/gl2ps/report/6

What characters are involved? More than the list below?

Ben

Ben Abbott <bpabbott>
Project Member
Mon 06 Jan 2014 05:01:23 PM UTC, comment #1:

Octave uses the gl2ps package internally to generate svg format. This seems to be a bug in gl2ps which should be filed upstream with that package.

In the near term you could write a Perl script to search and replace malformed special characters with correct svg output.

Rik <rik5>
Project Administrator
Fri 29 Nov 2013 03:20:19 PM UTC, original submission:

Doing

does not produce valid svg as the "<" is not converted to "&lt;".

Muhali <muhali>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #31645:  svg_rep.m added by rik5 (915B - d2l/unknowntype)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by hardy (Posted a comment)
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by muhali (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 21 Oct 2017 11:57:23 AM UTCpantxoStatusPostponed=>Fixed
      Open/ClosedOpen=>Closed
    Mon 22 Feb 2016 06:58:06 PM UTCmtmillerStatusInvalid=>Postponed
    Mon 30 Jun 2014 04:01:16 PM UTCrik5Attached File-=>Added svg_rep.m, #31645
    Mon 28 Apr 2014 02:54:33 AM UTCrik5Priority3 - Low=>1 - Later
      StatusConfirmed=>Invalid
    Mon 06 Jan 2014 05:04:39 PM UTCrik5Summaryprinting HTML Entities for svg=>gl2ps output for svg format does not correctly map special characters
    Mon 06 Jan 2014 05:01:23 PM UTCrik5Severity3 - Normal=>2 - Minor
      Priority5 - Normal=>3 - Low
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1