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

    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.
    committed Apr 16, 2014
  2. WIP

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

    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.
    committed Mar 24, 2014
Commits on Mar 23, 2014
Commits on Mar 22, 2014
  1. parse other types of swatch objects (rgb, cmyk, lab)

    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
    swatches
    committed Mar 22, 2014
  2. writer can produce Gray swatches

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

    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'
    committed Mar 22, 2014
Commits on Jun 29, 2013
Commits on Dec 30, 2012
Commits on Dec 28, 2012
  1. fix missing double in readme

    committed Dec 28, 2012
  2. remove é from README

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

    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()
    committed Dec 27, 2012
  2. update docs

    committed Dec 27, 2012
  3. initial commit

    committed Dec 27, 2012