#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
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 😊
|
#4
|
||||
|
||||
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] |
#5
|
|||
|
|||
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?
|
#6
|
||||
|
||||
What have you tried?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
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
|
#8
|
||||
|
||||
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] |
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 |