mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-06 05:31:36 +00:00
Added whole documents to the Translation, Grammar & Spelling, and Rewrite & Improve assistants (#1179)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
f7666861f1
commit
918572c158
150 files changed
+12850
-302
No files matched your search
@@ -0,0 +1,30 @@
|
||||
namespace AIStudio.Tools.DocumentSegments.Latex;
|
||||
|
||||
/// <summary>
|
||||
/// A part of a LaTeX document, with where it lies in the source.
|
||||
/// </summary>
|
||||
/// <param name="Kind">What the part is.</param>
|
||||
/// <param name="Start">Where the part starts in the source.</param>
|
||||
/// <param name="End">Where the part ends in the source, exclusive.</param>
|
||||
internal sealed record LatexNode(LatexNodeKind Kind, int Start, int End)
|
||||
{
|
||||
/// <summary>
|
||||
/// The name of a command or an environment, without a star, e.g., "section"; the character of a special one.
|
||||
/// </summary>
|
||||
public string Name { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The words which escaped markup stands for.
|
||||
/// </summary>
|
||||
public string Words { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The arguments of a command or of the start of an environment, in their order.
|
||||
/// </summary>
|
||||
public IReadOnlyList<LatexArgument> Arguments { get; init; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// The content of a group or of an environment.
|
||||
/// </summary>
|
||||
public IReadOnlyList<LatexNode> Children { get; init; } = [];
|
||||
}
|
||||
Reference in new issue
Block a user