Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Upgrades to JDK 24.0.2, avoids typesetting log spam

AuthorDaveJarvis <email>
Date2025-09-06 12:30:23 GMT-0700
Commit0fdc4c5830024e3008259ddd040b17789ed4a014
Parent545f4b3
Delta28 lines added, 11 lines removed, 17-line increase
src/main/java/com/keenwrite/typesetting/PaginationListener.java
package com.keenwrite.typesetting;
+import com.keenwrite.events.PagingEvent;
+
import java.util.Scanner;
import java.util.function.Consumer;
// Inform the user of pages being typeset.
- clue( "Main.status.typeset.page",
- mPageCount, mPageTotal < 1 ? "?" : mPageTotal, mPassCount
- );
+ PagingEvent.fire( mPageCount, mPageTotal, mPassCount );
}
}
src/main/java/com/keenwrite/events/StatusEvent.java
package com.keenwrite.events;
+import java.io.PrintStream;
import java.util.List;
* exceptions, state problems, parsing errors, and so forth.
*/
-public final class StatusEvent implements AppEvent {
+public class StatusEvent implements AppEvent {
private static final String ENGLISHIFY =
"(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])";
return sb.toString();
+ }
+
+ public void print( final PrintStream stream ) {
+ final var stacktrace = getProblem();
+ final var problem = stacktrace.isBlank()
+ ? ""
+ : format( "%n%s", stacktrace );
+ final var msg = format( "%s%s", this, problem );
+
+ print( stream, msg );
+ }
+
+ protected void print( final PrintStream stream, final String msg ) {
+ stream.println( msg );
}
java.version
-23.0.1+13
+24.0.2+12
docs/09-exporting.md
* ***Boschet*** -- Based on Baskerville font with elegant styling.
-* ***Handrit*** -- Double-spaced manuscript format using TeX Gyre Cursor.
+* ***Handrit*** -- Double-spaced manuscript format using a courier font.
* ***Tarmes*** -- Based on Times Roman font with minimal styling.
* ***TeXomus*** -- A format suitable for technical documentaion.
docs/10-themes.md
```
-This will cause `a.m.` to be replaced with its smallcaps version as well as all
-occurrences of the word `TeX` with its iconic lowered-E. Case is sensitive.
-Most themes, such as *Boschet*, include a list of replacements inside a file
-named `replace.tex` in the theme-specific subdirectory.
+This will replace `a.m.` with its small caps version and all occurrences of
+`TeX` with its iconic lowered-E formatting. Replacements are case-sensitive.
+Most themes, including *Boschet*, list replacement rules in a file called
+`replace.tex` located in the theme's subdirectory.
## Resources
docs/build.sh
readonly SCRIPT_DIR="$(cd "${SCRIPT_SRC}" >/dev/null 2>&1 && pwd)"
-keenwrite.bin \
+#keenwrite.bin \
+java -jar /tmp/keenwrite.jar \
$1 \
--debug \
--all \
--chapters="1-" \
-i 01-introduction.md \
-o user-manual.pdf \
--variables=$(pwd)/metadata.yaml \
+ --set="version.java=$(cat ../java.version)" \
--metadata="title={{document.title}}" \
--metadata="subtitle={{document.subtitle}}" \
docs/user-manual.pdf
Binary files differ