rschroll / crosswords Goto Github PK
View Code? Open in Web Editor NEWCrossword client for Ubuntu
Home Page: http://rschroll.github.io/crosswords
License: GNU General Public License v3.0
Crossword client for Ubuntu
Home Page: http://rschroll.github.io/crosswords
License: GNU General Public License v3.0
Accessing the menu when solving a puzzle on Firefox mobile causes the keyboard to be inaccessible. User must exit and reenter puzzle to access keyboard.
The .puz format seems to be widely used. It's a binary format, but most of it is just text. Hopefully it could be processed with ArrayBuffers. Here's a reverse-engineering of the format: http://code.google.com/p/puz/wiki/FileFormat
The grid should be zoomable and panable, like Google Maps. With a mouse, click and drag should pan, while the mouse wheel should zoom. On a touch device, touch and drag should pan, while pinch should zoom. A simple click or touch should still just select a cell.
I'm not sure if the SDK already provides an element for this. If so, it will impact the solution to #1.
This is an upstream bug and is being tracked as #1296463. There's a fix available, but it hasn't made it into trunk yet.
Opening the puzzle page should open the OSK for devices without physical keyboards.
in web version, rather than picking my own .puz file from a menu (Import File)
is it possible, to either invoke a specific puzzle via command line, e.g., ?url=somepath/.puz
or in a stub HTML file with call to a Javascript function and url parameter?
thx
Steve
This has been reported upstream as #1296469. There doesn't seem to be any progress on it, though.
Not sure if this is the place for this (apologies if not) but as a teacher setting crosswords for revision purposes what would be good would be
To keep the list from overflowing with old puzzles, we should let the user delete them when done with them. The code is easy; they UI less so. The swipe-to-delete pattern would be a good fit here, but we have to wait on the API.
It's really weird. Why don't you have the package.json
file there?
Check it out how I'm doing it. https://github.com/Piterden/vue-crossword
I have always updated deps and don't need to store them in repo/
This shouldn't be hard to do. I just have to figure out how they're represented in the files.
BQ Aquaris M10 FHD Ubuntu Edition tablet
This app first stopped working when I did the OTA-12 update on 28 July 2016.
I ran the OTA-13 update on about 20 September 2016. Unfortunately, the Crosswords app still doesn't work.
Right now, the grid is a table, and zooming is done through the (non-standard) CSS zoom
property. This leads to a lot of jumpiness, apparently because the table gets laid out each time the zoom changes, and gets a different width in the process. I don't know why, but there's a few things we might do to correct this.
We could use the CSS transform: scale()
property instead. Changing this doesn't seem to trigger new layouts, but it is imperfect - we get white seams at the edge of black blocks. This can be avoided by using a 3d transform, but this leads to blurriness on zooming, since everything's done by the GPU with a bitmap.
We could avoid table layout by making all the elements block
s or inline-block
s. But there's still some jumpiness on zooming, for reasons I don't understand. We also end up with inconsistent line widths in the zoom.
We could do the zoom manually, by explicitly setting the size of the cells and the font inside. It should make each layout nicer, but zooming might not feel so smooth.
We could give up on doing this in HTML and do the layout in SVG instead.
The right choice may depend on #2 as well.
Attempting to load The Week puzzles results in Server status 404 errors.
The latest of these puzzles could be loaded in the past but over time the latest puzzle moved further and further down the list of puzzles until it disappeared at the bottom.
Currently, we're using a check mark for all three. We can keep using that for one of them (probably Check), but we need icons for the other two. I haven't seen any built-in icons that seem appropriate, so we'll need to make our own.
When entering a double letter like "EE", the first E will be registered, but the second ignored. Happens across multiple clues (if one ends in "E" and the next one entered starts with "E", the second keystroke will be ignored).
On line 50 of the index.html, we have a js import for cordova.js. You can see this on the live page here: http://rschroll.github.io/crosswords/www/index.html
In Chrome, at least, this is showing as an error (as cordova.js does not exist in www/).
We should save puzzles to U1DB, so you can pick up where you left off on another device. But we can't do this until there's a Javascript binding to U1DB.
Several problems with using the HTML5 launcher on the desktop have been reported upstream:
#1293898: The toolbar cannot be hidden or revealed.
#1294981: Mouse wheel events cannot be caught.
#1294985: Drag events cannot be caught.
I doubt that any of these will be fixed in a timely manner, so for now, the crosswords script provides a better environment.
I'd love it if some cryptic crossword sources were added.
I looked around online, but couldn't find any that published in the .puz format. :( Maybe you'll happen upon some in the course of normal crossword searching.
Thanks for considering it!
Rarely, crosswords include cells that are filled in with a symbol, instead of a letter. We should figure out how to support this. Note that realizing this point is part of the puzzle, so we can't give it away by including special instructions.
When I run 'make tar', unpack the tarball, and go to index.html in Chrome, I get a blank page and in the console, this error:
Uncaught TypeError: riot.tag2 is not a function
at tags.js:6
I noticed that in http://rschroll.github.io/crosswords/www/tags.js, this line is "riot.tag(...)" rather than "riot.tag2(...)". Manually search-and-replacing that in tags.js does get the page to display the menu, but going to a particular crossword does in fact display the first page but many other JS errors ensue. I suspect some kind of issue with a newer riot than was used to make the github one.
Version info:
$ npm -v
3.5.2
$ node -v
v4.2.6
$ riot -v
riot-cli: 3.0.2 - https://github.com/riot/cli
riot-compiler: 3.2.4 - https://github.com/riot/compiler
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.