Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import adding breakpoints where there should be none #205

Open
videosmith opened this issue Aug 14, 2023 · 1 comment
Open

Import adding breakpoints where there should be none #205

videosmith opened this issue Aug 14, 2023 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@videosmith
Copy link

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

  • QPrompt Version:1.2 r6
  • Operating System: Debian 12.1
@Cuperino Cuperino self-assigned this Aug 14, 2023
@Cuperino Cuperino added the bug Something isn't working label Aug 14, 2023
@Cuperino Cuperino added this to QPrompt Aug 14, 2023
@Cuperino Cuperino added this to the 1.2 milestone Aug 14, 2023
@github-project-automation github-project-automation bot moved this to Uncategorized Issues in QPrompt Aug 14, 2023
@Cuperino Cuperino moved this from Uncategorized Issues to File Management in QPrompt Aug 14, 2023
@github-project-automation github-project-automation bot moved this from File Management to Done in QPrompt Aug 14, 2023
@videosmith
Copy link
Author

videosmith commented Oct 12, 2023

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.

@Cuperino Cuperino reopened this Oct 12, 2023
@github-project-automation github-project-automation bot moved this from Done to Improve Upon in QPrompt Oct 12, 2023
@Cuperino Cuperino changed the title .docx import format issue Import adding breakpoints where there should be none Oct 17, 2023
@Cuperino Cuperino moved this from Improve Upon to Bugs in QPrompt Nov 9, 2023
@Cuperino Cuperino modified the milestones: 1.2, 1.3 Sep 30, 2024
Cuperino added a commit that referenced this issue Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Bugs
Development

No branches or pull requests

2 participants