UWC conversion of MindTouch anchors

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

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

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.

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

Ted

thanks - sounds good.

Best, Ellen

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
Community showcase
Posted Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

57 views 4 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you