Search code examples
wolfram-mathematicamathematica-frontend

Workaround for \[Conjugate] font bug in Mathematica's linux frontend


Version 8.0.1 of Mathematica has just been released and it didn't fix the bug that has been most annoying me. This is a known bug and WRI promise to fix it "in a future release". Until they do, maybe we can find a workaround.

The symbol for \[Conjugate] (which is entered using the shortcut ⋮conj⋮) was broken in between Mathematica versions 7 and 8. In version 8 it does not display, which leads to a lot of confusion when reading my old code. Compare the two versions:

V7

V8


There are two options that I can think of:

  1. Find the symbol that the frontend displays when it sees \[Conjugate] and tell it to display something visible. I'm not sure if this is possible to do without working at WRI and recompiling the frontend.
  2. Redefine the shortcut ⋮conj⋮ (as described in this SO question) to create a different postfix operator that displays as a superscript * and is immediately interpreted as Conjugate[] -- i.e. it has the same behaviour as \[Conjugate]. The display properties can probably be taken care of using an InterpretationBox etc...

The problem with option 2, is that it won't fix my old notebooks.

Does anyone have any different ideas or an implementation of the above?


Solution

  • You want UnicodeFontMapping.tr (affects appearance) rather than UnicodeCharacters.tr (affects interpretation). Make a backup copy of UnicodeFontMapping.tr and edit the line:

    0xF3C8 N 6 0xad # \[Conjugate]

    to something like (using whatever replacement glyph you want):

    0xF3C8 N 1 0x2a # *