Skip to content

Commit

Permalink
v1.50
Browse files Browse the repository at this point in the history
### 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."
  • Loading branch information
viresh-ratnakar authored May 16, 2023
1 parent a831db4 commit 25ccaac
Show file tree
Hide file tree
Showing 51 changed files with 119 additions and 115 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion exolve-from-ipuz.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion exolve-from-puz.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion exolve-from-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
6 changes: 3 additions & 3 deletions exolve-m-simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->

<link rel="stylesheet" type="text/css" href="https://viresh-ratnakar.github.io/exolve-m.css?v1.49"/>
<script src="https://viresh-ratnakar.github.io/exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="https://viresh-ratnakar.github.io/exolve-m.css?v1.50"/>
<script src="https://viresh-ratnakar.github.io/exolve-m.js?v1.50"></script>

<title>Exolve</title>

Expand Down
2 changes: 1 addition & 1 deletion exolve-m.css
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions exolve-m.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Exolve (replace with puzzle title)</title>

Expand Down
9 changes: 4 additions & 5 deletions exolve-m.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 :
Expand Down Expand Up @@ -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) {
Expand Down
14 changes: 7 additions & 7 deletions exolve-player.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<script src="exolve-from-ipuz.js?v1.49"></script>
<script src="exolve-from-puz.js?v1.49"></script>
<script src="exolve-from-text.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>
<script src="exolve-from-ipuz.js?v1.50"></script>
<script src="exolve-from-puz.js?v1.50"></script>
<script src="exolve-from-text.js?v1.50"></script>

<style>
.xlvp-wait {
Expand Down Expand Up @@ -342,8 +342,8 @@ <h3 id="xlvp-multiple-msg">Multiple grids match the text, choose the right one:<
'<meta charset="utf-8"/>\n' +
'<meta name="viewport" content="width=device-width, initial-scale=1"/>\n' +
'<link rel="stylesheet" type="text/css" ' +
'href="https://viresh-ratnakar.github.io/exolve-m.css?v1.49"/>\n' +
'<script src="https://viresh-ratnakar.github.io/exolve-m.js?v1.49">' +
'href="https://viresh-ratnakar.github.io/exolve-m.css?v1.50"/>\n' +
'<script src="https://viresh-ratnakar.github.io/exolve-m.js?v1.50">' +
'<\/script>\n' +
'<\/head>\n' +
'<body>\n' +
Expand Down
9 changes: 4 additions & 5 deletions exolve.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
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;
Expand Down Expand Up @@ -7407,6 +7407,9 @@ <h2 id="${this.prefix}-title" class="xlv-title"></h2>
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 :
Expand Down Expand Up @@ -7965,10 +7968,6 @@ <h2 id="${this.prefix}-title" class="xlv-title"></h2>
}

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) {
Expand Down
4 changes: 2 additions & 2 deletions test-15x15-unsolved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-15x15</title>

Expand Down
4 changes: 2 additions & 2 deletions test-3d-small.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-3D-Small</title>

Expand Down
4 changes: 2 additions & 2 deletions test-3d-snake.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-3D Snake</title>

Expand Down
4 changes: 2 additions & 2 deletions test-3d.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-3D</title>

Expand Down
4 changes: 2 additions & 2 deletions test-4d-solved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-4D</title>

Expand Down
4 changes: 2 additions & 2 deletions test-basic-solved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-Basic</title>

Expand Down
4 changes: 2 additions & 2 deletions test-basic-unsolved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-Basic</title>

Expand Down
4 changes: 2 additions & 2 deletions test-big-grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-Big</title>

Expand Down
4 changes: 2 additions & 2 deletions test-color-scheme.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-Color-Scheme</title>

Expand Down
4 changes: 2 additions & 2 deletions test-columnar.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>

<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-Columnar</title>

Expand Down
4 changes: 2 additions & 2 deletions test-completion-notice.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-Completion-Notices</title>

Expand Down
4 changes: 2 additions & 2 deletions test-customize-puzzle.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<script>
function customizeExolve(p) {
Expand Down
4 changes: 2 additions & 2 deletions test-deleted-clues-solved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-4D-with-deletions</title>

Expand Down
4 changes: 2 additions & 2 deletions test-diagramless-solved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-Diagramless</title>

Expand Down
4 changes: 2 additions & 2 deletions test-diagramless-unsolved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-Diagramless</title>

Expand Down
4 changes: 2 additions & 2 deletions test-exolve-div.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-Exolve-Div</title>

Expand Down
4 changes: 2 additions & 2 deletions test-hindi.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>

<title>Test-Hindi</title>

Expand Down
6 changes: 3 additions & 3 deletions test-ipuz-solved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.49"/>
<script src="exolve-m.js?v1.49"></script>
<script src="exolve-from-ipuz.js?v1.49"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.50"/>
<script src="exolve-m.js?v1.50"></script>
<script src="exolve-from-ipuz.js?v1.50"></script>

<title>Test-Ipuz-Solved</title>

Expand Down
Loading

0 comments on commit 25ccaac

Please sign in to comment.