Coder Social home page Coder Social logo

alexcoder04 / nspire-merge Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 9 KB

Merging Lua source files and resources for TI-Nspire projects

License: MIT License

Python 76.06% Makefile 6.22% Roff 17.72%
ti-nspire lua ti-nspire-calculators calculator nspire python nspired-lua

nspire-merge's Introduction

nspire-merge

This Python script merges multiple Lua source files and images into one Lua file for TI-Nspire projects.

This project is inspired by DaveDuck321's TI-Resource-Merge (MIT license) and uses its image conversion mechanism, however the rest was re-written from scratch to provide a more stable CLI interface and more options.

The generated file can be either pasted into TI Student Software or be compiled using Luna.

Usage

usage: nspire-merge [-h] [--resources RESOURCES] [--out OUT] [--strip] [--api-version API_VERSION] input_files [input_files ...]

positional arguments:
  input_files           specify input files

options:
  -h, --help            show this help message and exit
  --resources RESOURCES
                        load images from folder (default 'res/')
  --out OUT             write output to file (default 'out.lua')
  --strip               strip out blank lines and comments
  --api-version API_VERSION
                        specify api version (default '2.2')

Note: api version 2.2 is the last version that supports inline-images. For newer versions, you would need to paste the code into the TI Student Software and import images manually.

Installation

Requirements

  • PIL / Pillow

Can be installed using make deps.

Installing through the AUR on Arch Linux

This project is available on the AUR as nspire-merge. Either install it manually or use an AUR helper of your choice.

Install using make

Install the script to /usr/local/bin:

sudo make install

Uninstalling

sudo make uninstall or sudo rm -vi /usr/local/bin/nspire-merge /usr/local/share/man/man1/nspire-merge.

nspire-merge's People

Contributors

alexcoder04 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.