Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git
build.gradle
spotbugs {
excludeFilter.set(
- file( "${projectDir}/bug-filter.xml" )
+ file( "${projectDir}/bug-filter.xml" )
)
}
def moduleSecurity = [
- '--add-opens=javafx.graphics/javafx.scene=ALL-UNNAMED',
- '--add-opens=javafx.controls/javafx.scene.control=ALL-UNNAMED',
- '--add-opens=javafx.controls/javafx.scene.control.skin=ALL-UNNAMED',
- '--add-opens=javafx.graphics/javafx.scene.text=ALL-UNNAMED',
- '--add-opens=javafx.graphics/com.sun.javafx.css=ALL-UNNAMED',
- '--add-opens=javafx.graphics/com.sun.javafx.text=ALL-UNNAMED',
- '--add-exports=javafx.base/com.sun.javafx.event=ALL-UNNAMED',
- '--add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED',
- '--add-exports=javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED',
- '--add-exports=javafx.graphics/com.sun.javafx.text=ALL-UNNAMED',
- '--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
- '--add-exports=javafx.graphics/com.sun.javafx.scene.text=ALL-UNNAMED',
- '--add-exports=javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED',
+ '--add-opens=javafx.graphics/javafx.scene=ALL-UNNAMED',
+ '--add-opens=javafx.controls/javafx.scene.control=ALL-UNNAMED',
+ '--add-opens=javafx.controls/javafx.scene.control.skin=ALL-UNNAMED',
+ '--add-opens=javafx.graphics/javafx.scene.text=ALL-UNNAMED',
+ '--add-opens=javafx.graphics/com.sun.javafx.css=ALL-UNNAMED',
+ '--add-opens=javafx.graphics/com.sun.javafx.text=ALL-UNNAMED',
+ '--add-exports=javafx.base/com.sun.javafx.event=ALL-UNNAMED',
+ '--add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED',
+ '--add-exports=javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED',
+ '--add-exports=javafx.graphics/com.sun.javafx.text=ALL-UNNAMED',
+ '--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
+ '--add-exports=javafx.graphics/com.sun.javafx.scene.text=ALL-UNNAMED',
+ '--add-exports=javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED',
]
compileJava {
options.compilerArgs += [
- "-Xlint:unchecked",
- "-Xlint:deprecation",
- "-Aproject=${applicationPackage}/${applicationName}"
+ "-Xlint:unchecked",
+ "-Xlint:deprecation",
+ "-Aproject=${applicationPackage}/${applicationName}"
]
}
from {
(configurations.runtimeClasspath.findAll { !it.path.endsWith( ".pom" ) })
- .collect { it.isDirectory() ? it : zipTree( it ) }
+ .collect { it.isDirectory() ? it : zipTree( it ) }
}
container/Containerfile
WORKDIR $DOWNLOAD_DIR
-# Carlito (Calibri replacement)
-ADD "https://github.com/googlefonts/carlito/raw/main/fonts/ttf/Carlito-Regular.ttf" "Carlito-Regular.ttf"
-ADD "https://github.com/googlefonts/carlito/raw/main/fonts/ttf/Carlito-Bold.ttf" "Carlito-Bold.ttf"
-ADD "https://github.com/googlefonts/carlito/raw/main/fonts/ttf/Carlito-Italic.ttf" "Carlito-Italic.ttf"
-ADD "https://github.com/googlefonts/carlito/raw/main/fonts/ttf/Carlito-BoldItalic.ttf" "Carlito-BoldItalic.ttf"
-
-# Open Sans Emoji
-ADD "https://github.com/MorbZ/OpenSansEmoji/raw/master/OpenSansEmoji.ttf" "OpenSansEmoji.ttf"
-
-# Underwood Quiet Tab
-ADD "https://site.xavier.edu/polt/typewriters/Underwood_Quiet_Tab.ttf" "Underwood_Quiet_Tab.ttf"
+# Many fonts may be downloaded using Google's download URL. Example:
+# https://fonts.google.com/download?family=Roboto%20Mono
-# Archives
-ADD "https://www.omnibus-type.com/wp-content/uploads/Archivo-Narrow.zip" "archivo-narrow.zip"
-ADD "https://fonts.google.com/download?family=Courier%20Prime" "courier-prime.zip"
-ADD "https://fonts.google.com/download?family=Inconsolata" "inconsolata.zip"
-ADD "https://fonts.google.com/download?family=Libre%20Baskerville" "libre-baskerville.zip"
-ADD "https://fonts.google.com/download?family=Niconne" "niconne.zip"
-ADD "https://fonts.google.com/download?family=Nunito" "nunito.zip"
-ADD "https://fonts.google.com/download?family=Roboto" "roboto.zip"
-ADD "https://fonts.google.com/download?family=Roboto%20Mono" "roboto-mono.zip"
-ADD "https://github.com/adobe-fonts/source-serif/releases/download/4.004R/source-serif-4.004.zip" "source-serif.zip"
+# Font archives are repacked with minimal file set and license.
+ADD "https://fonts.keenwrite.com/download/andada-pro.zip"
+ADD "https://fonts.keenwrite.com/download/archivo-narrow.zip"
+ADD "https://fonts.keenwrite.com/download/carlito.zip"
+ADD "https://fonts.keenwrite.com/download/courier-prime.zip"
+ADD "https://fonts.keenwrite.com/download/inconsolata.zip"
+ADD "https://fonts.keenwrite.com/download/libre-baskerville.zip"
+ADD "https://fonts.keenwrite.com/download/niconne.zip"
+ADD "https://fonts.keenwrite.com/download/nunito.zip"
+ADD "https://fonts.keenwrite.com/download/open-sans-emoji.zip"
+ADD "https://fonts.keenwrite.com/download/pt-mono.zip"
+ADD "https://fonts.keenwrite.com/download/pt-sans.zip"
+ADD "https://fonts.keenwrite.com/download/pt-serif.zip"
+ADD "https://fonts.keenwrite.com/download/roboto.zip"
+ADD "https://fonts.keenwrite.com/download/roboto-mono.zip"
+ADD "https://fonts.keenwrite.com/download/source-serif-4.zip"
+ADD "https://fonts.keenwrite.com/download/underwood.zip"
# Typesetting software
echo "PS1='\\u@typesetter:\\w\\$ '" >> $PROFILE && \
unzip -d $CONTEXT_HOME $DOWNLOAD_DIR/context.zip && \
- unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/archivo-narrow.zip "Archivo-Narrow/otf/*.otf" && \
+ unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/andada-pro.zip "*.otf" && \
+ unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/archivo-narrow.zip "*.otf" && \
+ unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/carlito.zip "*.ttf" && \
unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/courier-prime.zip "*.ttf" && \
unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/libre-baskerville.zip "*.ttf" && \
- unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/inconsolata.zip "**/Inconsolata/*.ttf" && \
+ unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/inconsolata.zip "*.ttf" && \
unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/niconne.zip "*.ttf" && \
unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/nunito.zip "static/*.ttf" && \
+ unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/open-sans-emoji.zip "*.ttf" && \
+ unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/pt-mono.zip "*.ttf" && \
+ unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/pt-sans.zip "*.ttf" && \
+ unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/pt-serif.zip "*.ttf" && \
unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/roboto.zip "*.ttf" && \
unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/roboto-mono.zip "static/*.ttf" && \
- unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/source-serif.zip "source-serif-4.004/OTF/SourceSerif4-*.otf" && \
+ unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/source-serif-4.zip "*.otf" && \
+ unzip -j -o -d $FONTS_DIR $DOWNLOAD_DIR/underwood.zip "*.ttf" && \
mv $DOWNLOAD_DIR/*tf $FONTS_DIR && \
fc-cache -f -v && \
libs/keenquotes.jar
Binary files differ
src/main/java/com/keenwrite/events/StatusEvent.java
*/
public String getProblem() {
- // 256 is arbitrary; stack traces shouldn't be much larger.
- final var sb = new StringBuilder( 256 );
+ // Arbitrary limit.
+ final var sb = new StringBuilder( 1024 );
final var trace = mProblem;
if( trace != null ) {
stream( trace.getStackTrace() )
- .takeWhile( StatusEvent::filter )
- .limit( 15 )
+ .limit( 150 )
.toList()
.forEach( e -> sb.append( e.toString() ).append( NEWLINE ) );
message.isBlank() ? "" : " ",
mProblem == null ? "" : toEnglish( mProblem ) );
- }
-
- /**
- * Returns {@code true} to allow the {@link StackTraceElement} to pass
- * through the filter.
- *
- * @param e The element to check against the filter.
- */
- private static boolean filter( final StackTraceElement e ) {
- final var clazz = e.getClassName();
- return !(clazz.contains( "org.renjin." ) ||
- clazz.contains( "sun." ) ||
- clazz.contains( "flexmark." ) ||
- clazz.contains( "java." )
- );
}

Migrates fonts to keenwrite.com, adds fonts for jurisal theme

Author DaveJarvis <email>
Date 2023-12-14 19:09:41 GMT-0800
Commit 413f010774cac3d6b4768003d1f0bc9327719003
Parent 1f519a1
Delta 50 lines added, 61 lines removed, 11-line decrease