# NOTE: The converters are executed in alphabetical order! | |
## Hierarchy Configuration | |
## To use: uncomment and configure 01-001 lines, uncomment 4link2post... converters | |
## and choose which 4image and 4link converters you want. | |
## -- which hierarchy: choose either FilepathHierarhcy or DokuwikiHierarchy | |
## -- filepath hierarchy will simply use the filepath to determine the hierarchy | |
## -- dokuwiki hierarchy is an extension of filepath hierarchy that allows you | |
## -- more finegrained control over namespace collision resolution. | |
#DokuWiki.01.hierarchy-builder=com.atlassian.uwc.hierarchies.FilepathHierarchy | |
#DokuWiki.01.hierarchy-builder=com.atlassian.uwc.hierarchies.DokuwikiHierarchy | |
#DokuWiki.02.switch.hierarchy-builder=UseBuilder | |
## Set the ignorable ancestors property to the lowest file system directory | |
## you don't want to see in the hierarchy | |
#DokuWiki.03.filepath-hierarchy-ignorable-ancestors.property=/SET/THIS | |
#Dokuwiki.04.filepath-hierarchy-ext.property= | |
## Uncomment filepath-hierarchy-matchpagename for EITHER FilepathHierarchy or | |
## DokuwikiHierarchy. Keep this set to false, as the dokuwiki hierarchy was | |
## written under the presumption that we would be comparing page titles | |
#Dokuwiki.05.filepath-hierarchy-matchpagename.property=false | |
## These are the DokuwikiHierarchy specific properties. | |
## Set these to tell the dokuwikihierarchy which pages will have namespace collisions in a particular space. | |
## You don't need to say "Start" as start.txt pages are automatically renamed as their namespace's page. | |
## The key should be DokuWiki.001.collision-titles-spacekey.property=Pagenames,With,Collision,Troubles | |
## See DokuwikiHierarchy config notes in https://studio.plugins.atlassian.com/wiki/display/UWC/UWC+DokuWiki+Notes | |
#DokuWiki.001.collision-titles-spacekey.property=Set,This | |
#DokuWiki.001.collision-titles-foo.property=Bar | |
## Tell the DokuwikiHierarchy which spacekeys are getting what dokuwiki directories | |
## space-[spacekey].property=dir,which,will,be,in,this,space | |
## The following would be saying that file system directory with name "dir" would be associated with | |
## confluence "spacekey", and directories "foo" and "bar/foo" would be associated with spacekey "foo". | |
## Note: These do not have to be absolute pathnames. They should conform to the last relative directory listed in the | |
## pages setting | |
#DokuWiki.001.space-spacekey.property=dir | |
#DokuWiki.001.space-foo.property=foo,bar/foo | |
## Set the attachment directory value to a :: delimited list of media directories. It should | |
## correspond to your pages setting, but with "media" instead of "pages" as the penultimate directory | |
#DokuWiki.001.attachmentdirectory.property=/Absolute/path/to/media/dir::/Absolute/path/to/media/foo | |
# Code (needs to be early so we can tokenize the contents) | |
DokuWiki.0code.java-regex-tokenizer=(?s)<code>(.*?)<\/code>{replace-with}{code}$1{code} | |
DokuWiki.0code-type.java-regex-tokenizer=(?s)\<code ([^>]+?)\>(.*?)<\/code>{replace-with}{code:$1}$2{code} | |
DokuWiki.0esc-lbrackets.java-regex=(?<!\[)\[(?!\[){replace-with}\\[ | |
# Text formating | |
DokuWiki.1bold.perl=s/\*\*([^*]+)\*\*/*$1*/g | |
DokuWiki.1italic.perl=s/([^:])\/\/(.+?)\/\//$1_$2_/g | |
DokuWiki.1underlined.perl=s/__([^_]+)__/+$1+/g | |
DokuWiki.1subscript.perl=s/<sub>([^<]+)<\/sub>/~$1~/g | |
DokuWiki.1superscript.perl=s/<sup>([^<]+)<\/sup>/\^$1\^/g | |
DokuWiki.1deleted.perl=s/<del>([^<]+)<\/del>/-$1-/g | |
DokuWiki.1hr.perl=s/[ ]*-{4,}[ ]*/----/g | |
DokuWiki.1h1.perl=s/={6}([^=\n]+)={6}/h1. $1/g | |
DokuWiki.1h2.perl=s/={5}([^=\n]+)={5}/h2. $1/g | |
DokuWiki.1h3.perl=s/={4}([^=\n]+)={4}/h3. $1/g | |
DokuWiki.1h4.perl=s/={3}([^=\n]+)={3}/h4. $1/g | |
DokuWiki.1h5.perl=s/={2}([^=\n]+)={2}/h5. $1/g | |
DokuWiki.1h6cleanup.perl=s/=+(h\\d\.)/$1/g | |
# Email addresses. | |
DokuWiki.2email.perl=s/<([\w.]+@[\w.]+)>/\[mailto:$1\]/g | |
DokuWiki.2mailto-alias.java-regex-tokenizer=\[\[mailto:([^\]|\s]*)\s*\|\s*([^\]]*)\]\]{replace-with}[$2|mailto:$1] | |
DokuWiki.2mailto.java-regex-tokenizer=\[\[mailto:([^\]]*)\]\]{replace-with}[mailto:$1] | |
# ==================================================================================================================== | |
# Novotny; 27.3.2009 | |
# Remove ((Tooltips)) as there is no Confluence pendant | |
DokuWiki.2tooltips.java-regex=\(\((.*?)\)\){replace-with}\($1\) | |
# Clear text floating ~~CL~~ as there is no Confluence pendant | |
DokuWiki.2cl.java-regex=(~~CL~~){replace-with} | |
# Transform notes | |
DokuWiki.2note.java-regex=\<note\>((?s).*?)\<\/note\>{replace-with}{info}$1{info} | |
DokuWiki.2notewarning.java-regex=\<note warning\>((?s).*?)\<\/note\>{replace-with}{warning}$1{warning} | |
DokuWiki.2notetip.java-regex=\<note tip\>((?s).*?)\<\/note\>{replace-with}{tip}$1{tip} | |
DokuWiki.2noteimportant.java-regex=\<note important\>((?s).*?)\<\/note\>{replace-with}{note}$1{note} | |
# Transform german Wikipedia links: [wpde>...] | |
DokuWiki.3interwiki_wpde1.perl=s/\[\[[\\s]*wpde>([^\]\|]*)\]/[[http:\/\/de.wikipedia.org\/wiki\/$1|$1]/g | |
# Transform Wikipedia links: [wp>...|Alias] | |
DokuWiki.3interwiki_wpde2.perl=s/\[\[[\\s]*wpde>([^\|\]]*)\|([^\]]*)\]/[[http:\/\/de.wikipedia.org\/wiki\/$1|$2]/g | |
# ==================================================================================================================== | |
# Lists | |
DokuWiki.lists.class=com.atlassian.uwc.converters.dokuwiki.ListConverter | |
# Tables -- must be run before the image and link converters | |
DokuWiki.2table1.perl=s/\^/||/g | |
# Interwiki links | |
# Match [...|doku>...] | |
DokuWiki.3interwiki_doku1.perl=s/\[\[[\\s]*doku>([^\|\]]*)\|([^\]]*)\]/[[http:\/\/wiki.splitbrain.org\/$1|$2]/g | |
# Match [doku>...] | |
DokuWiki.3interwiki_doku2.perl=s/\[\[[\\s]*doku>([^\]\|]*)\]/[[http:\/\/wiki.splitbrain.org\/$1|$1]/g | |
DokuWiki.3interwiki_wiki1.perl=s/\[\[[\\s]*wiki>([^\|\]]*)\|([^\]]*)\]/[[http:\/\/c2.com\/cgi\/wiki?$1|$2]/g | |
# Match [wiki>...] | |
DokuWiki.3interwiki_wiki2.perl=s/\[\[[\\s]*wiki>([^\]\|]*)\]/[[http:\/\/c2.com\/cgi\/wiki?$1|$1]/g | |
# Match [...|wp>...] | |
DokuWiki.3interwiki_wp1.perl=s/\[\[[\\s]*wp>([^\|\]]*)\|([^\]]*)\]/[[http:\/\/en.wikipedia.org\/wiki\/$1|$2]/g | |
# Match [wp>...] | |
DokuWiki.3interwiki_wp2.perl=s/\[\[[\\s]*wp>([^\]\|]*)\]/[[http:\/\/en.wikipedia.org\/wiki\/$1|$1]/g | |
## Images | |
## If using DokuwikiHierarchy, comment DokuWikiImageConverter, and uncomment HierarchyImageConverter | |
DokuWiki.4image1.class=com.atlassian.uwc.converters.dokuwiki.DokuWikiImageConverter | |
#DokuWiki.4image2.class=com.atlassian.uwc.converters.dokuwiki.HierarchyImageConverter | |
## External links | |
## UNC Style Links - if using links like [\\path\to\file]], then uncomment | |
## the following 3 converters | |
#DokuWiki.4.illegalnames-customprotocol.property=((https?://)|(mailto:)|(file:)|(ftp:)|(\\\\))(.*) | |
#DokuWiki.4.unc-alias.java-regex-tokenizer=\[\[(\\[^\]|\s]*)\s*\|\s*([^\]]*)\]\]{replace-with}[$2|$1] | |
#DokuWiki.4.unc.java-regex-tokenizer=\[\[(\\[^\]|]*)\]\]{replace-with}[$1] | |
## If using DokuwikiHierarchy, comment DokuWikiLinkConverter, and uncomment HierarchyLinkConverter | |
## and HierarchyTitleConverter | |
DokuWiki.4link1.class=com.atlassian.uwc.converters.dokuwiki.DokuWikiLinkConverter | |
#DokuWiki.4link2.class=com.atlassian.uwc.converters.dokuwiki.HierarchyLinkConverter | |
#DokuWiki.4title.class=com.atlassian.uwc.converters.dokuwiki.HierarchyTitleConverter | |
## Uncomment these if you are using the UseBuilder hierarchy | |
#DokuWiki.4link2postalias.java-regex=\[([^|\]]+)\|[^\]]+(?>--)\s*{replace-with}[$1| | |
#DokuWiki.4link2postprocess.java-regex=\[[^\]]+(?>--)\s*{replace-with}[ | |
# Monospaced must be run after the image converters! | |
DokuWiki.5monospaced.perl=s/''([^']+)''/{{$1}}/g | |
DokuWiki.5smiley1.perl=s/:-D/:D/g | |
DokuWiki.5smiley2.perl=s/;-\)/;)/g | |
DokuWiki.5smiley3.perl=s/:\?:/(?)/g | |
DokuWiki.5smiley4.perl=s/:!:/(!)/g | |
## Extensions | |
## Csv - Uncomment this if you want the csv extension to be transformed to | |
## table plugin syntax. See http://www.dokuwiki.org/plugin:csv | |
## https://studio.plugins.atlassian.com/wiki/display/TBL/CSV+Macro | |
#DokuWiki.60.csv.java-regex=<\/?csv>{replace-with}{csv} | |
## Folded - Uncomment this if you want the folded extension to be transformed | |
## to the expand user macro http://confluence.atlassian.com/display/DISC/Expand+Text+User+Macro | |
## See: http://www.dokuwiki.org/plugin:folded | |
## and: | |
#Dokuwiki.61.folded.java-regex=(?s)[+]{4,4}([^|]+)\|(.*?)[+]{4,4}{replace-with}{expand:$1}$2{expand} | |
## Discussion plugin removed | |
#DokuWiki.62.discussion.java-regex=~~DISCUSSION[^~]*~~[\n]?{replace-with} | |
## Remove double backslashes at ends of newlines | |
#DokuWiki.65.doublebs.java-regex=(?m)\\\\${replace-with} | |
## User Date data | |
## Uncomment these and configure the meta-dir property if you want | |
## User and timestamp data to be retained. You will also need the | |
## hierarchy converter's filepath-hierarchy-ignorable-ancestors to be set | |
## The users-must-exist property determines whether your confluence ignores | |
## requests to user authors that don't exist - default is true. | |
## Requires UDMF Plugin https://studio.plugins.atlassian.com/wiki/display/udmf | |
#Dokuwiki.7.meta-dir.property=/Set/This/To/Meta/Directory | |
#Dokuwiki.7.users-must-exist.property=false | |
#Dokuwiki.7.userdata.class=com.atlassian.uwc.converters.dokuwiki.DokuwikiUserDate | |
# Detokenize (code blocks) | |
Dokuwiki.9detokenizer.class=com.atlassian.uwc.converters.DetokenizerConverter |