This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: Best practise: Directories and location of images
- From: Vitaly Ostanin <vyt at vzljot dot ru>
- To: "Kenneth Johansson" <ke-joh at sectra dot se>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 8 Oct 2003 17:18:13 +0400
- Subject: [docbook-apps] Re: Best practise: Directories and location of images
- References: <20031007192002.0f1ab1b1.vyt@vzljot.ru><OF24461597.1D98BAF3-ONC1256DB9.004549F7@sectra.se>
On Wed, 8 Oct 2003 14:40:40 +0200
"Kenneth Johansson" <ke-joh@sectra.se> wrote:
> Hi,
Hi!
> I'm not sure I understand how you're managing your images. The
> "path-to-document-image.ext", is it a file filled with image
> references?
If I write document about Psi and include screenshot about main
window:
Main document about Psi:
user/network/instant-messaging/jabber/psi/psi.xml
Screenshot image:
user/network/instant-messaging/jabber/psi/images/user-network-in
stant-messaging-psi-main-window.png
Such long names for image files can garant what all images is
uniq. Separator "-" used since TeX and passivetex works only witn
image files with one dot in filename (for determining extension).
For shortest point to images we use entities
<!ENTITY BASEIMAGES
"images/user-network-instant-messaging-jabber-psi">
and href to image like:
<graphic fileref="&BASEIMAGES;-main-window.png"/>
When we build all document from modular sources, Makefile do:
html-dir-images:
mkdir -p $(HTML_DIR)/images
-cp -f $(shell xsltproc $(XSLTPROC_PARAMS) \
$(XSL_DIR)/common/collect_images.xsl $(XML)) $(HTML_DIR)/images
All modular document has href to dir "images/" and global
document also href to dir "images/". Therefore all modular parts
must have same dirname for images.
> How does it look?
>
> What do you mean by "collecting images"?
It's process for finding all images used in modular parts and
copying it to "output/images" dir.
<skipped/>
--
Regards, Vyt
mailto: vyt@vzljot.ru
JID: vyt@vzljot.ru
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.