bugGNU TeXmacs - Bugs: bug #36086, nocomma, nospace, etc. not...


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

bug #36086: nocomma, nospace, etc. not recognized when not using truetype fonts

Submitted by:  Miguel de Benito <mdbenito>
Submitted on:  Wed Apr 4 15:01:54 2012  
Category: EditorPriority: 5 - Normal
Item Group: ErrorStatus: Works For Me
Privacy: PublicAssigned to: Joris van der Hoeven <vdhoeven>
Originator Name: Open/Closed: Closed
Release: None
Fixed Release: NoneFixed Release: 

Fri Nov 29 17:42:37 2013, comment #5:

I cannot reproduce the bug concerning invisible homoglyphs on my system (that is, , <nocomma>, <nospace>, etc.; notice that <notimes> does not exist, since we use instead). I both tried using the new style fonts and the usual fonts, and both for the default font and Stix. Of course, the small calligraphic symbols and many other symbols are not systematically treated yet, so improvements on this issue can be expected when we switch to the new font system. However, I do not consider this to be a bug, but rather a missing feature, which is in progress.

Joris van der Hoeven <vdhoeven>
Project AdministratorIn charge of this item.
Wed Aug 1 13:56:36 2012, comment #4:

The patch was reverted because was the code was apparently too slow, so we still need some solution...

Miguel de Benito <mdbenito>
Project Member
Mon May 28 22:07:00 2012, comment #3:

No comments but a problem still present lead me to apply the patch. There is still the issue of the big-, b- and c- entities.

Miguel de Benito <mdbenito>
Project Member
Thu Apr 5 15:51:11 2012, comment #2:

Very nice test! I think most of the non-rendered entities in the first lines are rendered if the font provides them. Just try selecting a truetype math font.

The problem I meant is about the special ones which have no counterpart in any font: nospace, notimes, nocomma, noplus and possibly others like varspace.

The big-, b- and c-* entities must also be handled like unicode_math_font_rep::search_font() does, by changing the font accordingly to something bigger, bold or caligraphic.

My first patch handles just the most obnoxious with a trivial check which I think should be included until the font system is changed. The rest can be hacked, but again, only after Joris comments on this.

Miguel de Benito <mdbenito>
Project Member
Thu Apr 5 11:59:23 2012, comment #1:

This also appears in X11 version, and affect many other chars. Many entities defined in TeXmacs/langs/encoding/tmuniversaltounicode.scm are not well rendered. See joint file.

(file #25586)

Francois Poulain <fpoulain>
Project Member
Wed Apr 4 15:01:54 2012, original submission:

The check for these texmacs symbols (<nocomma>, <nospace>, etc.) is done inside unicode_math_font_rep::search_font_sub(), which is never called for non unicode fonts, like the default Roman. This results in ugly "<nocomma>"'s all over the document.

Since the font system is going to be redesigned, a hackish solution (which mimics what is done inside unicode_math_font_rep) might be good enough and it's attached as a patch, awaiting comments.

Miguel de Benito <mdbenito>
Project Member


Attached Files
file #25586:  test_tmuniversal.tm added by fpoulain (12kB - text/texmacs)
file #25570:  patch.diff added by mdbenito (532B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by vdhoeven (Posted a comment)
  • -unavailable- added by mdbenito (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 logged-in users can vote.


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



    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Nov 29 17:42:37 2013vdhoevenStatusNeed Info=>Works For Me
      Assigned tomdbenito=>vdhoeven
    Wed Aug 1 13:56:36 2012mdbenitoStatusConfirmed=>Need Info
    Thu Apr 5 11:59:23 2012fpoulainAttached File-=>Added test_tmuniversal.tm, #25586
    Wed Apr 4 15:01:54 2012mdbenitoAttached File-=>Added patch.diff, #25570

    Back to the top

    Powered by Savane 3.1-cleanup