UWC conversion of MindTouch anchors

Ted Huntington January 25, 2012

What is the best way to convert local links in DekiWiki (MindTouch) to anchors for Confluence? Internal links appear to convert correctly when the header title is "linkname" as in this example: <a href="#linkname">, but not when #linkname does not match the header title. <a name="linkname"></a> causes an error, <span id="linkname" /> doesn't work. What is the easiest way to get the converter to insert a {anchor:linkname} when converting?

3 answers

1 accepted

0 votes
Answer accepted
Ellen Feaheny [AppFusions]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 27, 2012

Hi Ted

AppFusions supports the UWC and migrations as a whole - and have successfully migrated MindTouch to Confluence also before. Please email us at info@appfusions.com.

Best,

Ellen

info@appfusions.com

1 vote
Ted Huntington September 23, 2013

Yes- it's been over a year and a half since I was working on migrating a MindTouch (Deki) Wiki to Confluence, and so I don't remember completely. But I had to use Eclipse to build the UWC tool, and then actually change some of the Java code. A lot can be done in the converter.mindtouch.properties file. Here is a relevant piece:

#Internal links (Anchors) cause the Parser to fail

#not pretty - but remove any rel=".*?" in an internal link and add it in the next line
Mindtouch.3448.custom.java-regex=(<a.*?href="#.*?")(.*?)(rel=".*?")(.*?)(>){replace-with}$1$2$4$5
#some internal links don't have rel="internal"
Mindtouch.3449.custom.java-regex=(<a.*?href="#.*?")(.*?)(>){replace-with}$1$2 rel="internal">

I really learned a lot about Java regular expressions- there are a lot of options. Even then our conversion was not entirely perfect- there were a few garbled page- but most converted ok.

Thomas Wendel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 24, 2013

Thank you Ted.

0 votes
Ted Huntington February 20, 2012

Thanks Ellen, sorry for getting back to you, but I resolved the issue with anchors. I have your contact info for future reference.

Ted

Ellen Feaheny [AppFusions]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 26, 2012

thanks - sounds good.

Best, Ellen

Thomas Wendel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2013

Hi Ted,
Would it be possible that you share your solution here with us? ;-)
Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events