FeatPost Deeper Technicalities

original image
despeckled two times
result of mkbitmap
result of potrace -a 1.334 -O 0.8 -t 40
result of pstoedit -f mpost and my lex scanner
result of editing by hand
now enter FEATPOST

1. Assign positions in space to four or more photo points.

2. Give an initial guess about the position of the camera in space (f), the point aimed by the camera (viewcentr), the magnification factor (Spread) and the position of the aimed point on the photo paper (ShiftV).

3. Introduce the macro photoreverse in the MetaPost photo source.

4. Do annotations in the photographed space.
The annotations on the above image are black lines. The same annotations produce the blue lines if the macro photoreverse is not used and the initial guess is not improved.

Typesetting in Space

Thanks to Hans Hagen, Ton Otten and Tobias Burnus there is now a very convenient way to convert text to MetaPost paths. These paths my be overlaied on curved analytic surfaces with the aid of FeatPost macro closedpathinspace. Here is an example: eemcsblabla.1

First, you wil need the following files:
mp-grph.mp
makempy.pl
mp-tool.mp
You may get them from the CONTEXT package cont-tmf.zip.
The MPY manual may help.

Second, run mpost example.mp
This is one way of getting the text.

Third, run perl makempy.pl example --noclean
This will produce the MetaPost program mpy-example.tmp
that contains the text as paths
(pstoedit must be installed).

Fourth, run mpost mpy-example.tmp

Fifth, run PstoeditMpostPreeditor < mpy-example.tmp > examplePMP.mp
where PstoeditMpostPreeditor is the executable compiled from my lex scanner (compile with
flex -o PstoeditMpostPreeditor.c PstoeditMpostPreeditor.lex
gcc PstoeditMpostPreeditor.c -o PstoeditMpostPreeditor -ll
)

Sixth, modify examplePMP.mp, for instance, like
eemcsblabla.mp


L. Nobre G.
Last modified: Fri Apr 13 15:17:27 WEST 2012