@pretextbook/import 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +0,0 @@
1
- import { MacroReplaceGroup } from './latex-data';
2
- import { CleaningWarning } from './warnings';
3
- export declare function fixPlainTeX(input: string, group: MacroReplaceGroup): {
4
- output: string;
5
- warnings: CleaningWarning[];
6
- };
7
- export declare function specialPreprocess(input: string): {
8
- output: string;
9
- warnings: CleaningWarning[];
10
- };
@@ -1,38 +0,0 @@
1
- export type ErrorKind = "unused" | "presentation" | "accessibility" | "mistake" | "archaic" | "publisher" | "other";
2
- export interface MacroGroup {
3
- kind: string;
4
- category: string;
5
- macros: string[];
6
- }
7
- export interface MacroReplaceGroup {
8
- kind: string;
9
- category: string;
10
- pairs: Array<{
11
- from: string;
12
- to: string;
13
- }>;
14
- }
15
- export interface MacroWithArityGroup {
16
- kind: string;
17
- category: string;
18
- macros: Array<{
19
- name: string;
20
- arity: number;
21
- }>;
22
- }
23
- export interface EnvironmentGroup {
24
- kind: string;
25
- category: string;
26
- environments: string[];
27
- }
28
- export declare const badPlainTeX: MacroGroup[];
29
- export declare const badPlainTeXdirectives: MacroReplaceGroup;
30
- export declare const specialBadMacros: MacroGroup[];
31
- export declare const badEverywhereMacros: MacroGroup[];
32
- export declare const badEverywhereMacrosLine: MacroGroup[];
33
- export declare const publisherOptions: MacroGroup[];
34
- export declare const eliminateAndSave: MacroGroup[];
35
- export declare const badEverywhereMacrosPlus: MacroWithArityGroup[];
36
- export declare const badBodyEnvironments: EnvironmentGroup[];
37
- export declare const typeOfError: Record<string, string>;
38
- export declare const alternatives: Record<string, Array<[string, string]>>;
@@ -1,11 +0,0 @@
1
- import { CleaningWarning } from './warnings';
2
- export interface PreambleBodyBiblio {
3
- preamble: string;
4
- body: string;
5
- bibliography: string;
6
- }
7
- export declare function separatePieces(input: string): PreambleBodyBiblio;
8
- export declare function scanForAnomalies(source: string): {
9
- output: string;
10
- warnings: CleaningWarning[];
11
- };