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 '' 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 @@ -<dtml-var "aq_parent.title"><dtml-var id> subscription +<dtml-var "aq_parent.title"><dtml-var id> �� ������Ͽ(subscription) @@ -13,9 +13,9 @@

    -home +home -Mail subscription +�᡼����Ͽ(Mail subscription)

    @@ -30,6 +30,11 @@
    +�����Υڡ����ޤ��Ϥ���Wiki���������Τ��Ф����ɤ���Ͽ������ޤ��� + ��Ͽ�Ԥ��Żҥ᡼���ͳ�ǡ������ȤΥ��ԡ���������뤳�Ȥˤʤ�ޤ� +(���ε�ǽ�ϡ������ȴ����Ԥ������ͭ���ˤ��ʤ��¤����ޤ���)�� +��Ͽ���ʤ��ʤ�С�&dtml-id;�����ޤ��礦��
    + You can subscribe to this page or to the whole wiki. Subscribers receive a copy of comments via email (but not general edits, unless enabled by the site admin). @@ -37,7 +42,7 @@

    -Your email address: +���ʤ���Email���ɥ쥹(Your email address): @@ -53,6 +58,14 @@ bgcolor="#ff7777" > +���ʤ��ϡ����Υڡ����� + +��Ͽ�� + +̤��Ͽ + +�Ǥ���
    + You are currently subscribed
    @@ -62,9 +75,9 @@ to this page.
    - + - +
    @@ -75,6 +88,13 @@ bgcolor="#ff7777"
    > +���ʤ��ϡ�����Wiki���������Τ��Ф� + +��Ͽ���Ƥ��ޤ� + +��Ͽ���Ƥ��ޤ��� + +��
    You are currently subscribed
    @@ -84,9 +104,9 @@ to the whole wiki.
    - + - +
    @@ -96,13 +116,14 @@ -You are subscribed to these other pages:
    +���ʤ�����Ͽ���Ƥ��뤽��¾�Υڡ��� +(You are subscribed to these other pages):
    -You have no other page subscriptions. +¾�ˡ����ʤ�����Ͽ���Ƥ���ڡ����Ϥ���ޤ���
    (You have no other page subscriptions.)
    @@ -114,7 +135,7 @@ - subscribers: +�ؤ���Ͽ��(subscribers):
    @@ -131,7 +152,7 @@ -wiki subscribers: +Wiki�ؤ���Ͽ��(wiki subscribers):