Skip to content

0.5.0 Evaluation Update Beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 01 Nov 16:50
· 6 commits to master since this release
2431d7d

Changes from v0.5.0-alpha4 (Recently merged first)

🚀 Features

Add placeholder blinks setting (#177) @SymboLinker

In issue #175 a feature request was done for stopping the blinking of the placeholder (but still have a blinking carret if it moves to a spot without a placeholder).

The proposed pull request #176 just removes the blinking of the placeholder and does not leave it as an option.

This pull request adds a setting LaTeXSetting.PlaceholderBlinks that keeps the default value true and does not break any existing unit tests.

Tests are added

  • to make sure that the setting for a non-blinking placeholder works
  • to document how it should work
  • to make sure that it will not be removed in a whim

@charlesroddie Please verify that the effect of changing the "PlaceholderBlinks"-setting results in the behaviour you like.

Make blinking Placeholder's Nucleus and ForeColor customizable in both CaretStates (#167) @SymboLinker

In pull request #164, posting #164 (comment), the idea came up to make the placeholder customizable in the keyboard output. While PR #164 is concerned with the display of the keyboard buttons themselves, this PR is about the math keyboard output.

Currently the placeholder has two possible appearances: a full black square and an empty square with a black border.

This pull request makes the Nucleus and the ForeColor of the placeholder customizable in both CaretStates.

An example of usage: instead of an empty square with a black border in the 'hiding' CaretState, you could choose a full square with another Color (gray, for instance).

An example test:
In CSharpMath.Forms.Example\CSharpMath.Forms.Example\EditorPage.xaml.cs
add the following lines at the top of the constructor of the EditorView:

      Atom.LaTeXSettings.PlaceholderHidingNucleus = "\u25A0";
      Atom.LaTeXSettings.PlaceholderHidingColor = Color.LightGray;

Open the Example project and go to the Editor tab. Click the fraction button. The output is:
image
where the square in the numerator blinks, LightGray/Black.

I am willing to write unit tests after some form of preliminary approval of this pull request.
(And of course I will fix mistakes and refactor if needed.)

🧰 Maintenance

Make MathKeyboard IDisposable (#179) @charlesroddie

fixes: #178

Cleanup in preparation for Font Styles (#156) @charlesroddie

Initial simplification in preparation for adding Font Styles

  • DoNothingFontChanger was removed was only used in tests.

For subsequent PR:

  • UnicodeFontChanger uses "mathematical bold/italic" ranges to use a single font for normal/bold/italic. To preserve existing functionality without deploying additional fonts, this logic needs to be kept when using standard fonts.
  • Allow users to add bold and italic fonts, for use in TextPainter. This PR will not address MathAtom fonts. If these fonts are present, they will be used instead of UnicodeFontChanger for rendering bold/italic fonts.
Enable the use of codecov.io (#163) @Happypig375

See https://codecov.io/gh/verybadcat/CSharpMath

Continuous Benchmark (#162) @Happypig375

See https://verybadcat.github.io/CSharpMath/dev/bench/

Add test coverage as CI artifacts (#155) @Happypig375

Also CSharpMath.Rendering.Tests baselines became smaller magically

Contributors

@Happypig375, @SymboLinker and @charlesroddie