Coder Social home page Coder Social logo

adil192 / super_nonogram Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 25.82 MB

Home Page: https://supernonogram.adil.hanney.org/

License: GNU Affero General Public License v3.0

Kotlin 0.08% Swift 1.46% Objective-C 0.02% Dart 61.63% CMake 11.86% C++ 14.89% C 0.90% HTML 1.18% Java 0.42% Shell 3.69% Inno Setup 2.09% Ruby 1.76%
dart flutter nonogram procedural-generation

super_nonogram's Introduction

Super Nonogram

Get it on Google Play   Download on the App Store   Launch as web app   Download for Windows   Download on Flathub   Get it as an AppImage

This is a Flutter reimplementation of my old Nonogram web app.

It automatically generates boards based on your search term (images are sourced from Pixabay using the Pixabay API).

Translating

Extending existing languages

Check _missing_translations.json to see if any translations are missing.

  1. Use this link to edit _missing_translations.json.
  2. Update your _missing_translations.json file with your translations, e.g. updating German (de)
    "de": {
      "editor": {
        "newerFileFormat": {
          "title": "Diese Notiz wurde mit einer neueren Version von Super Nonogram bearbeitet",
          "subtitle": "Wenn du diese Notiz bearbeitest, können Daten verloren gehen. Möchtest du die Notiz trotzdem öffnen?",
          "openAnyway": "Trotzdem öffnen",
          "cancel": "Abbruch"
        }
      }
    },
    // ignore the other languages...
  3. Open a pull request! I'll do the rest

Adding a new language

  1. Look for your locale code here, e.g. hi for Hindi, fr for French, bn for Bengali, ar for Arabic, etc.
  2. Use this link to create a new file in lib/i18n/community/ called strings_XX.i18n.json where XX is your locale code.
  3. Copy the contents of an existing file like lib/i18n/strings.i18n.json and replace the translations with your own. If you don't know the translation for a string, just delete the line.
  4. Open a pull request!

Also see slang's Getting Started for more information.

super_nonogram's People

Contributors

adil192 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

flutter-preview

super_nonogram's Issues

Don't use Documents directory for storing data

Migrating this from the issue I previously made in the Flathub repository because it comes from behavior here in the main app.

This app currently creates a folder in the Documents directory for saving custom puzzles. That may be okay to do on Windows, but Linux for one is much more stringent about convention; the Documents directory is not a dumping ground for general data. It is for user documents.

You currently are using getApplicationDocumentsDirectory() to find a place to store files. I am not acclimated to Flutter at all, but I did a cursory search of its documentation. You probably want getApplicationSupportDirectory() instead; this will probably correspond to $XDG_DATA_HOME, which defaults to $HOME/.local/share for non-Flatpak apps and $HOME/.var/app/$APP_ID/data for Flatpak apps.

You can then remove xdg-documents create permissions. I'm surprised that Flathub's maintainers didn't catch this and advise you to change it before approving your submission.

Not all numbers in the column descriptions are visible

First of all: thank you for providing Linux and Flatpak suuport. Also, I apologize if I make any mistakes in this issue as it's the first time I open one.

I noticed that column numbers get cut off in the middle of the fourth number, as can be seen here, in the first two columns:
1

It's not much of a problem when there are only 4 numbers, but with > 4 it's impossible to see the 5th and beyond like below:
2

Here, the only unfinished column should be "2 1 1 2 1", buy only "2 1 1 2" is visible.
A similar problem can be seen below:
3

Here, the only unfinished column is "1 3 2 2 1", but the last "1" doesn't appear in the column description.

Tested on: Flatpak, AppImage and Web(Firefox) versions on Arch Linux with Gnome desktop, 1920x1080 and 4k monitors.

Feature Request: Secondary click to cross out squares

Hi there!

I see that the latest version in Flathub lets you cross out squares. I'm glad this exists now! It's crucial to be able to keep track of deductions and reason about what is where. But you have to select it as a separate mode on the bottom to do that. That's pretty unwieldy. The equivalent game in Simon Tatham's puzzle collection, Pattern, lets you mark a square as ineligible with a secondary click. On the unofficial Android port, it's a tap-hold.

Would you be willing to implement this functionality in this app? Thanks kindly for your time! 🙂

Tasks

  • Right click on desktop
  • Tap-hold on mobile

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.