[NTG-context] %%BoundingBox: (atend)

George N. White III ntg-context@ntg.nl
Wed Jun 2 14:13:33 CEST 2004


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---1912466248-1533756096-1086182013=:107538
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Tue, 1 Jun 2004, Hans Hagen wrote:

> At 14:24 30/05/2004, you wrote:
>> Hello,
>> ConTeXt does not find the EPS-BoundingBox in EPS files generated by 
>> xmgrace.
>> Such a file begins like this:
>> 
>> %!PS-Adobe-3.0 EPSF-3.0
>> %%BoundingBox: (atend)
> [...]
>> If not, I'm going to write a script, that converts the file.
>
> if you have a small demo file i can add that feature to texutil

I'd suggest adopting some of the conventions used by the
LaTeX2e graphics bundle, in particular, to look for the 
BoundingBox in filename.(e)ps.bb.

Rather than making texutil more complex a separate tool (findbb, attached)
that reliably writes the bbox by trying several methods, even using the 
ghostscript bbox device to generate one (e.g., in the case of files 
created with dvips -E that get incorrect BoundingBox entries because the 
dvips calculation ignores things drawn by \specials).

Try "findbb xmgracefile.ps > xmgracefile.ps.bb"

--
George N. White III  <aa056@chebucto.ns.ca>
   Head of St. Margarets Bay, Nova Scotia, Canada
---1912466248-1533756096-1086182013=:107538
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=findbb
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SGI.4.60.0406021013330.107538@montigo.bio.dfo.ca>
Content-Description: unix ksh script (should work with bash) to find BoundingBox
Content-Disposition: attachment; filename=findbb

IyEgL2Jpbi9rc2gNCiMgZmluZGJiIC0tIHdyaXRlIFBvc3RTY3JpcHQgQm91
bmRpbmdCb3ggdG8gc3Rkb3V0DQoNCiMgTm90ZXM6DQoNCiMgMC4gVGhlICct
YicgZmxhZyBjYW4gYmUgdXNlZCB3aXRoIC5wZGYgZmlsZXMuDQoNCiMgMS4g
KGUpcHMgZmlsZXMgbWF5IGNvbnRhaW4gYmluYXJ5IHByZXZpZXcgaW1hZ2Vz
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
JykgfHwgZXhpdCAxDQogICAgIDs7DQplc2FjDQoNCmNhc2UgIiQjIiBpbg0K
MXwyKSAjIGhhbmRsZSAnXiUlQm91bmRpbmdCb3g6KGF0ZW5kKScgYW5kICde
JSVCb3VuZGluZ0JveDogKGF0ZW5kKScNCiAgIGNhc2UgIiQxJDIiIGluDQog
ICAlJUJvdW5kaW5nQm94OlwoYXRlbmRcKSkgcHJpbnQgLXUyICIkcGdtIC0t
IGxvb2tpbmcgJ2F0ZW5kJyINCiAgICAgICBiYm94PSQodGFpbCAtLWJ5dGVz
PTUwMDAgJGZubSB8IHRyICdbXDAxMlwwMTVdJyAnXDAxMicgXA0KICAgICAg
ICAgICAgfCBncmVwICdeJSVCb3VuZGluZ0JveDonfHRhaWwgLTEpDQogICAg
ICAgOzsNCiAgICopDQogICAgICAgcHJpbnQgLXUyICIkcGdtIGZhaWxlZCB0
byBmaW5kIEJvdW5kaW5nQm94IiA7IGV4aXQgMQ0KICAgICAgIDs7DQogICBl
c2FjDQogICA7Ow0KNHw1KSAjIGhhbmRsZSBCb3VuZGluZ0JveDpOTiAuLi4g
YW5kIEJvdW5kaW5nQm94OiBOTiAuLi4NCiAgIGNhc2UgIiQxJDIiIGluDQog
ICAlJUJvdW5kaW5nQm94OiopICAgYmJveD0iJEAiDQogICAgICAgOzsNCiAg
ICopDQogICAgICAgOzsNCiAgIGVzYWMNCiAgIDs7DQoqKSBwcmludCAtdTIg
IiRwZ20gZmFpbGVkIHRvIGZpbmQgQm91bmRpbmdCb3gsIHRyeSBzZXR0aW5n
ICctYicgZmxhZy4iIDsgZXhpdCAxDQogICANCmVzYWMNCnByaW50ICIkYmJv
eCINCg==

---1912466248-1533756096-1086182013=:107538--



More information about the ntg-context mailing list