Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 154:6d91fd196032
characterNormalization
author | abukhman |
---|---|
date | Tue, 24 Aug 2010 11:20:20 +0200 |
parents | 6008ccfb0c9e |
children | 47f8cfc180bd |
comparison
equal
deleted
inserted
replaced
153:6008ccfb0c9e | 154:6d91fd196032 |
---|---|
135 docpath = docinfo['textURLPath'] | 135 docpath = docinfo['textURLPath'] |
136 path = docinfo['textURLPath'] | 136 path = docinfo['textURLPath'] |
137 url = docinfo['url'] | 137 url = docinfo['url'] |
138 viewMode= pageinfo['viewMode'] | 138 viewMode= pageinfo['viewMode'] |
139 tocMode = pageinfo['tocMode'] | 139 tocMode = pageinfo['tocMode'] |
140 characterNormalization = pageinfo ['characterNormalization'] | 140 #characterNormalization = pageinfo ['characterNormalization'] |
141 tocPN = pageinfo['tocPN'] | 141 tocPN = pageinfo['tocPN'] |
142 selfurl = self.absolute_url() | 142 selfurl = self.absolute_url() |
143 if mode == "text_dict": | 143 if mode == "text_dict": |
144 textmode = "textPollux" | 144 textmode = "textPollux" |
145 else: | 145 else: |
146 textmode = mode | 146 textmode = mode |
147 logging.debug("documentViewer (characterNormalization) characterNormalization: %s"%(characterNormalization)) | 147 #logging.debug("documentViewer (characterNormalization) characterNormalization: %s"%(characterNormalization)) |
148 textParam = "document=%s&mode=%s&pn=%s"%(docpath,textmode,pn) | 148 textParam = "document=%s&mode=%s&pn=%s"%(docpath,textmode,pn) |
149 if highlightQuery is not None: | 149 if highlightQuery is not None: |
150 textParam +="&highlightQuery=%s&sn=%s"%(highlightQuery,sn) | 150 textParam +="&highlightQuery=%s&sn=%s"%(highlightQuery,sn) |
151 | 151 |
152 pagexml = self.getServerData("page-fragment.xql",textParam) | 152 pagexml = self.getServerData("page-fragment.xql",textParam) |