Hello troffers, "Bernd Warken" <groff-bernd.warken...@web.de> wrote:
> the filename extensions for files using the roff language are not > documented. As there are many of these, a kind of standard should be > implemented. I propose the following description as a man-page > "groff-filenames.7"0. It should go to groff/man/groff-filenames.man I think that documenting filename extensions is a good idea. People who discover troff today can't know which extension give to their troff files, since (except manual pages), none exist on their system. In such a documentation, the .tmac should be added for macros. It could also be said that in the original troff, and so in heirloom troff, macros are named "tmac.file". It should also be of interest to say something about freedesktop standart: it recognize *.tr, *.roff, *.t, *.me, *.ms, *.mm, and *.man. It also recognizes troff files if they begin by a comment (ie by .\" or '\" ). > <name>.ref for files using the prefer preprocesor Since I've got a lot of refer files, I've added a text/x-refer mime type in my system. It recognizes the file if it has the extension .ref or if it begins by a %. Here follow the refer.xml file which add this mime type, and a simple makefile to install it. Most of the translation should be corrected. I also have got a set of icons for troff files, based on a famous icon theme. I can share them if wanted. Cheers, Pierre-Jean.
refer.xml
Description: XML document
ROOT= MIMEDIR=$(ROOT)/usr/share/mime/packages/ MIMEPKG=$(MIMEDIR)/packages/ INSTALL=/bin/install UMD=/usr/bin/update-mime-database install: refer.xml $(INSTALL) -c refer.xml $(MIMEPKG)/refer.xml || exit ; $(UMD) $(MIMEDIR) uninstall: rm $(MIMEPKG)/refer.xml $(UMD) $(MIMEDIR)