Brian: the html page I saved was the html from the
https://www.sudoku-puzzles-online.com/cgi-bin/hexadoku/print-a-grid-hexadoku.cgi
page which in turn was generated from the [print] button at
https://www.sudoku-puzzles-online.com/hexadoku/print-hexadoku.php

Looking at 
view-source:https://www.sudoku-puzzles-online.com/cgi-bin/hexadoku/print-1-grid-hexadoku.cgi,
it's using id='grid' instead of id="grid" but if you're fine using
copy and paste, I have no objection to that.

(I was thinking of maybe using httpget to automate the retrieval of
puzzles, but there's a lot of possibilities here, and different people
have different approaches.)

Thanks,

-- 
Raul

On Fri, Jun 24, 2022 at 11:51 AM Brian Schott <schott.br...@gmail.com> wrote:
>
> Raul,
>
> Your script for parsing the printed grid looks very effective, but I could
> not find an example html page at
> https://www.sudoku-puzzles-online.com/ to try it with.
>
> Instead I found a page like the following one and simply
> selected/highlighted the grid from the screen and copy-pasted that into
> vim. Then I globally replaced tab characters with null characters
> using :%s/^I//g and got usable text. This is not very j-like, but it worked
> in a pinch.
>
> https://www.sudoku-puzzles-online.com/cgi-bin/hexadoku/print-1-grid-hexadoku.cgi
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to