From d3496090aedbbc7a36ea990b584fc21e7efe48c9 Mon Sep 17 00:00:00 2001 From: Viresh Ratnakar <39968616+viresh-ratnakar@users.noreply.github.com> Date: Fri, 26 Feb 2021 22:28:26 -0800 Subject: [PATCH] Exolve v1.06 --- exolve-from-ipuz.js | 10 +++++++-- exolve-from-puz.js | 9 ++++++-- exolve-m-simple.html | 6 +++--- exolve-m.css | 11 ++++++---- exolve-m.html | 6 +++--- exolve-m.js | 33 ++++++++++++++++++++++++++++- exolve-player.html | 26 ++++++++++++----------- exolve-widget.html | 4 ++-- exolve.html | 2 +- gussalufz-1-solved.html | 6 +++--- gussalufz-1-unsolved.html | 6 +++--- gussalufz-10-solved.html | 6 +++--- gussalufz-10-unsolved.html | 6 +++--- gussalufz-11-solved.html | 6 +++--- gussalufz-11-unsolved.html | 6 +++--- gussalufz-12-solved.html | 8 +++---- gussalufz-12-unsolved.html | 8 +++---- gussalufz-13-solved.html | 6 +++--- gussalufz-13-unsolved.html | 6 +++--- gussalufz-14-solved.html | 6 +++--- gussalufz-14-unsolved.html | 6 +++--- gussalufz-15-solved.html | 6 +++--- gussalufz-15-unsolved.html | 6 +++--- gussalufz-16-solved.html | 6 +++--- gussalufz-16-unsolved.html | 6 +++--- gussalufz-17-solved.html | 6 +++--- gussalufz-17-unsolved.html | 6 +++--- gussalufz-18-solved.html | 6 +++--- gussalufz-18-unsolved.html | 6 +++--- gussalufz-19-solved.html | 6 +++--- gussalufz-19-unsolved.html | 6 +++--- gussalufz-2-solved.html | 6 +++--- gussalufz-2-unsolved.html | 6 +++--- gussalufz-20-solved.html | 6 +++--- gussalufz-20-teaser-solved.html | 4 ++-- gussalufz-20-unsolved.html | 6 +++--- gussalufz-21-solved.html | 6 +++--- gussalufz-21-unsolved.html | 6 +++--- gussalufz-3-solved.html | 6 +++--- gussalufz-3-unsolved.html | 6 +++--- gussalufz-4-solved.html | 6 +++--- gussalufz-4-unsolved.html | 6 +++--- gussalufz-5-solved.html | 6 +++--- gussalufz-5-unsolved.html | 6 +++--- gussalufz-8-solved.html | 6 +++--- gussalufz-8-unsolved.html | 6 +++--- gussalufz-ixl-09-2020-solved.html | 4 ++-- gussalufz-ixl-09-2020-unsolved.html | 4 ++-- latc-temp.html | 6 +++--- ragitvach-1-solved.html | 6 +++--- ragitvach-1-unsolved.html | 6 +++--- ribelle-gussalufz-1-solved.html | 4 ++-- ribelle-gussalufz-1-unsolved.html | 4 ++-- test-hindi.html | 4 ++-- test-russian.html | 4 ++-- 55 files changed, 210 insertions(+), 163 deletions(-) diff --git a/exolve-from-ipuz.js b/exolve-from-ipuz.js index 59c284a3..c84da060 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.05 February 19 2021 +Version: Exolve v1.06 February 26 2021 */ /** @@ -39,7 +39,7 @@ Version: Exolve v1.05 February 19 2021 * - Clue directions other than Across and Down. * - Omitted cells (they get rendered as black cells). */ -exolveFromIpuz = function(ipuz, id=null) { +exolveFromIpuz = function(ipuz, id=null, fname='') { if (!ipuz['dimensions']) { console.log('ipuz: missing "dimensions"') return ''; @@ -66,6 +66,12 @@ exolveFromIpuz = function(ipuz, id=null) { exolve-id: ${id} exolve-width: ${w} exolve-height: ${h}` + if (!fname) { + fname = 'unknown' + } + exolve += ` + exolve-maker: + Converted by exolve-from-ipuz.js from ${fname}` if (ipuz['title']) { exolve += ` exolve-title: ${ipuz['title']}` diff --git a/exolve-from-puz.js b/exolve-from-puz.js index 865e86fe..7f0cc40d 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.05 February 19 2021 +Version: Exolve v1.06 February 26 2021 */ function exolveFromPuzNextNull(buffer, offset) { @@ -37,7 +37,7 @@ function exolveFromPuzNextNull(buffer, offset) { return offset; } -function exolveFromPuz(buffer, id=null) { +function exolveFromPuz(buffer, id=null, fname='') { const dotPuzShort = function(buffer, offset) { return (buffer[offset + 1] << 8) + buffer[offset]; } @@ -172,6 +172,9 @@ ${exolveGrid} } } + if (!fname) { + fname = 'unknown' + } if (!id) { id = `puzxlv-${Math.random().toString(36).substring(2, 8)}` } @@ -182,6 +185,8 @@ ${exolveGrid} exolve-title: ${title} exolve-setter: ${setter} exolve-copyright: ${copyright} + exolve-maker: + Converted by exolve-from-puz.js from ${fname} exolve-grid: ${exolveGrid} exolve-across: diff --git a/exolve-m-simple.html b/exolve-m-simple.html index 00b8230a..ce34f143 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.04 February 11 2021 +Version: Exolve v1.06 February 26 2021 --> - - + +