Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-01-2020, 11:18 AM
adikrak adikrak is offline DOCX TO HTML - script writing Windows 10 DOCX TO HTML - script writing Office 2019
Novice
DOCX TO HTML - script writing
 
Join Date: Jan 2020
Posts: 4
adikrak is on a distinguished road
Post DOCX TO HTML - script writing

Hello to Everyone,

I'm searching someone, that could write for me VBA script that could convert scientific articles from our journal form docx to html:
1) Change paragraphs to <p> … </p>
2) Title to <h1>…</h1>
3) Midtitles to <h2>… </h2>
4) Numbered list to <ol>
5) Bold to <b> and Italics to <i>

6) Unnumbered list to <ul>
7) And most important footnotest to :
In word :


[...] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut vel diam purus. Nulla molestie quam dui, ac ultrices diam fermentum ut. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque convallis dignissim rutrum. Donec tempus sapien sit amet nisi sagittis placerat. Fusce facilisis ac velit vitae sollicitudin. Curabitur quis dictum dolor. (1).
[...]
1) See. P. XXX, Title of book, „Journal” 2019/7–8, s. .234.

In HTML:
<p>[...] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut vel diam purus. Nulla molestie quam dui, ac ultrices diam fermentum ut. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque convallis dignissim rutrum. Donec tempus sapien sit amet nisi sagittis placerat. Fusce facilisis ac velit vitae sollicitudin. Curabitur quis dictum. <span class=“footnote”> dolor <span class=“footnote-badge”></span><span class=“footnote-text”> See. P. XXX, Title of book, „Journal” 2019/7–8, s. .234.</span></span></p>

<span> must be on last word that is previous to footnote (after this word we display automatically generated number with content of this footnote. )

Best regards and thank you for your time to read this
Adam

Last edited by macropod; 01-02-2020 at 04:57 AM. Reason: Deleted solicitation of off-line contact & paid support
Reply With Quote
  #2  
Old 01-01-2020, 11:59 PM
gmayor's Avatar
gmayor gmayor is offline DOCX TO HTML - script writing Windows 10 DOCX TO HTML - script writing Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Bearing in mind that DOCX and HTML have different, and in some cases incompatible, formatting requirements, have you tried simply saving the document as Web Page Filtered HTM.HTML from Word? The file includes a lot of unwanted style at the top, when examined in Notepad, which can be removed. The tags are retained.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 01-02-2020, 01:58 AM
adikrak adikrak is offline DOCX TO HTML - script writing Windows 10 DOCX TO HTML - script writing Office 2019
Novice
DOCX TO HTML - script writing
 
Join Date: Jan 2020
Posts: 4
adikrak is on a distinguished road
Default

Yes, I tried but the most important thing for me are footnotes which cannot be replaced automatically and converted to <span> in my desired fashion Those articles are 40 pages long and manually correnting everyting takes to much time – I need vba script to do this hence my offer 😊
Reply With Quote
  #4  
Old 01-02-2020, 04:56 AM
macropod's Avatar
macropod macropod is offline DOCX TO HTML - script writing Windows 7 64bit DOCX TO HTML - script writing Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

There are already various macros on this forum for applying html tags to text in Word documents - and others to move footnote content into the document body. A search will soon identify some you could extend to meet your needs.

PS: Kindly don't solicit off-line contact or paid work through this forum.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 01-02-2020, 06:22 AM
adikrak adikrak is offline DOCX TO HTML - script writing Windows 10 DOCX TO HTML - script writing Office 2019
Novice
DOCX TO HTML - script writing
 
Join Date: Jan 2020
Posts: 4
adikrak is on a distinguished road
Default

Probably yes, but I don’t have skills to combine them into one and the way I want. Hence my proposition. I don’t expect anyone to work for free or help me giving his/her time without anything in return. I’ve send few offers to come companies and no one was interested so I started searching web – and I found this forum. I don’t know what else to do and if my proposal is wrong I’m very sorry but I need some help and I don’t know where I can find specialist for this. Maybe someone could direct me?
Reply With Quote
  #6  
Old 01-02-2020, 02:17 PM
macropod's Avatar
macropod macropod is offline DOCX TO HTML - script writing Windows 7 64bit DOCX TO HTML - script writing Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

What have you tried?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 01-02-2020, 02:29 PM
adikrak adikrak is offline DOCX TO HTML - script writing Windows 10 DOCX TO HTML - script writing Office 2019
Novice
DOCX TO HTML - script writing
 
Join Date: Jan 2020
Posts: 4
adikrak is on a distinguished road
Default

No, Couse I'm not programmer, and I don’t know needed syntax or how to write the code. I presume everything can be thought, but I cannot find the time to learn this language and programming for this one script �� Which is natural for me – if I get sick I don’t study medicine books just go to a specialist and pay for his knowlegde ��
Reply With Quote
  #8  
Old 01-02-2020, 02:52 PM
macropod's Avatar
macropod macropod is offline DOCX TO HTML - script writing Windows 7 64bit DOCX TO HTML - script writing Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by adikrak View Post
No, Couse I'm not programmer, and I don’t know needed syntax or how to write the code.
You might at least make an effort by searching these forums for some code to get you started. Gee, there's even some in threads on this very page!!!
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
docx to html

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge a .docx into a table in existing .docx MarkAtTheBeach Word Tables 3 10-26-2018 12:55 PM
Save HTML as DOCX john1 Word 1 11-21-2014 10:56 PM
Ongoing Nightmare - Opening a .txt. or .csv containing HTML script freshfrost Excel 4 09-28-2014 12:23 AM
2013 docx to html image issue iggyb Word 0 08-18-2014 08:44 AM
Can you actually write HTML and CSS in a word document and send it as an html page jackaroo Word 0 07-12-2010 07:49 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft