<feed xmlns='http://www.w3.org/2005/Atom'>
<title>halibut/bk_ps.c, branch master</title>
<subtitle>My halibut tree</subtitle>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/'/>
<entry>
<title>Revamp of the Halibut error handling mechanism.</title>
<updated>2012-08-29T18:13:11+00:00</updated>
<author>
<name>Simon Tatham</name>
<email>anakin@pobox.com</email>
</author>
<published>2012-08-29T18:13:11+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=1489dc15967970576d08f3f2b22c6e1c939bcbcf'/>
<id>1489dc15967970576d08f3f2b22c6e1c939bcbcf</id>
<content type='text'>
I'm not quite sure why I ever thought it was a good idea to have a
central variadic error() function taking an integer error code
followed by some list of arguments that depend on that code. It now
seems obvious to me that it's a much more sensible idea to have a
separate function per error, so that we can check at compile time that
the arguments to each error call are of the right number and type! So
I've done that instead.

A side effect is that the errors are no longer formatted into a
fixed-size buffer before going to stderr, so I can remove all the
%.200s precautions in the format strings.

[originally from svn r9639]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I'm not quite sure why I ever thought it was a good idea to have a
central variadic error() function taking an integer error code
followed by some list of arguments that depend on that code. It now
seems obvious to me that it's a much more sensible idea to have a
separate function per error, so that we can check at compile time that
the arguments to each error call are of the right number and type! So
I've done that instead.

A side effect is that the errors are no longer formatted into a
fixed-size buffer before going to stderr, so I can remove all the
%.200s precautions in the format strings.

[originally from svn r9639]
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow a hastily selected subset of the output formats to also accept</title>
<updated>2009-10-24T09:33:21+00:00</updated>
<author>
<name>Simon Tatham</name>
<email>anakin@pobox.com</email>
</author>
<published>2009-10-24T09:33:21+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=6c481aff452a0eed147fc73144b461fe7c263d9e'/>
<id>6c481aff452a0eed147fc73144b461fe7c263d9e</id>
<content type='text'>
"-" as a special file name meaning standard output. I've restricted
it to just those output formats which can predictably output only
one file, just for the sake of not having to faff too much with the
others.

Probably what I should have done for all of this would have been to
write a set of wrappers around fopen, fclose and everything in
between, and use them everywhere. Those wrappers would uniformly
detect "-" and convert it into stdin or stdout as appropriate, would
avoid fclosing those files for real when told to close them, and
would also be able to handle reading a little bit of data from the
start of a file and then pushing it all back even if the file were
not seekable (which would allow input.c to lose the ugly special
case whereby it can't currently read font files from standard
input).

[originally from svn r8729]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"-" as a special file name meaning standard output. I've restricted
it to just those output formats which can predictably output only
one file, just for the sake of not having to faff too much with the
others.

Probably what I should have done for all of this would have been to
write a set of wrappers around fopen, fclose and everything in
between, and use them everywhere. Those wrappers would uniformly
detect "-" and convert it into stdin or stdout as appropriate, would
avoid fclosing those files for real when told to close them, and
would also be able to handle reading a little bit of data from the
start of a file and then pushing it all back even if the file were
not seekable (which would allow input.c to lose the ugly special
case whereby it can't currently read font files from standard
input).

[originally from svn r8729]
</pre>
</div>
</content>
</entry>
<entry>
<title>Make ps_token() more generally available and use it to improve the formatting</title>
<updated>2007-02-06T23:01:42+00:00</updated>
<author>
<name>Ben Harris</name>
<email>bjh21@bjh21.me.uk</email>
</author>
<published>2007-02-06T23:01:42+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=b5a4f7b65579a789743e5c039c7286cc9d8e24a1'/>
<id>b5a4f7b65579a789743e5c039c7286cc9d8e24a1</id>
<content type='text'>
of Type 42 fonts.

[originally from svn r7245]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
of Type 42 fonts.

[originally from svn r7245]
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for using TrueType fonts, including embedding in PostScript but</title>
<updated>2007-02-03T14:02:21+00:00</updated>
<author>
<name>Ben Harris</name>
<email>bjh21@bjh21.me.uk</email>
</author>
<published>2007-02-03T14:02:21+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=62be4468c8d814e5f66e5c2c7dc21a865bd91be3'/>
<id>62be4468c8d814e5f66e5c2c7dc21a865bd91be3</id>
<content type='text'>
not yet in PDF.  There's a lot of cleaning up to be done, especially in the
area of error, but I think it would be better committed gradually.

[originally from svn r7198]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
not yet in PDF.  There's a lot of cleaning up to be done, especially in the
area of error, but I think it would be better committed gradually.

[originally from svn r7198]
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for PFB files.  This seems to have caused me to completely</title>
<updated>2007-01-27T20:47:41+00:00</updated>
<author>
<name>Ben Harris</name>
<email>bjh21@bjh21.me.uk</email>
</author>
<published>2007-01-27T20:47:41+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=72d22e8a1a1b47635e1b8da49ae703bde01228f2'/>
<id>72d22e8a1a1b47635e1b8da49ae703bde01228f2</id>
<content type='text'>
rewrite the Type 1 font support, and I'm sure the result is more complex
than it needs to be, but it seems to work correctly, so I shouldn't
complain.

[originally from svn r7175]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rewrite the Type 1 font support, and I'm sure the result is more complex
than it needs to be, but it seems to work correctly, so I shouldn't
complain.

[originally from svn r7175]
</pre>
</div>
</content>
</entry>
<entry>
<title>Overhaul of glyph-name handling in the paper backends.  Before, we had</title>
<updated>2007-01-06T17:32:34+00:00</updated>
<author>
<name>Ben Harris</name>
<email>bjh21@bjh21.me.uk</email>
</author>
<published>2007-01-06T17:32:34+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=30ca2bdcde0675a2d52a9decf9dce73e57fdcee1'/>
<id>30ca2bdcde0675a2d52a9decf9dce73e57fdcee1</id>
<content type='text'>
a separate dense array of glyph names for each font, and referenced glyphs
by indicies into that array, which meant that the array had to be set
up before we could generate any indices.  Now we have an overall array of
glyph names, and use the same glyph indicies for all fonts.  Some arrays
have had to turn into tree234s as a result.

[originally from svn r7061]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
a separate dense array of glyph names for each font, and referenced glyphs
by indicies into that array, which meant that the array had to be set
up before we could generate any indices.  Now we have an overall array of
glyph names, and use the same glyph indicies for all fonts.  Some arrays
have had to turn into tree234s as a result.

[originally from svn r7061]
</pre>
</div>
</content>
</entry>
<entry>
<title>Tweak /OUT pdfmark generation -- PLRM suggests that constructing a large</title>
<updated>2006-12-12T21:51:33+00:00</updated>
<author>
<name>Ben Harris</name>
<email>bjh21@bjh21.me.uk</email>
</author>
<published>2006-12-12T21:51:33+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=71f99d5b3a6361ee2fd937799293d9e5c18c4164'/>
<id>71f99d5b3a6361ee2fd937799293d9e5c18c4164</id>
<content type='text'>
executable array is likely to use lots of stack space, which might be bad on
Level 1 interpreters, so use the same mechanism as for other pdfmarks and
have a procedure that does nothing if pdfmark isn't defined.

[originally from svn r6995]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
executable array is likely to use lots of stack space, which might be bad on
Level 1 interpreters, so use the same mechanism as for other pdfmarks and
have a procedure that does nothing if pdfmark isn't defined.

[originally from svn r6995]
</pre>
</div>
</content>
</entry>
<entry>
<title>Rough-and-ready line wrapping for PostScript, to keep us below the DSC-mandated</title>
<updated>2006-12-12T00:13:59+00:00</updated>
<author>
<name>Ben Harris</name>
<email>bjh21@bjh21.me.uk</email>
</author>
<published>2006-12-12T00:13:59+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=4c2f461fc355561b93e611a636c7442514b354b1'/>
<id>4c2f461fc355561b93e611a636c7442514b354b1</id>
<content type='text'>
255 characters per line (excluding newline characters).  In fact, it tries to
keep us below 80 characters so as to make the PostScript more readable (and
demonstrate that it's working).

[originally from svn r6993]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
255 characters per line (excluding newline characters).  In fact, it tries to
keep us below 80 characters so as to make the PostScript more readable (and
demonstrate that it's working).

[originally from svn r6993]
</pre>
</div>
</content>
</entry>
<entry>
<title>Explicitly set the title via pdfmark, since that allows us to put</title>
<updated>2006-12-10T22:11:35+00:00</updated>
<author>
<name>Ben Harris</name>
<email>bjh21@bjh21.me.uk</email>
</author>
<published>2006-12-10T22:11:35+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=19ae561fd24807b29806a65eb974f8826f7cbbf9'/>
<id>19ae561fd24807b29806a65eb974f8826f7cbbf9</id>
<content type='text'>
in Unicode, which we can't (reliably) in %%Title.

[originally from svn r6987]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
in Unicode, which we can't (reliably) in %%Title.

[originally from svn r6987]
</pre>
</div>
</content>
</entry>
<entry>
<title>Specify the /Border of /ANN pdfmarks correctly.</title>
<updated>2006-12-07T14:00:12+00:00</updated>
<author>
<name>Ben Harris</name>
<email>bjh21@bjh21.me.uk</email>
</author>
<published>2006-12-07T14:00:12+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/halibut/commit/?id=dc9478059884bc1c21780bdefa6b340650711f3f'/>
<id>dc9478059884bc1c21780bdefa6b340650711f3f</id>
<content type='text'>
[originally from svn r6968]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[originally from svn r6968]
</pre>
</div>
</content>
</entry>
</feed>
