| Author | DaveJarvis <email> |
|---|---|
| Date | 2025-09-06 12:30:23 GMT-0700 |
| Commit | 0fdc4c5830024e3008259ddd040b17789ed4a014 |
| Parent | 545f4b3 |
| Delta | 28 lines added, 11 lines removed, 17-line increase |
| 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 ); | ||
| } | ||
| } | ||
| 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 ); | ||
| } | ||
| -23.0.1+13 | ||
| +24.0.2+12 | ||
| * ***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. |
| ``` | ||
| -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 |
| 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}}" \ |