Re: [Gimp-user] Programmatically modifying text in .xcf files.

2007-07-26 Thread mal content
On 26/07/07, John R. Culleton [EMAIL PROTECTED] wrote:
 If you are on a Linux or similar platform something along the lines of
 awk or sed could be  possible approaches.  I quote from an old
 manual:
 The advantages of sed are that it can apply the same editing comands
 to many files; it can edit a large file quickly; and it can readily
 be used with pipes.

Yes, the thing I was worried about though is damaging the
binary files. The text I wish to replace the original text
with is about twice the length of the original. Is the
xcf file format flexible enough to really allow editing
in this way?

thanks,
MC
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Programmatically modifying text in .xcf files.

2007-07-26 Thread mal content
On 26/07/07, John R. Culleton [EMAIL PROTECTED] wrote:

 Don't know :( I thought you meant a sentence or two.  Gimp is not the
 optimum approach for long text passages IMO.  Sounds more like a job
 for a page layout program or even html. What kind of files are they?
 Are they intended for online use?


Well what it basically is, is a CD cover and booklet. The
cover and booklet conform to an image template so that they
print the correct size and with correct margins at a given
DPI.

The covers are being produced for a range of CDs (the layout
is the same on each disks but the images are different).
The first page of every booklet lists credits and other
information and these now have to be changed en masse as
the text has been rewritten.

I suppose I could export the covers to a page layout program
but that would take a lot of work and would complicate our
release process quite a bit.

I'm not averse to the idea of writing a program to make
these transformations in C, but I'm not aware of the
existence of a 'libxcf' or equivalent to access the file
format and I really don't want to have to do my own
parsing!

cheers,
MC
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user