Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git
M src/main/java/com/keenwrite/cmdline/Arguments.java
6666
  private boolean mDebug;
6767
68
6968
  @CommandLine.Option(
7069
    names = {"-i", "--input"},
7170
    description =
7271
      "Source document file path",
7372
    paramLabel = "PATH",
7473
    defaultValue = "stdin",
7574
    required = true
7675
  )
7776
  private Path mSourcePath;
77
78
  @CommandLine.Option(
79
    names = {"--font-dir"},
80
    description =
81
      "Directory to specify additional fonts",
82
    paramLabel = "String"
83
  )
84
  private File mFontDir;
7885
7986
  @CommandLine.Option(
8087
    names = {"--format-subtype"},
8188
    description =
8289
      "Export TeX subtype for HTML formats: svg, delimited",
83
    defaultValue = "svg",
84
    paramLabel = "String"
90
    paramLabel = "String",
91
    defaultValue = "svg"
8592
  )
8693
  private String mFormatSubtype;
...
227234
      .with( Mutator::setImageServer, () -> mImageServer )
228235
      .with( Mutator::setImageOrder, () -> mImageOrder )
236
      .with( Mutator::setFontsPath, () -> mFontDir )
229237
      .with( Mutator::setExportFormat, format )
230238
      .with( Mutator::setDefinitions, () -> definitions )
M src/main/java/com/keenwrite/processors/ProcessorContext.java
2020
import java.util.function.Supplier;
2121
22
import static com.keenwrite.Bootstrap.USER_CACHE_DIR;
2223
import static com.keenwrite.Bootstrap.USER_DATA_DIR;
2324
import static com.keenwrite.constants.Constants.*;
...
8384
    private boolean mConcatenate;
8485
85
    private Supplier<Path> mThemesPath;
86
    private Supplier<Path> mThemesPath = USER_DIRECTORY::toPath;
8687
    private Supplier<Locale> mLocale = () -> Locale.ENGLISH;
8788
8889
    private Supplier<Map<String, String>> mDefinitions = HashMap::new;
8990
    private Supplier<Map<String, String>> mMetadata = HashMap::new;
9091
    private Supplier<Caret> mCaret = () -> Caret.builder().build();
9192
92
    private Supplier<Path> mFontsPath;
93
    private Supplier<Path> mFontsPath = () -> getFontDirectory().toPath();
9394
94
    private Supplier<Path> mImagesPath;
95
    private Supplier<Path> mImagesPath = USER_DIRECTORY::toPath;
9596
    private Supplier<String> mImageServer = () -> DIAGRAM_SERVER_NAME;
9697
    private Supplier<String> mImageOrder = () -> PERSIST_IMAGES_DEFAULT;
9798
98
    private Supplier<Path> mCachesPath;
99
    private Supplier<Path> mCachesPath = USER_CACHE_DIR::toPath;
99100
100101
    private Supplier<String> mSigilBegan = () -> DEF_DELIM_BEGAN_DEFAULT;
101102
    private Supplier<String> mSigilEnded = () -> DEF_DELIM_ENDED_DEFAULT;
102103
103
    private Supplier<Path> mRWorkingDir;
104
    private Supplier<Path> mRWorkingDir = USER_DIRECTORY::toPath;
104105
    private Supplier<String> mRScript = () -> "";
105106