Skip to content

Commit dbec103

Browse files
committed
v0.1.5
1 parent 4b14715 commit dbec103

File tree

10 files changed

+27
-18
lines changed

10 files changed

+27
-18
lines changed

.github/issue_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Hi there! You might be a mobile user. Please switch to the Desktop version of GitHub to choose an issue template if your issue is a bug report, feature request or information update request. Thanks.
1+
Hi there! You might be a mobile user. Please switch to the Desktop version of GitHub to choose an issue template if your issue is a bug report, feature request, information update request or question. Thanks.

CSharpMath.Forms.Example/CSharpMath.Forms.Example/CustomExamplePage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace CSharpMath.Forms.Example
1313
[XamlCompilation(XamlCompilationOptions.Compile), Android.Runtime.Preserve(AllMembers = true), Foundation.Preserve(AllMembers = true)]
1414
public partial class CustomExamplePage : ContentPage
1515
{
16-
public static float[] FontSizes = new float[] { 8, 12, 16, 24, 36, 48, 60, 72, 96, 144, 192, 288, 384, 480, 576, 666 /*(insert trollface here)*/, 768, 864, 960 };
16+
public static float[] FontSizes = new float[] { 1, 2, 4, 8, 12, 16, 24, 36, 48, 60, 72, 96, 108, 144, 192, 288, 384, 480, 576, 666 /*(insert trollface here)*/, 768, 864, 960 };
1717
Dictionary<string, string> dict = ExamplesPage.AllConstants.ToDictionary(info => info.Name, info => (string)info.GetRawConstantValue());
1818
public CustomExamplePage() {
1919
InitializeComponent();

CSharpMath.Forms/CSharpMath.Forms.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<TargetFramework>netstandard2.0</TargetFramework>
44
<LangVersion>latest</LangVersion>
55
<GeneratePackageOnBuild Condition="'$(Configuration)' == 'Release'">true</GeneratePackageOnBuild>
6-
<PackageVersion>0.1.4</PackageVersion>
6+
<PackageVersion>0.1.5</PackageVersion>
77
<Authors>CSharpMath Contributors (verybadcat, Happypig375, charlesroddie, FoggyFinder)</Authors>
8-
<PackageReleaseNotes>The 0.1.4 SkiaSharp Update fixes the incorrect font size of radical degrees, and not being able to build on .NET Native.</PackageReleaseNotes>
8+
<PackageReleaseNotes>The 0.1.5 SkiaSharp Update fixes the incorrect definition of space commands which used points instead of math units.</PackageReleaseNotes>
99
<RepositoryType>git</RepositoryType>
1010
<RepositoryUrl>https://github.com/verybadcat/CSharpMath.git</RepositoryUrl>
1111
<RepositoryBranch>master</RepositoryBranch>

CSharpMath.Ios/CSharpMath.Ios.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
<NuGetPackageImportStamp></NuGetPackageImportStamp>
1515
<PackOnBuild>true</PackOnBuild>
1616
<PackageId>CSharpMath.Ios</PackageId>
17-
<PackageVersion>0.1.4</PackageVersion>
17+
<PackageVersion>0.1.5</PackageVersion>
1818
<Authors>CSharpMath Contributors (verybadcat, Happypig375, charlesroddie, FoggyFinder)</Authors>
1919
<NeutralLanguage>en</NeutralLanguage>
2020
<PackageLicenseUrl>https://github.com/verybadcat/CSharpMath/blob/master/LICENSE</PackageLicenseUrl>
2121
<PackageProjectUrl>https://github.com/verybadcat/CSharpMath</PackageProjectUrl>
22-
<PackageReleaseNotes>The 0.1.4 SkiaSharp Update fixes the incorrect font size of radical degrees, and not being able to build on .NET Native.</PackageReleaseNotes>
22+
<PackageReleaseNotes>The 0.1.5 SkiaSharp Update fixes the incorrect definition of space commands which used points instead of math units.</PackageReleaseNotes>
2323
<PackageTags>math;mathematics;mathematical;formula;equation;equations;expression;tex;latex;render;rendering;display;ios;xamarin</PackageTags>
2424
<Title>CSharpMath.Ios</Title>
2525
<Description>The iOS front end for CSharpMath.</Description>

CSharpMath.Rendering/CSharpMath.Rendering.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
<!--NuGet Properties-->
1212
<PackOnBuild>true</PackOnBuild>
1313
<PackageId>CSharpMath.Rendering</PackageId>
14-
<PackageVersion>0.1.4</PackageVersion>
14+
<PackageVersion>0.1.5</PackageVersion>
1515
<Authors>CSharpMath Contributors (verybadcat, Happypig375, charlesroddie, FoggyFinder)</Authors>
1616
<PackageLicenseUrl>https://github.com/verybadcat/CSharpMath/blob/master/LICENSE</PackageLicenseUrl>
1717
<PackageProjectUrl>https://github.com/verybadcat/CSharpMath</PackageProjectUrl>
18-
<PackageReleaseNotes>The 0.1.4 SkiaSharp Update fixes the incorrect font size of radical degrees, and not being able to build on .NET Native.</PackageReleaseNotes>
18+
<PackageReleaseNotes>The 0.1.5 SkiaSharp Update fixes the incorrect definition of space commands which used points instead of math units.</PackageReleaseNotes>
1919
<PackageTags>math;mathematics;mathematical;formula;equation;equations;expression;tex;latex;render;rendering;display</PackageTags>
2020
<Title>CSharpMath.Rendering</Title>
2121
<Description>Rendering interface fror CSharpMath using the Typography library.</Description>

CSharpMath.Rendering/Text/TextBuilder.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,15 @@ ReadOnlySpan<char> LookAheadForPunc(ReadOnlySpan<char> latexInput, ref ReadOnlyS
321321
case var _ when textSection.Is(','):
322322
atoms.Add(Space.ShortSpace, 1);
323323
break;
324+
case var _ when textSection.Is(':') || textSection.Is('>'):
325+
atoms.Add(Space.MediumSpace, 1);
326+
break;
327+
case var _ when textSection.Is(';'):
328+
atoms.Add(Space.LongSpace, 1);
329+
break;
330+
case var _ when textSection.Is('!'):
331+
atoms.Add(-Space.ShortSpace, 1);
332+
break;
324333
case var _ when wordKind == WordKind.Whitespace: //control space
325334
atoms.Add();
326335
break;

CSharpMath.SkiaSharp/CSharpMath.SkiaSharp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<TargetFramework>netstandard1.3</TargetFramework>
44
<LangVersion>latest</LangVersion>
55
<GeneratePackageOnBuild Condition="'$(Configuration)' == 'Release'">true</GeneratePackageOnBuild>
6-
<PackageVersion>0.1.4</PackageVersion>
6+
<PackageVersion>0.1.5</PackageVersion>
77
<Authors>CSharpMath Contributors (verybadcat, Happypig375, charlesroddie, FoggyFinder)</Authors>
8-
<PackageReleaseNotes>The 0.1.4 SkiaSharp Update fixes the incorrect font size of radical degrees, and not being able to build on .NET Native.</PackageReleaseNotes>
8+
<PackageReleaseNotes>The 0.1.5 SkiaSharp Update fixes the incorrect definition of space commands which used points instead of math units.</PackageReleaseNotes>
99
<RepositoryType>git</RepositoryType>
1010
<RepositoryUrl>https://github.com/verybadcat/CSharpMath.git</RepositoryUrl>
1111
<RepositoryBranch>master</RepositoryBranch>

CSharpMath.Utils.NuGet/ReleaseData.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<ReleaseData>
33
<_Global->
44
<GeneratePackageOnBuild Condition="'$(Configuration)' == 'Release'">true</GeneratePackageOnBuild>
5-
<PackageVersion>0.1.4</PackageVersion>
5+
<PackageVersion>0.1.5</PackageVersion>
66
<Authors>CSharpMath Contributors (verybadcat, Happypig375, charlesroddie, FoggyFinder)</Authors>
7-
<PackageReleaseNotes>The 0.1.4 SkiaSharp Update fixes the incorrect font size of radical degrees, and not being able to build on .NET Native.</PackageReleaseNotes>
7+
<PackageReleaseNotes>The 0.1.5 SkiaSharp Update fixes the incorrect definition of space commands which used points instead of math units.</PackageReleaseNotes>
88
<RepositoryType>git</RepositoryType>
99
<RepositoryUrl>https://github.com/verybadcat/CSharpMath.git</RepositoryUrl>
1010
<RepositoryBranch>master</RepositoryBranch>

CSharpMath/CSharpMath.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFramework>netstandard1.1</TargetFramework>
44
<LangVersion>latest</LangVersion>
55
<GeneratePackageOnBuild Condition="'$(Configuration)' == 'Release'">true</GeneratePackageOnBuild>
66
<Authors>CSharpMath Contributors (verybadcat, Happypig375, charlesroddie, FoggyFinder)</Authors>
77
<Description>C# LaTeX math rendering engine core. Can display beautiful math equations and symbols. Needs a front end to function. Currently, front ends exist for iOS, SkiaSharp and Xamarin.Forms.</Description>
8-
<PackageReleaseNotes>The 0.1.4 SkiaSharp Update fixes the incorrect font size of radical degrees, and not being able to build on .NET Native.</PackageReleaseNotes>
8+
<PackageReleaseNotes>The 0.1.5 SkiaSharp Update fixes the incorrect definition of space commands which used points instead of math units.</PackageReleaseNotes>
99
<RepositoryType>git</RepositoryType>
1010
<RepositoryUrl>https://github.com/verybadcat/CSharpMath.git</RepositoryUrl>
1111
<PackageProjectUrl>https://github.com/verybadcat/CSharpMath</PackageProjectUrl>
1212
<PackageLicenseUrl>https://github.com/verybadcat/CSharpMath/blob/master/LICENSE</PackageLicenseUrl>
1313
<Copyright>© CSharpMath Contributors 2018</Copyright>
1414
<PackageTags>math;mathematics;mathematical;formula;equation;equations;expression;tex;latex;render;rendering;display</PackageTags>
15-
<PackageVersion>0.1.4</PackageVersion>
15+
<PackageVersion>0.1.5</PackageVersion>
1616
<RepositoryBranch>master</RepositoryBranch>
1717
<RepositoryCommit>237dd00dedfe21006e0181d8b45d59d2a652ec9a</RepositoryCommit>
1818
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>

CSharpMath/Structures/Space.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ public override int GetHashCode() =>
8282
public static readonly Space EmWidth = new Space(18, true);
8383
public static readonly Space ExHeight = new Space(9, true);
8484
public static readonly Space MathUnit = new Space(1, true);
85-
public static readonly Space ShortSpace = 3 * Point;
86-
public static readonly Space MediumSpace = 4 * Point;
87-
public static readonly Space LongSpace = 5 * Point;
85+
public static readonly Space ShortSpace = 3 * MathUnit;
86+
public static readonly Space MediumSpace = 4 * MathUnit;
87+
public static readonly Space LongSpace = 5 * MathUnit;
8888
//https://github.com/latex3/latex2e/blob/b45b88761d659bfe0a0de4638e82122db2ab8184/base/classes.dtx#L775
8989
public static readonly Space ParagraphIndent = 1.5f * EmWidth;
9090
public static Dictionary<string, Space> PredefinedLengthUnits { get; } =

0 commit comments

Comments
 (0)