[Solved] Extract complete code from Writer HTML
- morphingstar
- Posts: 108
- Joined: Mon Mar 28, 2011 5:52 am
- Location: Mx
[Solved] Extract complete code from Writer HTML
I created list of URLs in writer using menu drop down HYPERLINK.
Now I need the total content to paste it into a web page in design.
Inserting it as file produces gibberish.
Copy + paste forgets the URLs, shows the title.
Saving OO file as html and opening it with browser produces gibberish.
I am using an old Notetab version (html4) to create html page. It has easy templates and I am familiar with the program. (New version is very complicated, no help with setting up web page)
The list mentioned goes into body. I must work as html url do.
Did I waste my time using Writer?
Now I need the total content to paste it into a web page in design.
Inserting it as file produces gibberish.
Copy + paste forgets the URLs, shows the title.
Saving OO file as html and opening it with browser produces gibberish.
I am using an old Notetab version (html4) to create html page. It has easy templates and I am familiar with the program. (New version is very complicated, no help with setting up web page)
The list mentioned goes into body. I must work as html url do.
Did I waste my time using Writer?
Last edited by Hagar Delest on Fri Jun 28, 2024 10:46 pm, edited 1 time in total.
Reason: tagged solved.
Reason: tagged solved.
OO 4.1.6 on Win10. Member since StarOffice 7. Alternative name "morphingstar2" when other fails. Use Writer, Calc (as DB + Calc), Draw. Impress mainly for Eyedropper and animating GIFs. Updated 20190716.
Re: extracting complete code from Writer html
Copy and Paste will paste the hyperlink with the URL or plain text depending on the program which you paste it into - and its settings. eg if you paste it into Notepad it will be plain text as that's all Notepad can handle, but in Wordpad it will be a hyperlink.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
- morphingstar
- Posts: 108
- Joined: Mon Mar 28, 2011 5:52 am
- Location: Mx
Re: Extract complete code from Writer HTML
I want to paste the url list into the html page being edited. Is this so unusual that I need wordpad to create html page?
I found
https://wiki.openoffice.org/wiki/Docume ... _web_pages
I shall try if it can import the URL list created with Writer. A html page needs header etc. Wonder if Writer can create tis using the url mentioned in this post.
I found
https://wiki.openoffice.org/wiki/Docume ... _web_pages
I shall try if it can import the URL list created with Writer. A html page needs header etc. Wonder if Writer can create tis using the url mentioned in this post.
OO 4.1.6 on Win10. Member since StarOffice 7. Alternative name "morphingstar2" when other fails. Use Writer, Calc (as DB + Calc), Draw. Impress mainly for Eyedropper and animating GIFs. Updated 20190716.
Re: Extract complete code from Writer HTML
When you copy a hyperlink in Writer (or other software) Writer puts what you copied onto the system clipboard in various different formats. One of those formats is plain text. Another one of those formats includes the hyperlink and the URL.
When you paste it into the other software - its entirely dependent on the other software which of those formats it decides to paste. That bits nothing to do with Writer - Writer did its job putting the different formats on the clipboard.
The other software decides which format it selects from the various formats on the system clipboard when you paste within the other software. If its pasting plain text and you want the URL you have to look at the other software and its options for pasting.
When you paste it into the other software - its entirely dependent on the other software which of those formats it decides to paste. That bits nothing to do with Writer - Writer did its job putting the different formats on the clipboard.
The other software decides which format it selects from the various formats on the system clipboard when you paste within the other software. If its pasting plain text and you want the URL you have to look at the other software and its options for pasting.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Re: Extract complete code from Writer HTML
If you want to access the raw HTML/XML code, unzip the archive that is an OpenOffice file, and look at content.xml with a plain text or more advanced editor. From content.xml you may be able to extract the exact URLs and some surrounding code.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
Re: Extract complete code from Writer HTML
Have you considered saving the document as HTML and copying the links from there? You can open the .html file with a simple text editor such as Notepad.
Slackware 15 (current) 64 bit
Apache OpenOffice 4.1.16
LibreOffice 26.2.3.2; SlackBuild for 26.2.3 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
Apache OpenOffice 4.1.16
LibreOffice 26.2.3.2; SlackBuild for 26.2.3 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
- morphingstar
- Posts: 108
- Joined: Mon Mar 28, 2011 5:52 am
- Location: Mx
Re: Extract complete code from Writer HTML
I saved the document as html, however, Writer did not add any part of header, I am stuck.
I shall try the other suggestions and kick my luck. Thanks. If it works I shall report so.
JeJe: how chose the clip format?
RoryOF & robleyd: Writer does not create a *.zip file. I shall try to open the html using a plain text editor & go from there.
I shall try the other suggestions and kick my luck. Thanks. If it works I shall report so.
JeJe: how chose the clip format?
RoryOF & robleyd: Writer does not create a *.zip file. I shall try to open the html using a plain text editor & go from there.
OO 4.1.6 on Win10. Member since StarOffice 7. Alternative name "morphingstar2" when other fails. Use Writer, Calc (as DB + Calc), Draw. Impress mainly for Eyedropper and animating GIFs. Updated 20190716.
- Hagar Delest
- Moderator
- Posts: 33633
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: Extract complete code from Writer HTML
Edit > Paste special.
.odt (or .ods, .odp...) files are merely zip files. If your archive manager doesn't open it directly, make a copy and change the extension from .odt to .zip.morphingstar wrote: ↑Wed May 29, 2024 5:33 am RoryOF & robleyd: Writer does not create a *.zip file. I shall try to open the html using a plain text editor & go from there.
7zip for example can open any .odt file directly from right click.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
Re: Extract complete code from Writer HTML
You don't choose the clip format when you copy: writer puts several formats on the clipboard
As you're pasting into another software the paste format selected will depend on the other software - that's not an OO question but one about that software .
As you're pasting into another software the paste format selected will depend on the other software - that's not an OO question but one about that software .
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
- morphingstar
- Posts: 108
- Joined: Mon Mar 28, 2011 5:52 am
- Location: Mx
Re: Extract complete code from Writer HTML
I won't use writer for what I desired to do, it is not suitable.
For those who like to do what I tried I found an OO LO free solution:
In browser, select all tabs, save these as a folder in bookmarks, ctrl+c copy the folder content and paste it into text editor, e.g. Fookes Notetab new html page.
For those who like to do what I tried I found an OO LO free solution:
In browser, select all tabs, save these as a folder in bookmarks, ctrl+c copy the folder content and paste it into text editor, e.g. Fookes Notetab new html page.
OO 4.1.6 on Win10. Member since StarOffice 7. Alternative name "morphingstar2" when other fails. Use Writer, Calc (as DB + Calc), Draw. Impress mainly for Eyedropper and animating GIFs. Updated 20190716.
- morphingstar
- Posts: 108
- Joined: Mon Mar 28, 2011 5:52 am
- Location: Mx
Re: Extract complete code from Writer HTML
this case is now closed for me, I can not find any button to mark this.
OO 4.1.6 on Win10. Member since StarOffice 7. Alternative name "morphingstar2" when other fails. Use Writer, Calc (as DB + Calc), Draw. Impress mainly for Eyedropper and animating GIFs. Updated 20190716.
Re: Extract complete code from Writer HTML
You have to edit the title manually by putting [Solved] in front.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)