# HG changeset patch # User casties # Date 1351248823 -7200 # Node ID fc861a6cef1707bd5167c80ea09152ad76c004b1 # Parent 024b7516243787c4a00731118a9b28368487ccee update in w-tag format. diff -r 024b75162437 -r fc861a6cef17 MpiwgXmlTextServer.py --- a/MpiwgXmlTextServer.py Fri Oct 19 18:51:47 2012 +0200 +++ b/MpiwgXmlTextServer.py Fri Oct 26 12:53:43 2012 +0200 @@ -212,7 +212,7 @@ normMode = 'norm' # TODO: this should not be necessary when the backend is fixed - textParams['normalization'] = normMode + #textParams['normalization'] = normMode if not mode: # default is dict @@ -273,7 +273,7 @@ logging.debug("pagediv: %s"%repr(pagediv)) if pagediv is not None: # add textmode and normMode classes - pagediv.set('class', 'text %s %s'%(textmode, normMode)) + #pagediv.set('class', 'text %s %s'%(textmode, normMode)) self._processWTags(textmode, normMode, pagediv) #self._processPbTag(pagediv, pageinfo) self._processFigures(pagediv, docinfo) @@ -342,7 +342,7 @@ return serialize(pagediv) - logging.error("getTextPage: error in text mode %s or text!"%(textmode)) + logging.error("getTextPage: error in text mode %s or in text!"%(textmode)) return None def _processWTags(self, textMode, normMode, pagediv): @@ -357,7 +357,7 @@ wtag.remove(wtag.find("span[@class='nodictionary reg']")) wtag.remove(wtag.find("span[@class='nodictionary norm']")) # delete non-matching children of a-tag and suppress remaining tag name - atag = wtag.find("a[@class='dictionary']") + atag = wtag.find("*[@class='dictionary']") if normMode == 'orig': atag.remove(atag.find("span[@class='reg']")) atag.remove(atag.find("span[@class='norm']")) @@ -373,7 +373,7 @@ else: # delete a-tag - wtag.remove(wtag.find("a[@class='dictionary']")) + wtag.remove(wtag.find("*[@class='dictionary']")) # delete non-matching children and suppress remaining tag name if normMode == 'orig': wtag.remove(wtag.find("span[@class='nodictionary reg']")) diff -r 024b75162437 -r fc861a6cef17 zpt/viewer_index.zpt --- a/zpt/viewer_index.zpt Fri Oct 19 18:51:47 2012 +0200 +++ b/zpt/viewer_index.zpt Fri Oct 26 12:53:43 2012 +0200 @@ -102,7 +102,7 @@ - +

Presentation context