bugGNU Octave - Bugs: bug #43498, SVG print output encoding of TeX...

 
 

bug #43498: SVG print output encoding of TeX symbols not in UTF-8

Submitter:  CH <atcl>
Submitted:  Wed 29 Oct 2014 05:15:09 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 27 Apr 2018 09:14:38 PM UTC, comment #7: 

Closing as a duplicate of bug #41715.

Mike Miller <mtmiller>
Group Member
Fri 16 Oct 2015 07:45:29 AM UTC, comment #6: 

Sorry I misread this report, didn't see it was about gnuplot. Gnuplot still doesn't produce correct figures using tex symbols and svg.

Pantxo Diribarne <pantxo>
Group Member
Thu 15 Oct 2015 08:12:46 PM UTC, comment #5: 

I pushed a patch that fixes this issue:

http://hg.savannah.gnu.org/hgweb/octave/rev/4e47e10d5279

Closing report.

Pantxo Diribarne <pantxo>
Group Member
Mon 03 Nov 2014 01:22:02 PM UTC, comment #4: 

This seems close to bug #41715, marking as a duplicate report.

Mike Miller <mtmiller>
Group Member
Mon 03 Nov 2014 01:19:22 PM UTC, comment #3: 

Confirmed with your example. Agreed that this seems to occur when using TeX markup. If the real UTF-8 character set is used instead


legend ('∞');


the resulting file looks correct to me, using either gnuplot or fltk.

Mike Miller <mtmiller>
Group Member
Mon 03 Nov 2014 09:33:14 AM UTC, comment #2: 

Here is some sample code


 % put into somefile.m
 figure();
 x = 0.01:0.01:1;
 plot(x,1.0./x);
 legend('\infty'); % TeX inside the figure seems to be the culprit
 print('-dsvg',[mfilename(),'.svg']);


even though it says encoding="utf-8" in the xml meta tag, the symbol seems to be encoded wrongly as i cannot open the file with a viewer. The targeted infinity symbol here is not represented by the associated entity but something like: ¥ .

CH <atcl>
Sun 02 Nov 2014 05:11:33 PM UTC, comment #1: 

Thanks for your bug report. Can you provide an example script or a few lines of Octave commands to reproduce what you are seeing? Can you also attach the SVG file that is produced on your system?

Mike Miller <mtmiller>
Group Member
Wed 29 Oct 2014 05:15:09 PM UTC, original submission:  

I found an text encoding issue with svg printing:


print('-dsvg','name.svg')


prints an svg file which uses iso-8859-44 encoding instead of utf-8. I am (on Ubuntu 14.10, GNU Octave 3.8-.1) using the gnuplot backend. My default (system) encoding is utf8.

CH <atcl>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by atcl (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-27 mtmiller StatusConfirmed Duplicate
        Open/ClosedOpen Closed
    2015-10-16 pantxo StatusFixed Confirmed
        Open/ClosedClosed Open
    2015-10-15 pantxo StatusDuplicate Fixed
        Open/ClosedOpen Closed
    2014-11-03 mtmiller Dependencies- Depends on bugs #41715
    2014-11-03 mtmiller StatusConfirmed Duplicate
    2014-11-03 mtmiller StatusNeed Info Confirmed
        SummarySVG print output encoding not in UTF-8 SVG print output encoding of TeX symbols not in UTF-8
    2014-11-02 mtmiller StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code