[RFC] Image filename conventions

Tommy Reynolds Tommy.Reynolds at MegaCoder.com
Fri Dec 9 22:09:04 UTC 2005


Hello, ya'll!

Some folk have their document images in a "figs/" subdirectory tree
under the document directory.  Large documents may have additional
"figs/part1" style subdirectories, too.

The lack of a formal filenaming scheme makes selectively copying
files awkward.  Below is our current convention:

	<filename>-<locale>.<ext>

such as "watermark-ru.png".  Simple, eh?

The problem is that some filenames use the "-" minus sign to separate
words in the filename:

	this-is-my-picture.png

Is "picture" part of the filename or the language designation?  It is
difficult for a shell script to decode this just by looking at the
filename.

I propose a file naming scheme to simplify the selective copying of
files.  This will help reduce the complexity of the RPM packaging
tools.

Only three formal rules are needed:

1)  The minus sign "-" may not be used as part of the filename
    component.

1)  The minus sign only introduces the locale for the file.

1)  Filenames without a locale component are considered language
    neutral.

With these conventions in place:

	"foo.png" is a language-neutral graphic.

	"foo-it.png" is a graphic with Italian text.

	"foo-bar.png" is not permitted usage.

Comments? Alternatives? Bribes?

Cheers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-docs-list/attachments/20051209/5e956e48/attachment.sig>


More information about the fedora-docs-list mailing list