Mercurial > hg > documentViewer
changeset 157:de82ae2e9850
characterNormalization
author | abukhman |
---|---|
date | Tue, 24 Aug 2010 11:33:26 +0200 |
parents | c94e206ba32c |
children | 4f4fe4e56ffe |
files | documentViewer.py zpt/page_main_text.zpt zpt/page_main_text_dict.zpt |
diffstat | 3 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/documentViewer.py Tue Aug 24 11:30:45 2010 +0200 +++ b/documentViewer.py Tue Aug 24 11:33:26 2010 +0200 @@ -701,7 +701,7 @@ pageinfo['numgroups'] += 1 pageinfo['viewMode'] = viewMode pageinfo['tocMode'] = tocMode - pageinfo['characterNormalization'] = self.REQUEST.get('characterNormalization','') + #pageinfo['characterNormalization'] = self.REQUEST.get('characterNormalization','') pageinfo['query'] = self.REQUEST.get('query',' ') pageinfo['queryType'] = self.REQUEST.get('queryType',' ') pageinfo['querySearch'] =self.REQUEST.get('querySearch', 'fulltext')
--- a/zpt/page_main_text.zpt Tue Aug 24 11:30:45 2010 +0200 +++ b/zpt/page_main_text.zpt Tue Aug 24 11:33:26 2010 +0200 @@ -1,4 +1,4 @@ -<tal:block tal:define="pageinfo python:options.get('pageinfo',None); docinfo python:options.get('docinfo',None) ;highlightQuery python:pageinfo.get('highlightQuery','');sn python:pageinfo.get('sn',''); characterNormalization python:pageinfo.get('characterNormalization','')"> - <div tal:content="structure python:here.getTextPage(mode='text',pn=pageinfo['current'],docinfo=docinfo, highlightQuery=highlightQuery, sn=sn, pageinfo=pageinfo, characterNormalization=characterNormalization)"></div> +<tal:block tal:define="pageinfo python:options.get('pageinfo',None); docinfo python:options.get('docinfo',None) ;highlightQuery python:pageinfo.get('highlightQuery','');sn python:pageinfo.get('sn','')"> + <div tal:content="structure python:here.getTextPage(mode='text',pn=pageinfo['current'],docinfo=docinfo, highlightQuery=highlightQuery, sn=sn, pageinfo=pageinfo)"></div> </tal:block> \ No newline at end of file
--- a/zpt/page_main_text_dict.zpt Tue Aug 24 11:30:45 2010 +0200 +++ b/zpt/page_main_text_dict.zpt Tue Aug 24 11:33:26 2010 +0200 @@ -1,3 +1,3 @@ -<tal:block tal:define="pageinfo python:options.get('pageinfo',None); docinfo python:options.get('docinfo',None) ;highlightQuery python:pageinfo.get('highlightQuery','');sn python:pageinfo.get('sn','');characterNormalization python:pageinfo.get('characterNormalization','')"> - <div tal:content="structure python:here.getTextPage(mode='text_dict',pn=pageinfo['current'],docinfo=docinfo, highlightQuery=highlightQuery, sn=sn, pageinfo=pageinfo, characterNormalization=characterNormalization)"></div> +<tal:block tal:define="pageinfo python:options.get('pageinfo',None); docinfo python:options.get('docinfo',None) ;highlightQuery python:pageinfo.get('highlightQuery','');sn python:pageinfo.get('sn','')"> + <div tal:content="structure python:here.getTextPage(mode='text_dict',pn=pageinfo['current'],docinfo=docinfo, highlightQuery=highlightQuery, sn=sn, pageinfo=pageinfo"></div> </tal:block> \ No newline at end of file