I save my Libre Office documents in fodt format and store them in Subversion (SVN). I have set svn keyword properties on the file. The $Revision:$ tag is correctly replaced by eg. $Revision: 2000$ after a commit.
Now the $Revision: 2000$ text is not very nice to look at. So I would like to replace it with "Version 2000" while viewing the document.
- My idea was to have a document field called version with the value $Revision:$.
- I then use this field 'version' in the document itself.
- I need something a macro perhaps, to replace the output of the field 'version' (=$Revision: 2000) in the document with "Version: 2000" when the document is opened. It is just for viewing/printing purposes, so the original document should be kept unchanged if 'save' is clicked.
How to accomplish this?