A simple GUI application for formatting prices (ES<>EN) in DOCX files. When translating files in English/Spanish that have prices in them (in particular menus), it's a PITA to manually change all the prices from the format 10,00€ to €10.00 or vice-versa.
- After finishing (or before starting) the translation, launch price-formatter.
- It will indicate the translation direction (default is ES>EN). There is a button to choose the desired direction.
- Drag and drop the docx file into the window. It will (hopefully!) change all the prices to the desired format and will create a new file with '_conv' added to its name. The original file is left as-is in case anything went wrong.
- It supports prices with 1, 2 or no decimals.
Files with weird formatting (e.g. those produced with OCR) might not work as expected. A .deb file is provided here, otherwise you can run the price-formatter/usr/local/bin/price_formatter.py script.