Skip to content

Commit 86c1215

Browse files
committed
- Update Cheatsheet.adoc
- Update image resolution
1 parent f7b8ca8 commit 86c1215

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

conf/cheatsheet/Cheatsheet.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ JavaFX has 8 kind of Chart component and AsciidocFX supports all of them.
272272

273273
==== Pie Chart
274274

275-
[chart,pie,file="secim-2014-pie.png",opt="title=2014 YEREL SEÇİM SONUÇLARI"]
275+
[chart,pie,file="secim-2014-pie.png",opt="title=LOCAL ELECTION RESULTS"]
276276
--
277277
AKP, 45.6, orange
278278
CHP, 27.8,red
-1.69 KB
Loading

conf/docbook-config/fop.xconf.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ the location of this file.
1919
<base>.</base>
2020

2121
<!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
22-
<source-resolution>300</source-resolution>
22+
<source-resolution>200</source-resolution>
2323
<!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
24-
<target-resolution>300</target-resolution>
24+
<target-resolution>200</target-resolution>
2525

2626
<!-- Default page-height and page-width, in case
2727
value is specified as auto -->

src/main/java/com/kodedu/controller/ApplicationController.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@
9292
import java.io.InputStream;
9393
import java.net.InetAddress;
9494
import java.net.URL;
95+
import java.nio.BufferUnderflowException;
9596
import java.nio.file.Files;
9697
import java.nio.file.Path;
9798
import java.nio.file.Paths;
98-
import java.security.CodeSource;
9999
import java.time.LocalDateTime;
100100
import java.time.format.DateTimeFormatter;
101101
import java.util.*;
@@ -2493,7 +2493,13 @@ public void processTokens() {
24932493
final String mode = editorPane.editorMode();
24942494

24952495
threadService.runTaskLater(() -> {
2496-
dictionaryService.processTokens(editorPane, tokenList, mode);
2496+
try {
2497+
dictionaryService.processTokens(editorPane, tokenList, mode);
2498+
} catch (IllegalArgumentException | BufferUnderflowException bufex) {
2499+
// logger.debug(bufex.getMessage(), bufex);
2500+
} catch (Exception e) {
2501+
logger.error(e.getMessage(), e);
2502+
}
24972503
});
24982504
}
24992505

@@ -2757,10 +2763,10 @@ private void openGithubPage(ActionEvent actionEvent) {
27572763

27582764
@FXML
27592765
public void generateCheatSheet(ActionEvent actionEvent) {
2760-
Path cheatsheetPath = getConfigPath().resolve("cheatsheet/cheatsheet.adoc");
2766+
Path cheatsheetPath = getConfigPath().resolve("cheatsheet/Cheatsheet.adoc");
27612767

27622768
Path tempSheetPath = IOHelper.createTempDirectory(directoryService.workingDirectory(), "cheatsheet")
2763-
.resolve("cheatsheet.adoc");
2769+
.resolve("Cheatsheet.adoc");
27642770

27652771
IOHelper.copy(cheatsheetPath, tempSheetPath);
27662772

src/main/java/com/kodedu/spell/dictionary/LanguageSpeller.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public List<String> findSuggestions(String word) {
7171
resultList.addAll(runOnWords);
7272
resultList.addAll(replacements);
7373
return resultList;
74-
} catch (BufferUnderflowException bufex) {
75-
logger.debug(bufex.getMessage(), bufex);
74+
} catch (IllegalArgumentException | BufferUnderflowException bufex) {
75+
// logger.debug(bufex.getMessage(), bufex);
7676
} catch (Exception e) {
7777
logger.error(e.getMessage(), e);
7878
}

0 commit comments

Comments
 (0)