Code Monkey home page Code Monkey logo

Comments (2)

arlogy avatar arlogy commented on June 25, 2024

The source code in the src/ directory belongs to the author of this repository but is released under the MIT license. So you can do whatever you want with it according to said license agreements: basically, you can not change the license of the original work, but changes to it can be released under specific license agreements. Also, the safest way to use this tool for your thesis needs would be to just mention it, state your changes, and provide instructions on how to merge them into (or run them using) the tool.

Besides, I have improved this tool in one of my Github repositories named nvc which stands for Network View Controller. It provides an API-like interface for developers to use, so you might want to take a look at it for your thesis work.

Hope this answer helps!

from fsm.

arlogy avatar arlogy commented on June 25, 2024

Following our little discussion, I realized that you're using Network View Controller in your Finite Automaton Recognizer to render automata recognized from hand-drawn ones... Now that stable releases are available for nvc, I'd like to share a contextual approach to using the latest version of the tool in your project. Said version is currently 1.1.1 and provides stand-alone HTML examples (among other changes inherited from previous versions recorded in CHANGELOG.md). Please read on if you are interested.

'frontend' directory of your project

  • Clear the content of the directory.
  • Add README.md file with the following Markdown text for example.

text begins here (you can ignore unnecessary newlines)

This directory contains standalone HTML examples taken from nvc version 1.1.1. Said examples were obtained as follows according to the documentation.

... # download or git clone/checkout nvc source code targeting the version stated above
cd nvc # navigate to the directory containing nvc source code
npm install
npm run examples:html:update # update HTML examples with latest dependencies
... # copy the content of examples/html_pages from nvc into this directory

text ends here

At this point, the following data should have been copied into the frontend directory of your project.

  • File examples/html_pages/01_basic.html → File frontend/01_basic.html
  • File examples/html_pages/02_advanced.html → File frontend/02_advanced.html
  • Directory examples/html_pages/api_files → Directory frontend/api_files

'recognition/IO/0_frontend.html' file of your project

  • Replace the content of the file with that of frontend/01_basic.html created earlier.
  • Replace the first comment in the file as follows, for example.
<!-- HTML file for viewing recognized automata.
     Adapted from ../../frontend/01_basic.html. -->
  • Replace ./api_files with ../../frontend/api_files in the file.
  • Add <script src="./output.js"></script> right after the script tag pointing to nvc_quick.js in the file.
  • Replace the following line in the file as shown below.

what to replace

                    // allow the user to see all nodes and text items but not necessarily links

replacement

                    // load the JSON data generated for the previously recognized automaton (see output.js)
                    Nvc.quick.outputText(json);
                    Nvc.quick.loadJsonFromOutput();

                    // allow the user to see all nodes and text items but not necessarily links

What else?

The changes suggested above, which I figured out by following the latest Git commits regarding your project's frontend, assume that nvc is not used anywhere else in the project. If this is not the case, please take the necessary steps accordingly. All the best!

from fsm.

Related Issues (20)

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.