don't call fix_asian_name for now
This commit is contained in:
parent
35198f8787
commit
1992e5bc5c
1 changed files with 4 additions and 4 deletions
|
@ -35,13 +35,13 @@ def quote_string(string):
|
|||
return quote(string).replace('_', '%09').replace('%20', '_')
|
||||
|
||||
def fix_names(m):
|
||||
name = fix_asian_name(m.group(2))
|
||||
#name = fix_asian_name(m.group(2))
|
||||
name = m.group(2)
|
||||
return '<a href="/name=%s">%s</a>' % (quote_string(name.encode('utf-8')), name)
|
||||
|
||||
def fix_titles(m):
|
||||
return '<a href="/title=%s">%s</a>' % (
|
||||
quote_string(m.group(2).encode('utf-8')), m.group(2)
|
||||
)
|
||||
title = m.group(2)
|
||||
return '<a href="/title=%s">%s</a>' % (quote_string(title.encode('utf-8')), title)
|
||||
|
||||
def fix_links(t):
|
||||
t = re.sub('<a href="(/name/.*?)">(.*?)</a>', fix_names, t)
|
||||
|
|
Loading…
Reference in a new issue