GithubHelp home page GithubHelp logo

twice-baked-text's Introduction

Twice-baked Text

This is a command-line tool that converts <text> elements inside

How to use

Installation

  1. Install Inkscape and make sure it’s in your PATH.
  2. Download this repo somehow [TODO]
  3. npm i to install. (Or yarn if you have it.)

Configuration

Right now, you change settings.js:

  • input — the folder that holds the SVG files to convert.

  • output — the folder to write the converted SVGs into.

  • verbose — the software chats about what it’s doing every step of the way. Beware, Inkscape can be really chatty.

  • inkscapePath — if calling just the command inkscape doesn’t work for some reason, put the path to the Inkscape binary here. For example, the default install of certain versions of Inkscape on MacOS may work if you change this to /Applications/Inkscape.app/Contents/Resources/bin/inkscape-bin.

  • replacementClass — after Inkscape turns your <text> elements into <path>s, what class should it add to them?

Actually doing the thang ding

node ./twice-bake-text.js

A real CLI (command-line interface) would be cool, but only if enough people find this useful.

Feedback

If the performance is too slow for you, please let me know. My 4GB/1.6GHz MacBook Air chewed through 10,000 SVGs in 4 minutes — but most of that was waiting for Inkscape, so I’m not sure if I can do anything about that.

twice-baked-text's People

Stargazers

 avatar

Watchers

James Cloos avatar Taylor Hunt 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.