mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-06 09: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,62 @@
|
||||
namespace AIStudio.Tools.DocumentSegments.Latex;
|
||||
|
||||
/// <summary>
|
||||
/// What a part of a LaTeX document is, as LatexParser reads it.
|
||||
/// </summary>
|
||||
internal enum LatexNodeKind
|
||||
{
|
||||
/// <summary>
|
||||
/// Words and the white space between them, without any character which LaTeX treats specially.
|
||||
/// </summary>
|
||||
TEXT,
|
||||
|
||||
/// <summary>
|
||||
/// One blank line or more, which end a paragraph.
|
||||
/// </summary>
|
||||
PARAGRAPH_BREAK,
|
||||
|
||||
/// <summary>
|
||||
/// A comment, from its percent sign to the end of its line.
|
||||
/// </summary>
|
||||
COMMENT,
|
||||
|
||||
/// <summary>
|
||||
/// Markup which stands for words, e.g., \% for a percent sign or \"a for an umlaut; LatexNode.Words holds them.
|
||||
/// </summary>
|
||||
ESCAPED_WORDS,
|
||||
|
||||
/// <summary>
|
||||
/// A command with its arguments.
|
||||
/// </summary>
|
||||
COMMAND,
|
||||
|
||||
/// <summary>
|
||||
/// A group in braces.
|
||||
/// </summary>
|
||||
GROUP,
|
||||
|
||||
/// <summary>
|
||||
/// A formula within the words, e.g., $x$ or \[x\].
|
||||
/// </summary>
|
||||
MATH,
|
||||
|
||||
/// <summary>
|
||||
/// Code which LaTeX prints as it stands, e.g., \verb|x|.
|
||||
/// </summary>
|
||||
VERBATIM,
|
||||
|
||||
/// <summary>
|
||||
/// An environment, from its \begin to its \end.
|
||||
/// </summary>
|
||||
ENVIRONMENT,
|
||||
|
||||
/// <summary>
|
||||
/// A character which LaTeX treats specially, e.g., ~ or &; LatexNode.Name holds it.
|
||||
/// </summary>
|
||||
SPECIAL,
|
||||
|
||||
/// <summary>
|
||||
/// Markup the parser cannot follow, e.g., a closing brace without an opening one, or a formula without its end.
|
||||
/// </summary>
|
||||
INVALID,
|
||||
}
|
||||
Reference in new issue
Block a user