On Mon, 2008-12-01 at 11:24 +0000, Chris Mohler wrote:

> I created a file called test.xcf with one text layer containing the word 
> "test".
> Then I used this command:
> cat test.xcf | sed 's/test/TEST/g' > test2.xcf
> And "test" was replaced with "TEST".  Whether or not this method will
> work for more complex documents I do not know. 

That will only work if the replacing string has the same number of
characters (or actualy number of bytes in the UTF-8 encoded text).
Please don't do such things. As you found out already, GIMP 2.6 provides
an API in the PDB that allows to do text layer manipulation.


Gimp-user mailing list

Reply via email to