[201_90] fix inner product symbol display in tab cycle popup#2939
[201_90] fix inner product symbol display in tab cycle popup#29391sh-repalto wants to merge 1 commit intoMoganLab:mainfrom
Conversation
|
Could you make it show |
|
Hello @JackYansongLi and @wumoin , - font fn= smart_font (family, fn_class, series, shape, sz, dpi);
+ font fn= find_font (family, fn_class, series, shape, sz, dpi);From my investigation, this change led to the unusual behaviour of the fixes I had done in my PR. Let me know what you guys think on this. I have tested both behaviours and am attaching them for reference:
with_smart_font.mp4
with_find_font.mp4 |

Fixes #2926
Inner product symbol does not show on Tab cycling popup window
Summary
When cycling through math variants for the
<key (which includes the inner product⟨⟩as the 7th variant), the popup window showed a broken/red symbol instead of the angle brackets.Developer Document:
devel/201_90.mdIssue Found
The
math-bracket-opencase inlambda-to-symbolwas concatenating the left and right bracket symbols (e.g.,"<langle><rangle>"). This produced a compound string that thewidget-boxrendering engine (using theromanfont) could not render correctly, showing as a red broken symbol or--.Changes
In
TeXmacs/progs/math/math-edit.scm:Modified
lambda-to-symbolto return only the left bracket symbol formath-bracket-open:((math-bracket-open) (and (>= (length (cdr body)) 2) (string? (cadr body)) (string? (caddr body)) (let ((lb (cadr body)) (rb (caddr body))) `(symbol-completion - ,(string-append lb rb))))) + ,lb))))How to test
$<Tabrepeatedly (7 times) to reach the inner product⟨⟩variant⟨clearly (instead of a broken red symbol or--)Tabonce more to return to<and verify the cycle continues correctly