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 04 Apr 2012 03:01:54 PM UTC  
 
Category: EditorPriority: 5 - Normal
Item Group: ErrorStatus: Works For Me
Privacy: PublicAssigned to: Joris van der Hoeven <vdhoeven>
Originator Name: Open/Closed: Closed
Release: 1.0.7.15Release: None
Fixed Release: NoneFixed Release: 
Keywords: 

Fri 29 Nov 2013 05:42:37 PM UTC, 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 01 Aug 2012 01:56:36 PM UTC, 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 28 May 2012 10:07:00 PM UTC, 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 05 Apr 2012 03:51:11 PM UTC, 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 05 Apr 2012 11:59:23 AM UTC, 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 04 Apr 2012 03:01:54 PM UTC, 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 29 Nov 2013 05:42:37 PM UTCvdhoevenStatusNeed Info=>Works For Me
      Assigned tomdbenito=>vdhoeven
      Open/ClosedOpen=>Closed
    Wed 01 Aug 2012 01:56:36 PM UTCmdbenitoStatusConfirmed=>Need Info
    Thu 05 Apr 2012 11:59:23 AM UTCfpoulainAttached File-=>Added test_tmuniversal.tm, #25586
    Wed 04 Apr 2012 03:01:54 PM UTCmdbenitoAttached File-=>Added patch.diff, #25570

    Back to the top


    Powered by Savane 3.1-cleanup