Esempio n. 1
0
            replace=""
            if(len(line)-m.end(0)>2):
                replace=" (ref) "
            listOfSublines[l]=line[breakLine[0]+1:breakLine[1]-1].split("; ")
            line=line.replace(line[breakLine[0]:breakLine[1]],replace)             
        listOflines.append(line)
    return listOflines,listOfSublines


#options -start
maxLength=80
xmind = XMindDocument.create("sheet1","article")
information="52r5pnqlh67gsj8d1v0469s1fm"
ref="1t2ehckaq1o9cnnnb0ru8k5a53"
xmind.embed_markers("PackageCompiler.xmp")
style_plan=XMindDocument.create_topic_style(xmind,'#80FF80',"org.xmind.topicShape.rectangle","#CACACA",line_width = "2pt")
style_text=XMindDocument.create_topic_style(xmind,'#CEFFCE',"org.xmind.topicShape.rectangle","#CACACA",line_width = "1pt")
style_ref=XMindDocument.create_topic_style(xmind,'#E5E5E5',"org.xmind.topicShape.roundedRect","#CACACA",line_width = "1pt")
style_root=XMindDocument.create_topic_style(xmind,'#37D02B',"org.xmind.topicShape.roundedRect","#CACACA",line_width = "3pt")
p = re.compile('('
               +'\('
               +'[^\d)]'
               +'[^\)]*?'
               +'\d\d\d\d'
               +'.*?'
               +'\)'
               +')')

#options -end
filename=raw_input("give the name of the text file in this directory you want to map : ")
output=raw_input("give the name of the xmind file that will be generated : ")