Dave Jarvis' Repositories

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

Add architecture diagram

AuthorDaveJarvis <email>
Date2020-07-02 20:27:36 GMT-0700
Commitd183ff63992254e540bf11c19aa19153525d0a1f
Parent813859b
Delta46 lines added, 4 lines removed, 42-line increase
src/main/java/com/scrivenvar/processors/InlineRProcessor.java
import java.util.Map;
-import static com.scrivenvar.Constants.*;
+import static com.scrivenvar.Constants.STATUS_PARSE_ERROR;
import static com.scrivenvar.Messages.get;
import static com.scrivenvar.decorators.RVariableDecorator.PREFIX;
private static final ScriptEngine ENGINE =
(new ScriptEngineManager()).getEngineByName( "Renjin" );
+
+ private static final int PREFIX_LENGTH = PREFIX.length();
/**
public String process( final String text ) {
final int length = text.length();
- final int prefixLength = PREFIX.length();
// The * 2 is a wild guess at the ratio of R statements to the length
// Jump to the start of the R statement.
- prevIndex = currIndex + prefixLength;
+ prevIndex = currIndex + PREFIX_LENGTH;
// Find the statement ending (`), without indexing past the text boundary.
images/architecture/logos/links.svg
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
+ "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
+<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
+ width="1280.000000pt" height="1123.000000pt" viewBox="0 0 1280.000000 1123.000000"
+ preserveAspectRatio="xMidYMid meet">
+<metadata>
+Created by potrace 1.15, written by Peter Selinger 2001-2017
+</metadata>
+<g transform="translate(0.000000,1123.000000) scale(0.100000,-0.100000)"
+fill="#000000" stroke="none">
+<path d="M10280 11220 c-519 -65 -1029 -329 -1455 -755 -330 -329 -633 -774
+-924 -1355 -236 -472 -422 -961 -534 -1398 l-32 -127 -127 -65 c-178 -91 -334
+-187 -511 -313 -607 -434 -1133 -956 -1571 -1559 -43 -60 -84 -108 -92 -108
+-7 0 -62 8 -121 17 -136 22 -589 25 -758 5 -699 -85 -1336 -290 -2102 -678
+-553 -280 -909 -529 -1258 -879 -438 -438 -700 -924 -776 -1440 -18 -115 -18
+-441 0 -560 94 -654 471 -1279 971 -1610 580 -384 1363 -489 2260 -304 667
+139 1326 395 1984 773 639 367 1082 770 1394 1266 50 80 66 97 98 109 515 186
+874 378 1282 686 372 280 632 526 1123 1063 126 138 148 169 155 214 6 32 10
+37 28 33 95 -19 406 -22 543 -5 384 47 747 203 1108 475 482 364 932 972 1250
+1690 478 1080 659 1990 555 2797 -26 207 -52 322 -110 500 -79 239 -200 471
+-348 668 -80 105 -290 314 -395 392 -293 217 -725 393 -1112 453 -122 19 -423
+27 -525 15z m450 -1440 c358 -86 592 -377 650 -810 15 -108 15 -387 0 -505
+-59 -484 -233 -1050 -481 -1563 -187 -388 -330 -615 -532 -844 -60 -68 -255
+-243 -263 -235 -1 1 13 63 32 137 46 180 63 289 71 445 13 291 -50 570 -181
+793 -221 378 -584 628 -1008 697 -21 3 -38 9 -38 14 0 4 36 99 79 212 261 677
+491 1074 792 1364 193 187 314 259 504 300 95 21 275 18 375 -5z m-1904 -3303
+c96 -100 104 -141 85 -416 l-6 -95 -26 40 c-42 63 -75 133 -97 206 -12 37 -28
+81 -37 98 -13 24 -33 168 -35 248 0 22 55 -17 116 -81z m-1357 -555 c71 -421
+218 -746 451 -995 l83 -88 -25 -27 c-13 -15 -85 -94 -159 -177 -286 -320 -519
+-549 -746 -731 -77 -63 -144 -114 -147 -114 -3 0 -8 17 -12 38 -14 74 -86 270
+-148 397 -100 207 -211 370 -384 563 l-84 93 76 93 c220 271 538 602 816 852
+158 141 254 224 257 221 1 -1 11 -58 22 -125z m-3042 -1799 c-3 -21 -15 -100
+-27 -177 -41 -271 -43 -658 -5 -881 35 -203 106 -390 199 -519 51 -70 161
+-180 225 -221 l43 -29 -28 -23 c-111 -90 -468 -291 -770 -432 -444 -208 -804
+-325 -1219 -398 -143 -25 -184 -28 -385 -28 -182 0 -241 4 -308 18 -280 62
+-466 179 -589 370 -98 152 -133 273 -134 449 0 288 105 494 400 788 329 327
+725 562 1422 843 371 150 774 253 1059 270 137 8 123 12 117 -30z m1130 -650
+c-3 -10 -5 -2 -5 17 0 19 2 27 5 18 2 -10 2 -26 0 -35z"/>
+</g>
+</svg>
images/architecture/logos/markdown.svg
-
+<svg xmlns="http://www.w3.org/2000/svg" width="208" height="128" viewBox="0 0 208 128"><rect width="198" height="118" x="5" y="5" ry="10" stroke="#000" stroke-width="10" fill="none"/><path d="M30 98V30h20l20 25 20-25h20v68H90V59L70 84 50 59v39zm125 0l-30-33h20V30h20v35h20z"/></svg>