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 --> - - + +