Cuperino / QPrompt-Teleprompter

Teleprompter software for all video creators. Built with ease of use, productivity, control accuracy, and smooth performance in mind.
https://qprompt.app
GNU General Public License v3.0
355 stars 22 forks source link

Import adding breakpoints where there should be none #205

Open videosmith opened 10 months ago

videosmith commented 10 months ago

Bug Description Importing a .docx document not retaining the original text paragraph/sentence formatting. (see attach images)

Steps to Reproduce

  1. Copy your welcome text (minus the logo image at the top)
  2. Open a new Libre Writer (7.4) document
  3. Paste into Writer
  4. Save as .docx (see attached example)
  5. Select open .docx file in Qprompt (1.2 r6)
  6. Load file

Expected behavior Formatting should match source document

Screenshots (optional) screen screen01 screen02 test.docx.zip

Device information

videosmith commented 8 months ago

After some testing I've found a possible (somewhat clumsy & elaborate) workaround (Using LibreWriter in Debian)...

  1. Install the 'Alternative Find and Replace for Writer' Libre Office extension (seems to perform the following actions better than the native Find & Replace feature in Writer).
  2. Open original .docx in Writer.
  3. Save as an .html document.
  4. Close original .docx document and open the saved .html document in Writer.
  5. Select all text.
  6. Adjust any line spacing, font family, size, alignment, color etc. as necessary.
  7. If paragraphs are run together, separate paragraphs with single line breaks instead of paragraph markers (which appear to translate into multiple Carriage Returns in QPrompt), place cursor at start of document, open Alternative extension.
  8. Select 'End of Paragraph - $' option in 'Regular' dropdown.
  9. Select 'Manual Line Break - \n' option twice in 'Replace' dropdown.
  10. Click 'Replace All'.
  11. Close 'Alternative' window.
  12. Save .html document in Writer.
  13. To add document to QPrompt without random line breaks, open the saved .html document in a browser (for me, Chromium)
  14. Select all and copy/paste into new QPrompt document.
  15. If decorated text is not the same height as Normal text, save document in QPrompt.
  16. Open .html document from QPrompt in a text editor for me, Featherpad).
  17. For Bold issues, find all occurences of 'font-size:medium' and replace with 'font-size:large'.
  18. Save .html document. Close text editor.
  19. Reload .html document in QPrompt if necessary to refresh.
  20. Note - Text color highlights do not seem to save out from the original .docx to html
  21. Note - Also appears that any Super/Sub scripting (intentional or not) must be manually reset.
  22. Note - Text color occasionally changes during this procedure.