diff -ruN ./ZWiki-0.11.0JP001/Parents.py ./ZWiki/Parents.py
--- ./ZWiki-0.11.0JP001/Parents.py Mon Oct 14 15:33:12 2002
+++ ./ZWiki/Parents.py Fri Oct 11 08:59:49 2002
@@ -155,7 +155,7 @@
realid=self.pageWithName(myid).id())
return '%s コンテンツマップ(contents)\n' % \
- (self.page_url(), quote(self.title_or_id()), titletxt) + \
+ (self.page_url(), quote_i(self.title_or_id()), titletxt) + \
hierarchy + '\n
'
def deepappend(self, nesting, pageid):
@@ -219,7 +219,7 @@
linktitle = ''
singletons.append(\
'%s'\
- % (rel, quote(i), quote(i),
+ % (rel, quote_i(i), quote(i),
linktitle,
i))
else:
@@ -269,8 +269,8 @@
except:
linktitle = ''
_got.append(\
- '%s
%s <-- you are here'
- % (indent, rel, quote(n[0]), quote(n[0]),
+ '%s %s <-- 現在地(you are here)'
+ % (indent, rel, quote_i(n[0]), quote(n[0]),
linktitle,
nodenm))
else:
@@ -281,7 +281,7 @@
linktitle = ''
_got.append(\
'%s %s'
- % (indent, rel, quote(n[0]), quote(n[0]),
+ % (indent, rel, quote_i(n[0]), quote(n[0]),
linktitle,
nodenm))
if len(n) > 1:
@@ -310,7 +310,7 @@
linktitle = ''
_got.append(\
'%s %s <-- 現在地(you are here)'
- % (indent, rel, quote(i), quote(i),
+ % (indent, rel, quote_i(i), quote(i),
linktitle,
inm))
else:
@@ -321,7 +321,7 @@
linktitle = ''
_got.append(\
'%s %s'
- % (indent, rel, quote(i), quote(i),
+ % (indent, rel, quote_i(i), quote(i),
linktitle,
inm))
_got.append("")
@@ -345,7 +345,7 @@
linktitle = ''
_got.append(\
'%s %s <-- 現在地(you are here)'
- % (indent, rel, quote(n), quote(n),
+ % (indent, rel, quote_i(n), quote(n),
linktitle,
inm))
else:
@@ -356,7 +356,7 @@
linktitle = ''
_got.append(\
'%s %s'
- % (indent, rel, quote(n), quote(n),
+ % (indent, rel, quote_i(n), quote(n),
linktitle,
inm))
@@ -543,3 +543,45 @@
got.insert(0, page)
return got
+def quote_i(u=''):
+ """Enable to use for wiki name as Japanese language.
+ by Nobuyuki Koyoshi in Japan. 2002-10-10
+ """
+ ul=quote_x(u)
+ if u==ul:
+ return u
+ else:
+ if ul[0:1]=='_' and not u[0:1]=='_':
+ return 'X%s' % (ul)
+ else:
+ return ul
+
+always_safe = ('ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+ 'abcdefghijklmnopqrstuvwxyz'
+ '0123456789' '_.-')
+_fast_safe_test = always_safe + '/'
+_fast_safe = None
+
+def quote_x(s, safe = '/'):
+ safe = always_safe + safe
+ if _fast_safe_test == safe:
+ return _fast_quote_x(s)
+ res = list(s)
+ for i in range(len(res)):
+ c = res[i]
+ if c not in safe:
+ res[i] = '_%02x' % ord(c)
+ return ''.join(res)
+
+def _fast_quote_x(s):
+ global _fast_safe
+ if _fast_safe is None:
+ _fast_safe = {}
+ for c in _fast_safe_test:
+ _fast_safe[c] = c
+ res = list(s)
+ for i in range(len(res)):
+ c = res[i]
+ if not _fast_safe.has_key(c):
+ res[i] = '_%02x' % ord(c)
+ return ''.join(res)
diff -ruN ./ZWiki-0.11.0JP001/templates/defaults/editform.dtml ./ZWiki/templates/defaults/editform.dtml
--- ./ZWiki-0.11.0JP001/templates/defaults/editform.dtml Mon Oct 14 15:33:13 2002
+++ ./ZWiki/templates/defaults/editform.dtml Sat Oct 12 01:02:12 2002
@@ -22,9 +22,10 @@
+&dtml-id;の
-+作成(Creating)
-+編集(Editing) &dtml-id;
+作成(Creating
+編集(Editing &dtml-id;)
diff -ruN ./ZWiki-0.11.0JP001/templates/defaults/subscribeform.dtml ./ZWiki/templates/defaults/subscribeform.dtml
--- ./ZWiki-0.11.0JP001/templates/defaults/subscribeform.dtml Mon Oct 14 15:33:13 2002
+++ ./ZWiki/templates/defaults/subscribeform.dtml Mon Oct 14 15:22:55 2002
@@ -1,6 +1,6 @@
- subscription
+ の 購読登録(subscription)
@@ -13,9 +13,9 @@
-
+
-Mail subscription
+メール登録(Mail subscription)
|
@@ -30,6 +30,11 @@