Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-07 12:26:31

woof
Member
Registered: 2004-08-01
Posts: 128

[textile] Word .doc to textile

Does anyone know of a relatively simple, short and cruft-free way to export or process text formatted in MS Word to textile?

I have hundreds of docs with thousands of italic phrases. I’m facing the chilling prospect of having to manually reinstate basic ( bold, italic and underline) formatting — any way to automate the process would be a cause for much merry leaping.

Anyone had this problem and found a solution? Thanks Woof.

Offline

#2 2009-07-07 12:39:32

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,271
Website GitHub

Re: [textile] Word .doc to textile

woof wrote:

Does anyone know of a relatively simple, short and cruft-free way to export or process text formatted in MS Word to textile?

Never tried it but does the Word 2 Media Wiki tool help at all? I know they’re not the same language (though MW does do Textile with an extension I think) but since that tool is a simple VB macro, perhaps it could be hacked to do so? The hard part is searching the Word-formatted document for the right codes, which this tool does for you; what it does with them afterwards is probably fairly easy to change in the macro. He says…

Last edited by Bloke (2009-07-07 12:41:07)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2009-07-07 12:43:07

woof
Member
Registered: 2004-08-01
Posts: 128

Re: [textile] Word .doc to textile

Cheers Bloke – that looks promising… here goes a try…

Offline

#4 2009-07-07 13:08:15

woof
Member
Registered: 2004-08-01
Posts: 128

Re: [textile] Word .doc to textile

By jove Bloke, you did it! The aforementioned merry leaping has been executed in your honour sir.

Offline

#5 2009-07-07 13:13:40

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,271
Website GitHub

Re: [textile] Word .doc to textile

woof wrote:

By jove Bloke, you did it! The aforementioned merry leaping has been executed in your honour sir.

:-) No probs, glad it helped. If you modded the macro, care to share the changes? I’m sure I could use it for an upcoming site…


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#6 2009-07-07 16:10:50

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: [textile] Word .doc to textile

Just to add to this thread for future reference.

There is also an OpenOffice to DokuWiki macro, which I’ve used quite often to insert content into my own wikis.

Offline

#7 2010-06-02 07:38:57

M_i
Member
Registered: 2006-03-05
Posts: 122

Re: [textile] Word .doc to textile

Bloke wrote:

:-) No probs, glad it helped. If you modded the macro, care to share the changes? I’m sure I could use it for an upcoming site…

This is the one I use, but mind that it doesn’t convert everything, just the functions I need: http://pastebin.com/Wtvd6xCN

Last edited by M_i (2010-06-02 07:39:24)

Offline

#8 2011-07-19 04:41:20

Calion
New Member
Registered: 2011-07-19
Posts: 3

Re: [textile] Word .doc to textile

I took the examples provided and made something that does a bit more than the version M_i posted; in fact I think it handles everything the original MediaWiki version does. Let me know if it needs work (though note that I’m no expert on Word macros; I just played with it until it did what I wanted).

Thanks for the original tip on this; I’ve got some fairly large Word documents that I want to post on Obsidian Portal.

Here it is: Word2Textile

If that link ever breaks, here’s the actual file.

Offline

#9 2015-04-10 10:24:26

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: [textile] Word .doc to textile

Despite this is an old threat, I think it is noteworthy to point to the pandoc tool, which is able to convert Wordfiles and other documents to textile and was already mentioned here. It is in the Debian repositories and there are also binaries for other OS than linux.

Offline

Board footer

Powered by FluxBB