Sunday, October 31, 2010

wumpus-basic

Copperbox revision 1837.

I'm reworking the Graphic.Base types so that the functionals are "inside" the DrawingR newtype.

Previously I had:

> type LocGraphic u = Point2 u -> DrawingR (PrimGraphic u)

Now I have

> type LocGraphic u = DrawingR (Point2 u -> PrimGraphic u)

I'm hypothesizing that this change will generally make the code more uniform, however it is only a hypothesis. As far as I can tell, Conal Elliott's Vertigo used this second form (though it avoided wrapping functionals with newtypes).

Quite a lot of code is currently broken and there is quite a lot of old code in Graphic.Base that will need removing when I have everything working again.

Friday, October 29, 2010

wumpus-basic

Copperbox revision 1836.

I've added a new type provisionally called VecGraphic to Basic.Graphic.Base.

VecGraphic models graphics that take an initial point and return a new end point as well as drawing themselves. This is how text works in PostScript - drawing text takes the implicit current point (usually initialized with moveto) draws the text and adds the width vector of the text to the current point.

Unfortunately for Wumpus whilst this is a useful graphic type, Basic.Graphic.Base is becoming very ad-hoc with lots of similar but special purpose types. It would be nice if they were unified somewhat.

Thursday, October 28, 2010

wumpus-fontkit

Copperbox revision 1835.

Initial work on a demo to print tables for the "Core 14" PostScript fonts.

A note to self - Wumpus-Basic provides almost no help in generating tables except for the chains which still remain primitive. This area really needs improving, considerably.

Wednesday, October 27, 2010

wumpus

Copperbox revision 1833.

Updated the parser and data types to use AfmUnit, an new type added to Wumpus-Core.


Copperbox revision 1834.

Added a new type AfmUnit to the PtSise module. AfmUnit represents the measurement units in AFM files.

wumpus-fontkit

Copperbox revision 1832

More work on the parser it now extracts character metrics, which is its purpose.

Note - Subversion said this commit failed, but it seems to have reached the server and been accepted.

Tuesday, October 26, 2010

wumpus

Copperbox revisions 1830 & 1831.

I've deleted wumpus-fresh (revision 1830) and wumpus-shapes (revision 1831).

Wumpus-fresh was rolled into Wumpus-core quite a while ago. Wumpus-shapes has been incorporated into Wumpus-basic.

wumpus-fontkit

Copperbox revisions 1828 and 1829.

Toy-Font-Metrics is now called Wumpus-Fontkit.

The parser in Toy-Font-Metrics was looking quite flaky due to AFM files being very liberal and allowing user defined fields. So, instead of trying to make a general parser with a general syntax tree, I'm now making one just good enough for Wumpus and I've moved the code in with the Wumpus packages.

Blog Archive

About Me

My photo
Disambiguating biog as there are a few Stephen Tetley's in the world. I'm neither a cage fighter or yachtsman. I studied Fine Art in the nineties (foundation Bradford 1992, degree Cheltenham 1992 - 95) then Computing part-time at Leeds Met graduating in 2003. I'm the Stephen Tetley on Haskell Cafe and Stackoverflow.