larsenwork / monoid

Customisable coding font with alternates, ligatures and contextual positioning. Crazy crisp at 12px/9pt. http://larsenwork.com/monoid/
7.86k stars 170 forks source link

Adding DropCAltAndLiga to build.py #44

Closed larsenwork closed 9 years ago

larsenwork commented 9 years ago

@chase brilliant work on updating the script. I'll try re-adding the calt today. Is this correct for the build.py script:

# no calt
option('nocalt', 'Turn off contextual alternates', DropCAltAndLiga())
chase commented 9 years ago

Should be, never actually gave it a try, haha.

larsenwork commented 9 years ago

I just tried it and didn't seem to work:

for file in ./Source/Monoid*.sfdir; do . Scripts/parallel_build.sh $file; done
Total Nodes: 4
Current Node: 0
Traceback (most recent call last):
  File "./Scripts/build.py", line 50, in <module>
    option('nocalt', 'Turn off contextual alternates', DropCAltAndLiga())
  File "/data/Scripts/fontbuilder.py", line 167, in DropCAltAndLiga
    return swap_op
NameError: global name 'swap_op' is not defined
lxc-start: The container failed to start.
lxc-start: Additional information can be obtained by setting the --logfile and --logpriority options.
Total Nodes: 4
Current Node: 0
Traceback (most recent call last):
  File "./Scripts/build.py", line 50, in <module>
    option('nocalt', 'Turn off contextual alternates', DropCAltAndLiga())
  File "/data/Scripts/fontbuilder.py", line 167, in DropCAltAndLiga
    return swap_op
NameError: global name 'swap_op' is not defined
lxc-start: The container failed to start.
lxc-start: Additional information can be obtained by setting the --logfile and --logpriority options.
Total Nodes: 4
Current Node: 0
Traceback (most recent call last):
  File "./Scripts/build.py", line 50, in <module>
    option('nocalt', 'Turn off contextual alternates', DropCAltAndLiga())
  File "/data/Scripts/fontbuilder.py", line 167, in DropCAltAndLiga
    return swap_op
NameError: global name 'swap_op' is not defined
lxc-start: The container failed to start.
lxc-start: Additional information can be obtained by setting the --logfile and --logpriority options.
Total Nodes: 4
Current Node: 0
Traceback (most recent call last):
  File "./Scripts/build.py", line 50, in <module>
    option('nocalt', 'Turn off contextual alternates', DropCAltAndLiga())
  File "/data/Scripts/fontbuilder.py", line 167, in DropCAltAndLiga
    return swap_op
NameError: global name 'swap_op' is not defined
lxc-start: The container failed to start.

lxc-start: Additional information can be obtained by setting the --logfile and --logpriority options. for file in ./Source/Monoid*.sfdir; do . Scripts/parallel_build.sh $file; done returned exit code 1

any ideas?

chase commented 9 years ago

Yep, forgot to change swap_op on the return to the name it needed.

chase commented 9 years ago

Should work now. Give it another try.

larsenwork commented 9 years ago

Thanks, will do - with DropCAltAndLiga() enabled?

chase commented 9 years ago

Right. Worst case it doesn't work, then you have to remove it and it runs another build.

larsenwork commented 9 years ago

Ok, running now :)

chase commented 9 years ago

Looks like it is working too. Considering the only bug was a small typo, I'm pretty happy, haha.

larsenwork commented 9 years ago

yep, looks perfect