From 25ccaac86a246d93e32394e7d55d3e94e6130800 Mon Sep 17 00:00:00 2001 From: Viresh Ratnakar <39968616+viresh-ratnakar@users.noreply.github.com> Date: Tue, 16 May 2023 15:11:08 -0700 Subject: [PATCH] v1.50 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Version: Exolve v1.50: May 16, 2023 - Remove the Firefox-specific code that made pageinate() a no-op—it seems to work OK now. - But in Firefox, use settings for the toggle "Shrink to page width" vs "Scale [100]" seem sticky. Add documentation that this should be set to "Shrink to page width." --- CHANGELOG.md | 8 ++++++++ README.md | 10 ++++------ exolve-from-ipuz.js | 2 +- exolve-from-puz.js | 2 +- exolve-from-text.js | 2 +- exolve-m-simple.html | 6 +++--- exolve-m.css | 2 +- exolve-m.html | 6 +++--- exolve-m.js | 9 ++++----- exolve-player.html | 14 +++++++------- exolve.html | 9 ++++----- test-15x15-unsolved.html | 4 ++-- test-3d-small.html | 4 ++-- test-3d-snake.html | 4 ++-- test-3d.html | 4 ++-- test-4d-solved.html | 4 ++-- test-basic-solved.html | 4 ++-- test-basic-unsolved.html | 4 ++-- test-big-grid.html | 4 ++-- test-color-scheme.html | 4 ++-- test-columnar.html | 4 ++-- test-completion-notice.html | 4 ++-- test-customize-puzzle.html | 4 ++-- test-deleted-clues-solved.html | 4 ++-- test-diagramless-solved.html | 4 ++-- test-diagramless-unsolved.html | 4 ++-- test-exolve-div.html | 4 ++-- test-hindi.html | 4 ++-- test-ipuz-solved.html | 6 +++--- test-ipuz-unsolved.html | 6 +++--- test-jigsaw-solved.html | 4 ++-- test-jigsaw-unsolved.html | 4 ++-- test-linked-solved.html | 4 ++-- test-linked-unsolved.html | 4 ++-- test-mixed-solved.html | 4 ++-- test-ninas-colours.html | 4 ++-- test-no-clues.html | 4 ++-- test-nonnum.html | 4 ++-- test-numeric.html | 4 ++-- test-oblongs.html | 4 ++-- test-override-number.html | 4 ++-- test-partial-solved.html | 4 ++-- test-print-only-crossword.html | 4 ++-- test-questions.html | 4 ++-- test-russian.html | 4 ++-- test-scroll.html | 4 ++-- test-show-cell-level-buttons.html | 4 ++-- test-skipped-numbers.html | 4 ++-- test-state-based-display.html | 4 ++-- test-two-puzzles.html | 4 ++-- test-warnings.html | 4 ++-- 51 files changed, 119 insertions(+), 115 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94d794f0..4e807ebf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### Version: Exolve v1.50: May 16, 2023 + +- Remove the Firefox-specific code that made pageinate() a no-op—it + seems to work OK now. +- But in Firefox, use settings for the toggle "Shrink to page width" + vs "Scale [100]" seem sticky. Add documentation that this should + be set to "Shrink to page width." + ### Version: Exolve v1.49: May 10, 2023 - When testing if the current input is a valid letter in a diff --git a/README.md b/README.md index 3b88cd3c..67d5376a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## An Easily Configurable Interactive Crossword Solver -### Version: Exolve v1.49 May 10, 2023 +### Version: Exolve v1.50 May 16, 2023 Exolve can help you create online interactively solvable crosswords (simple ones with blocks and/or bars as well as those that are jumbles or are @@ -2175,11 +2175,9 @@ Brwosers have their own printing layout algorithms that sometimes do not behave as expected by Exolve's printing layout algorithm. Here are some known issues as of May, 2023. -- Printing settings in Firefox seem especially complex, and Exolve turns off - the pagination attempts described above if it detects the browser to be - Firefox. If the printed area seems too small with Firefox, try unchecking the - option: "Ignore Scaling and Shrink to Fit Page Width" and set the scale to - something like 70%. +- Printing settings in Firefox seem especially complex. If the printed area + overflows with Firefox, try toggling to set the Firefox print setting + "Fit to page width" instead of "Scale [100]." - In Chrome, if the margin is too high (say, more than 0.7 inches), then some content may get clipped. diff --git a/exolve-from-ipuz.js b/exolve-from-ipuz.js index e3a11202..9bd85d32 100644 --- a/exolve-from-ipuz.js +++ b/exolve-from-ipuz.js @@ -24,7 +24,7 @@ SOFTWARE. The latest code and documentation for Exolve can be found at: https://github.com/viresh-ratnakar/exolve -Version: Exolve v1.49 May 10, 2023 +Version: Exolve v1.50 May 16, 2023 */ /** diff --git a/exolve-from-puz.js b/exolve-from-puz.js index 300aa977..a119862e 100644 --- a/exolve-from-puz.js +++ b/exolve-from-puz.js @@ -24,7 +24,7 @@ SOFTWARE. The latest code and documentation for Exolve can be found at: https://github.com/viresh-ratnakar/exolve -Version: Exolve v1.49 May 10, 2023 +Version: Exolve v1.50 May 16, 2023 */ function exolveFromPuzNextNull(buffer, offset) { diff --git a/exolve-from-text.js b/exolve-from-text.js index 253142ec..8a1b9729 100644 --- a/exolve-from-text.js +++ b/exolve-from-text.js @@ -24,7 +24,7 @@ SOFTWARE. The latest code and documentation for Exolve can be found at: https://github.com/viresh-ratnakar/exolve -Version: Exolve v1.49 May 10, 2023 +Version: Exolve v1.50 May 16, 2023 */ /** diff --git a/exolve-m-simple.html b/exolve-m-simple.html index 8b543720..bde92f58 100644 --- a/exolve-m-simple.html +++ b/exolve-m-simple.html @@ -14,11 +14,11 @@ See the full Exolve license notice in exolve-m.js. -Version: Exolve v1.49 May 10, 2023 +Version: Exolve v1.50 May 16, 2023 --> - - + + Exolve diff --git a/exolve-m.css b/exolve-m.css index 7b187c2f..f064804c 100644 --- a/exolve-m.css +++ b/exolve-m.css @@ -5,7 +5,7 @@ Copyright (c) 2019 Viresh Ratnakar See the full license notice in exolve-m.js. -Version: Exolve v1.49 May 10, 2023 +Version: Exolve v1.50 May 16, 2023 */ @media (max-width: 500px) { diff --git a/exolve-m.html b/exolve-m.html index 78b7e3d1..dc4f6201 100644 --- a/exolve-m.html +++ b/exolve-m.html @@ -10,10 +10,10 @@ See the full Exolve license notice in exolve-m.js. -Version: Exolve v1.49 May 10, 2023 +Version: Exolve v1.50 May 16, 2023 --> - - + + Exolve (replace with puzzle title) diff --git a/exolve-m.js b/exolve-m.js index c5e84d3d..8362e97e 100644 --- a/exolve-m.js +++ b/exolve-m.js @@ -84,7 +84,7 @@ function Exolve(puzzleSpec, visTop=0, maxDim=0, notTemp=true) { - this.VERSION = 'Exolve v1.49 May 10, 2023'; + this.VERSION = 'Exolve v1.50 May 16, 2023'; this.id = ''; this.puzzleText = puzzleSpec; @@ -7360,6 +7360,9 @@ Exolve.prototype.getPrintSettings = function() { const val = parseFloat(marginStr); if (!isNaN(val) && val >= 0.0) marginIn = val; } + if (pageMarginElt) { + pageMarginElt.value = marginIn; + } const widthIn = ((page == 'letter' || page == 'legal') ? 8.5 : ((page == 'A4') ? 210.0/25.4 : ((page == 'A3') ? 297.0/25.4 : @@ -7918,10 +7921,6 @@ Exolve.prototype.printThreeColumns = function(settings) { } Exolve.prototype.paginate = function(settings) { - if (navigator.userAgent.indexOf('Firefox/') >= 0) { - // Firefox printing is complicated, give up. - return; - } const outerBox = this.frame.getBoundingClientRect(); const bodyBox = document.body.getBoundingClientRect(); if (outerBox.top - bodyBox.top > 5 || outerBox.left - bodyBox.left > 5) { diff --git a/exolve-player.html b/exolve-player.html index 3701eb55..7141fd44 100644 --- a/exolve-player.html +++ b/exolve-player.html @@ -3,11 +3,11 @@ - - - - - + + + + +