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):