bugGNU TeXmacs - Bugs: bug #59454, Blackboard bold fonts lead to...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #59454: Blackboard bold fonts lead to garbled texts in bookmarks

Submitter:  Aeh9quu9 <ohnie0ai>
Submitted:  Thu 12 Nov 2020 08:32:03 PM UTC
   
 
Category:  Conversion Priority:  5 - Normal
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  mgubi
Originator Name:  Open/Closed:  Closed
Release:  None Release:  1.99.20
Fixed Release:  None Fixed Release: 
Keywords: 

Sat 29 May 2021 07:10:20 PM UTC, comment #4: 

I've committed the fix in rev 13523.

Massimiliano Gubinelli <mgubi>
Group administrator
Wed 26 May 2021 02:23:29 PM UTC, comment #3: 

It seems indeed to be a bug on our side (also in 1.99.20). PDF text strings outside the document require UTF16 big endian encoding, however the function 'utf8_to_pdf_hex_string' only works correctly for unicode points in the basic plane (<0xFFFF).I prepared a patch which works for me (see attached file). Let me know if this is ok for you too.



(file #51483)

Massimiliano Gubinelli <mgubi>
Group administrator
Tue 25 May 2021 06:02:43 PM UTC, comment #2: 

This is a bug in TeXmacs pdf export:

/Title <FEFF003100201D538>

This is not a valid UTF-16BE. The problem is about 0x1D538, which should be converted into two words: D835 DD38

Aeh9quu9 <ohnie0ai>
Wed 03 Mar 2021 01:55:57 PM UTC, comment #1: 

This is a bug of your Pdf viewer.  Many Pdf viewers do not support the entire Unicode range.

In revision 13369, I also added a 'toc-override' tag to be put just in front of your section title and which allows you to provide an alternative title for the Pdf export.  You have to manually add the section number though (you may use the 'section-nr', 'subsection-nr', etc. variables inside the 'toc-override' tag though).

Joris van der Hoeven <vdhoeven>
Group administrator
Thu 12 Nov 2020 08:32:03 PM UTC, original submission:  

When the title of section contains certain blackboard bold fonts, the bookmark of the exported PDF will be garbled. See the attached sample .tm and .pdf files.

Aeh9quu9 <ohnie0ai>

 

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

Attached Files
file #51483:  pdf-outline.patch added by mgubi (2KiB - application/octet-stream)
file #50262:  test.tm added by ohnie0ai (2KiB - text/x-texmacs.doc)
file #50263:  test.pdf added by ohnie0ai (16KiB - application/pdf)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mgubi (Updated the item)
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by ohnie0ai (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.

     

    Follow 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-29 mgubi StatusIn Progress Fixed
        Assigned tovdhoeven mgubi
        Open/ClosedOpen Closed
    2021-05-26 mgubi Attached File- Added pdf-outline.patch, #51483
        StatusFixed In Progress
        Open/ClosedClosed Open
        Release1.99.14 1.99.20
    2021-03-03 vdhoeven StatusNone Fixed
        Assigned toNone vdhoeven
        Open/ClosedOpen Closed
    2020-11-12 ohnie0ai Attached File- Added test.pdf, #50263
    2020-11-12 ohnie0ai Attached File- Added test.tm, #50262

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code