Showing posts with label text procedure. Show all posts
Showing posts with label text procedure. Show all posts

Wednesday, June 2, 2010

ActionScript3 TextField

Over at http://as3.aule-browser.com/ I have been looking at ActionScript3 in SWF as a web-content language for text.

Text cannot be handled as it is in a Curl declarative-style file, but there are alternatives such as JSON (which Curl also handles well.)

The first challenge was in alignment of text: if a TextFormat is applied across only a range of a piece of text, the Flash TextField alignment, margins and indents break in peculiar fashion.

Anything that will use word-wrap should be multi-line with a TextFormat that is set with no range supplied.

The first thing you may miss are the Curl units which are not pixels.

If you build a Flex application instead of Flash (I am using FlashDevelop) there are other components available such as VBox, HBox and TExtArea much as in Curl.

It is hard to find anything to rival the Curl "live-code documentation" in the Curl IDE, but in the end the glitches ironed-out wrinkle-free.

Wednesday, May 26, 2010

Curl markup: marginal glosses for Galileo's Starry Messenger

Over at http://phil.aule-browser.com/ there is now a link to a Curl markup of Galileo's Starry Messenger (or Sidereal Messenger or Sidereus Nuncius) of 1610.

The onerous task was restoring the marginal glosses. When the text of a volume at Wellesley College was scanned into Google Books, the resulting PDF is quite readable but slow to load and includes a text by Kepler.  When text is extracted from the PDF, the result is a terrible mess due to the scanning of the marginalia.

The glosses are now restored using Curl markup with a custom definition of a text procedure {gloss } but they are not yet located in the margins next to the related text: they are in the margin immediately before the text.

Links to a few of the most significant glosses are at the top of the first page

The Curl runtime browser plugin (the Surge RTE) is required to view Galileo's text.  The illustrations will be restored at a later date.