WikidPad: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (7個修訂) |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[http:// | [http://wikidpad.sourceforge.net/ WikidPad - wiki notebook/outliner for windows] ([http://wikidpad.python-hosting.com/ Wiki], [http://tech.groups.yahoo.com/group/wikidPad/ forum]) | ||
{{Software version| software=WikidPad | url=http:// | {{Software version| software=WikidPad | url=http://wikidpad.sourceforge.net/ | version=1.9beta13 }} | ||
== modify the default | == modify the default WikidPad syntax to mediawiki compatible syntax == | ||
* Copy the C:\Program Files\WikidPad\WikiSyntax.py to C:\Program Files\user_extensions\WikiSyntax.py | * Copy the C:\Program Files\WikidPad\extensions\WikiSyntax.py to C:\Program Files\WikidPad\user_extensions\WikiSyntax.py | ||
* modify the code of user_extensions/WikiSyntax.py as follows | * modify the code of user_extensions/WikiSyntax.py as follows | ||
<pre> | <pre> | ||
#外站連結: 原語法為[url | title]修改為[url title] | |||
#TitleWikiWordDelimiterPAT = ur"\|" | |||
TitleWikiWordDelimiterPAT = ur"\s" | |||
# basic formatting | #basic formatting | ||
#黑體: 原語法*bold* 修改為'''bold''' | |||
#BoldRE = re.compile(ur"\*(?=\S)(?P<boldContent>" + PlainCharacterPAT + | #BoldRE = re.compile(ur"\*(?=\S)(?P<boldContent>" + PlainCharacterPAT + | ||
BoldRE = re.compile(ur"\'\'\'(?=\S)(?P<boldContent>" + PlainCharacterPAT + | BoldRE = re.compile(ur"\'\'\'(?=\S)(?P<boldContent>" + PlainCharacterPAT + | ||
ur"+?)\'\'\'", | ur"+?)\'\'\'", | ||
re.DOTALL | re.UNICODE | re.MULTILINE) | re.DOTALL | re.UNICODE | re.MULTILINE) | ||
#斜體: 原語法 _italic_ 修改為''italic'' | |||
#ItalicRE = re.compile(ur"\b_(?P<italicContent>" + PlainCharacterPAT + | #ItalicRE = re.compile(ur"\b_(?P<italicContent>" + PlainCharacterPAT + | ||
ItalicRE = re.compile(ur"\'\'(?=\S)(?P<italicContent>" + PlainCharacterPAT + | ItalicRE = re.compile(ur"\'\'(?=\S)(?P<italicContent>" + PlainCharacterPAT + | ||
| Line 20: | Line 26: | ||
ur"</?[A-Za-z][A-Za-z0-9]*(?:/| [^\n>]*)?>", | ur"</?[A-Za-z][A-Za-z0-9]*(?:/| [^\n>]*)?>", | ||
re.DOTALL | re.UNICODE | re.MULTILINE) | re.DOTALL | re.UNICODE | re.MULTILINE) | ||
# == hedding == <--- note that the space whould insert between = symbol and the hedding | |||
# == hedding == <--- note that the space whould insert between = symbol and the hedding text | |||
#標題5: 原語法 +++++ Heading5 修改為 ===== Heading5 ===== | |||
#Heading5RE = re.compile(ur"^\+{5}(?!\+) ?(?P<h5Content>" + | |||
Heading5RE = re.compile(u"^[ ]*=====([^=]) ?(?P<h5Content>" + | |||
PlainCharacterPAT + ur"+?)\=\=\=\=\=\n", | |||
re.DOTALL | re.UNICODE | re.MULTILINE) | |||
#標題4: 原語法 ++++ Heading4 修改為 ==== Heading4 ==== | |||
#Heading4RE = re.compile(u"^\\+\\+\\+\\+(?!\\+) ?(?P<h4Content>" + | #Heading4RE = re.compile(u"^\\+\\+\\+\\+(?!\\+) ?(?P<h4Content>" + | ||
Heading4RE = re.compile(u"^[ ]*====([^=]) ?(?P<h4Content>" + | Heading4RE = re.compile(u"^[ ]*====([^=]) ?(?P<h4Content>" + | ||
PlainCharacterPAT + ur"+?)\=\=\=\=\n", | PlainCharacterPAT + ur"+?)\=\=\=\=\n", | ||
re.DOTALL | re.UNICODE | re.MULTILINE) | re.DOTALL | re.UNICODE | re.MULTILINE) | ||
#標題3: 原語法 +++ Heading3 修改為 === Heading3 === | |||
#Heading3RE = re.compile(u"^\\+\\+\\+(?!\\+) ?(?P<h3Content>" + | #Heading3RE = re.compile(u"^\\+\\+\\+(?!\\+) ?(?P<h3Content>" + | ||
Heading3RE = re.compile(u"^[ ]*===([^=]) ?(?P<h3Content>" + | Heading3RE = re.compile(u"^[ ]*===([^=]) ?(?P<h3Content>" + | ||
PlainCharacterPAT + ur"+?)\=\=\=\n", | PlainCharacterPAT + ur"+?)\=\=\=\n", | ||
re.DOTALL | re.UNICODE | re.MULTILINE) | re.DOTALL | re.UNICODE | re.MULTILINE) | ||
#標題2: 原語法 ++ Heading2 修改為 == Heading2 == | |||
#Heading2RE = re.compile(u"^\\+\\+(?!\\+) ?(?P<h2Content>" + | #Heading2RE = re.compile(u"^\\+\\+(?!\\+) ?(?P<h2Content>" + | ||
Heading2RE = re.compile(u"^[ ]*==([^=]) ?(?P<h2Content>" + | Heading2RE = re.compile(u"^[ ]*==([^=]) ?(?P<h2Content>" + | ||
PlainCharacterPAT + ur"+?)\=\=\n", | PlainCharacterPAT + ur"+?)\=\=\n", | ||
re.DOTALL | re.UNICODE | re.MULTILINE) | re.DOTALL | re.UNICODE | re.MULTILINE) | ||
#標題1: 原語法 + Heading1 修改為 = Heading1 = | |||
#Heading1RE = re.compile(u"^\\+(?!\\+) ?(?P<h1Content>" + | #Heading1RE = re.compile(u"^\\+(?!\\+) ?(?P<h1Content>" + | ||
Heading1RE = re.compile(u"^[ ]*=([^=])(?P<h1Content>" + | Heading1RE = re.compile(u"^[ ]*=([^=])(?P<h1Content>" + | ||
| Line 40: | Line 60: | ||
== notes == | == notes == | ||
* Numeric bullet '#' & table syntax were not work. | |||
* Single bracket '[Page name]' will generate a wiki link. | |||
* internal table syntax conflict! via [http://blog.pcbeta.com/html/74/t-379074.html wikidPad 用WIKI的方式来做笔记] (2008) ''unverified'' | |||
== installation == | |||
* The WikidPad installer could extracted as portable software (ex: executed at USB) by [http://legroom.net/software/uniextract Universal Extractor] v1.5. | * The WikidPad installer could extracted as portable software (ex: executed at USB) by [http://legroom.net/software/uniextract Universal Extractor] v1.5. | ||
[[Category:Software]] [[Category:Wiki]] | |||
Latest revision as of 14:23, 21 June 2009
WikidPad - wiki notebook/outliner for windows (Wiki, forum)
| WikidPad | v.1.9beta13 |
modify the default WikidPad syntax to mediawiki compatible syntax[edit]
- Copy the C:\Program Files\WikidPad\extensions\WikiSyntax.py to C:\Program Files\WikidPad\user_extensions\WikiSyntax.py
- modify the code of user_extensions/WikiSyntax.py as follows
#外站連結: 原語法為[url | title]修改為[url title]
#TitleWikiWordDelimiterPAT = ur"\|"
TitleWikiWordDelimiterPAT = ur"\s"
#basic formatting
#黑體: 原語法*bold* 修改為'''bold'''
#BoldRE = re.compile(ur"\*(?=\S)(?P<boldContent>" + PlainCharacterPAT +
BoldRE = re.compile(ur"\'\'\'(?=\S)(?P<boldContent>" + PlainCharacterPAT +
ur"+?)\'\'\'",
re.DOTALL | re.UNICODE | re.MULTILINE)
#斜體: 原語法 _italic_ 修改為''italic''
#ItalicRE = re.compile(ur"\b_(?P<italicContent>" + PlainCharacterPAT +
ItalicRE = re.compile(ur"\'\'(?=\S)(?P<italicContent>" + PlainCharacterPAT +
ur"+?)\'\'",
re.DOTALL | re.UNICODE | re.MULTILINE)
HtmlTagRE = re.compile(
ur"</?[A-Za-z][A-Za-z0-9]*(?:/| [^\n>]*)?>",
re.DOTALL | re.UNICODE | re.MULTILINE)
# == hedding == <--- note that the space whould insert between = symbol and the hedding text
#標題5: 原語法 +++++ Heading5 修改為 ===== Heading5 =====
#Heading5RE = re.compile(ur"^\+{5}(?!\+) ?(?P<h5Content>" +
Heading5RE = re.compile(u"^[ ]*=====([^=]) ?(?P<h5Content>" +
PlainCharacterPAT + ur"+?)\=\=\=\=\=\n",
re.DOTALL | re.UNICODE | re.MULTILINE)
#標題4: 原語法 ++++ Heading4 修改為 ==== Heading4 ====
#Heading4RE = re.compile(u"^\\+\\+\\+\\+(?!\\+) ?(?P<h4Content>" +
Heading4RE = re.compile(u"^[ ]*====([^=]) ?(?P<h4Content>" +
PlainCharacterPAT + ur"+?)\=\=\=\=\n",
re.DOTALL | re.UNICODE | re.MULTILINE)
#標題3: 原語法 +++ Heading3 修改為 === Heading3 ===
#Heading3RE = re.compile(u"^\\+\\+\\+(?!\\+) ?(?P<h3Content>" +
Heading3RE = re.compile(u"^[ ]*===([^=]) ?(?P<h3Content>" +
PlainCharacterPAT + ur"+?)\=\=\=\n",
re.DOTALL | re.UNICODE | re.MULTILINE)
#標題2: 原語法 ++ Heading2 修改為 == Heading2 ==
#Heading2RE = re.compile(u"^\\+\\+(?!\\+) ?(?P<h2Content>" +
Heading2RE = re.compile(u"^[ ]*==([^=]) ?(?P<h2Content>" +
PlainCharacterPAT + ur"+?)\=\=\n",
re.DOTALL | re.UNICODE | re.MULTILINE)
#標題1: 原語法 + Heading1 修改為 = Heading1 =
#Heading1RE = re.compile(u"^\\+(?!\\+) ?(?P<h1Content>" +
Heading1RE = re.compile(u"^[ ]*=([^=])(?P<h1Content>" +
PlainCharacterPAT + ur"+?)\=\n",
re.DOTALL | re.UNICODE | re.MULTILINE)
notes[edit]
- Numeric bullet '#' & table syntax were not work.
- Single bracket '[Page name]' will generate a wiki link.
- internal table syntax conflict! via wikidPad 用WIKI的方式来做笔记 (2008) unverified
installation[edit]
- The WikidPad installer could extracted as portable software (ex: executed at USB) by Universal Extractor v1.5.