diff --git a/assets/bios/wp.js b/assets/bios/wp.js index e9cbc98..244a4ee 100644 --- a/assets/bios/wp.js +++ b/assets/bios/wp.js @@ -36,7 +36,7 @@ const TYPESET_STRATEGY_JUSTIFIED = 3 // not implemented yet! const typesetStrats = [undefined, undefined, typesetLessRagged, typesetJustified] let PAGE_HEIGHT = 60 -let PAGE_WIDTH = 70 +let PAGE_WIDTH = 80 // 80x60 -> 720x1080 text area; with 72px margin for each side, paper resolution is 864x1224, which is quite close to 1:sqrt(2) ratio let scroll = 0 @@ -365,7 +365,7 @@ function typesetJustified(lineStart, lineEnd) { printdbg(`contract-nugding ${justLen - paintWidth} characters`) adjust += justLen - paintWidth // the last word is going to be appended } - // if any concatenation is impossible, recurse without last word (spaces will be trimmed on recursion), so that if-clauses below would treat them + // if any contraction is impossible, recurse without last word (spaces will be trimmed on recursion), so that if-clauses below would treat them else if (justLen > paintWidth && spcAfterPunct.length < justLen - paintWidth) { printdbg("TOSS OUT LAST") while ("tx" == words.last().type) { diff --git a/assets/wpfont.kra b/assets/wpfont.kra index 2f2cac5..cdd406b 100644 --- a/assets/wpfont.kra +++ b/assets/wpfont.kra @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7215a66afb4a6b8fb0de6bf7acba3f83d080fafe045853952c2311f27b552da2 -size 97321 +oid sha256:6ec14fae86273617a18ae30859a451626b10cb2a3fc92b74797da9811cc001e6 +size 114495 diff --git a/assets/wpfont.png b/assets/wpfont.png index 7073e6e..9259dc4 100644 Binary files a/assets/wpfont.png and b/assets/wpfont.png differ