Switch branches/tags
Nothing to show
Commits on Apr 16, 2014
  1. update swatch to write .ase files in both py2/3

    nsfmc committed Apr 16, 2014
    due to my misremembering of how bytes and strings work in python 3,
    the previous commit never really worked in python3.x for a variety
    of reasons, mostly due to my loosey-goosey handling of string and
    bytes. this makes it more consistent.
    updates lots of documentation and also documents part of the
    writer's internals, even though those are far more obvious and the
    code is pretty clear on that front.
    adds in two more test cases which the previous versions missed:
    1. a swatch file with only one color. this catches two important
    issues: the left padded string being written out incorrectly and
    the color mode/rgb/etc not matching the keys in the mode index.
    2. a swatch with a folder and one color, mostly here so that it
    can be tested to see if the folder-writing code is broken in a
    small test-case.
    the other tests are sort of ridiculous test harnesses since they're
    really overkill. maybe i'll change that, but it's nice to have some
    test on real legitimate style swatches.
  2. WIP

    nsfmc committed Apr 16, 2014
Commits on Mar 24, 2014
  1. allow writer to deal with color groups

    nsfmc committed Mar 24, 2014
    fixes chunk_count to == '2 + number of swatches in color group'
    since the group's terminator implicitly adds another chunk to the mix.
    adds `swatch.dump(obj, fp)` and `swatch.write(obj, filename)` each of
    which are convenience methods for swatch.dumps.
    adds unit tests for the writer to ensure that a parsed json file can
    be rewritten to an identical ase file.
Commits on Mar 23, 2014
Commits on Mar 22, 2014
  1. parse other types of swatch objects (rgb, cmyk, lab)

    nsfmc committed Mar 22, 2014
    the only thing holding this back was the ability to correctly pad
    the color mode, it otherwise works just the same as with the gray
  2. writer can produce Gray swatches

    nsfmc committed Mar 22, 2014
    it doesn't support any color modes other than gray
    and it doesn't yet support color groups
  3. add a `swatch.dumps` method which builds a well-formed ASE header

    nsfmc committed Mar 22, 2014
    it does not do any checking of the input object, it just writes the main header that indicates how many blocks you're about to consume'
Commits on Jun 29, 2013
Commits on Dec 30, 2012
Commits on Dec 28, 2012
  1. fix missing double in readme

    nsfmc committed Dec 28, 2012
  2. remove é from README

    nsfmc committed Dec 28, 2012
Commits on Dec 27, 2012
  1. add 'type' field to all objects

    nsfmc committed Dec 27, 2012
    type may be ["Color Group"|"Spot"|"Global"|"Process"]. Most swatches will be process colors. Spot and Global follow the definitions in the illustrator docs
    all text in the dict is wrapped in unicode()
  2. update docs

    nsfmc committed Dec 27, 2012
  3. initial commit

    nsfmc committed Dec 27, 2012