The documents were created on a windows-7 box using “Times New Roman” and “Vivaldi”.
They have been migrated to a Fedora-35 (Linux) workstation. It has neither “Times New Roman” nor “Vivaldi”. Some day in the future (I don’t know when), the documents will be migrated to some as yet unknown workstation witth as yet unknown operating system and fonts. Strict requirements:
I must use the fonts that come with Fedora-35 and/or LibreOffice by default. So…
- no font migration allowed.
- no font installation allowed.
Further…
- No size changes.
- No changes in regular vs. italic vs. bold vs. underline allowed.
- The same font changes must be made in each document. Specifically, all “Times New Roman” must be changed to “Liberation Serif”, and all “Vivaldi” must be changed to “Z003”.
- The font changes must be permanent.
- Both the display and printouts must show “Liberation Serif” and “Z003”.
I have 240 of these documents needing the font changes. I recall in the good 'ol days that shell scripts would be written. They would loop through a list a files and use Linux/Unix commands like “ed”, “sed”, “ex”, and others to edit each file. I’m looking for something like that. Pseudo-code:
do for each LibreOffice Writer document in directory "my_docs"
open the doc
change all "Times New Roman" to "Liberation Serif"
change all "Vivaldi" to "Z003"
save the doc
end do
exit
That is what I need and am asking for. If the only way to change the documents is to manually do each one separately, then say so. I already know how to manually make the font changes in one document within an interactive LibreOffice Writer session.