Changeset 579:fc861a6cef17 in documentViewer for MpiwgXmlTextServer.py


Ignore:
Timestamp:
Oct 26, 2012, 10:53:43 AM (12 years ago)
Author:
casties
Branch:
default
Message:

update in w-tag format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpiwgXmlTextServer.py

    r577 r579  
    213213       
    214214        # TODO: this should not be necessary when the backend is fixed               
    215         textParams['normalization'] = normMode
     215        #textParams['normalization'] = normMode
    216216       
    217217        if not mode:
     
    274274            if pagediv is not None:
    275275                # add textmode and normMode classes
    276                 pagediv.set('class', 'text %s %s'%(textmode, normMode))
     276                #pagediv.set('class', 'text %s %s'%(textmode, normMode))
    277277                self._processWTags(textmode, normMode, pagediv)
    278278                #self._processPbTag(pagediv, pageinfo)
     
    343343                return serialize(pagediv)
    344344                   
    345         logging.error("getTextPage: error in text mode %s or text!"%(textmode))
     345        logging.error("getTextPage: error in text mode %s or in text!"%(textmode))
    346346        return None
    347347
     
    358358                wtag.remove(wtag.find("span[@class='nodictionary norm']"))
    359359                # delete non-matching children of a-tag and suppress remaining tag name
    360                 atag = wtag.find("a[@class='dictionary']")
     360                atag = wtag.find("*[@class='dictionary']")
    361361                if normMode == 'orig':
    362362                    atag.remove(atag.find("span[@class='reg']"))
     
    374374            else:
    375375                # delete a-tag
    376                 wtag.remove(wtag.find("a[@class='dictionary']"))
     376                wtag.remove(wtag.find("*[@class='dictionary']"))
    377377                # delete non-matching children and suppress remaining tag name
    378378                if normMode == 'orig':
Note: See TracChangeset for help on using the changeset viewer.