Dave Jarvis' Repositories

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

Add option to disable curling quotes

AuthorDaveJarvis <email>
Date2021-06-30 21:38:52 GMT-0700
Commit013cdbeefdbca748f1ec8a271038a32506110db1
Parentadc77d1
Delta8 lines added, 6 lines removed, 2-line increase
src/test/java/com/keenwrite/tex/TeXRasterizationTest.java
throws IOException, ParseException, TranscoderException {
final var g = new SvgGraphics2D();
+
drawGraphics( g );
verifyImage( rasterizeString( g.toString() ) );
throws IOException, ParseException, TranscoderException {
final var g = new SvgDomGraphics2D();
- drawGraphics( g );
-
- final var dom = g.toDom();
- verifyImage( rasterize( dom ) );
+ drawGraphics( g );
+ verifyImage( rasterize( g.toDom() ) );
}
src/main/java/com/keenwrite/preferences/Workspace.java
entry( KEY_LANGUAGE_LOCALE, asLocaleProperty( LOCALE_DEFAULT ) ),
- entry( KEY_TYPESET_CONTEXT_CLEAN, asBooleanProperty(true) ),
+ entry( KEY_TYPESET_CONTEXT_CLEAN, asBooleanProperty( true ) ),
entry( KEY_TYPESET_CONTEXT_THEMES_PATH, asFileProperty( USER_DIRECTORY ) ),
- entry( KEY_TYPESET_CONTEXT_THEME_SELECTION, asStringProperty( "boschet" ) )
+ entry( KEY_TYPESET_CONTEXT_THEME_SELECTION, asStringProperty( "boschet" ) ),
+ entry( KEY_TYPESET_TYPOGRAPHY_QUOTES, asBooleanProperty( true ) )
//@formatter:on
);
src/main/java/com/keenwrite/preferences/WorkspaceKeys.java
public static final Key KEY_TYPESET_CONTEXT_THEME_SELECTION = key( KEY_TYPESET_CONTEXT_THEMES, "selection" );
public static final Key KEY_TYPESET_CONTEXT_CLEAN = key( KEY_TYPESET_CONTEXT, "clean" );
+ public static final Key KEY_TYPESET_TYPOGRAPHY = key( KEY_TYPESET, "typography" );
+ public static final Key KEY_TYPESET_TYPOGRAPHY_QUOTES = key( KEY_TYPESET_TYPOGRAPHY, "quotes" );
//@formatter:on