def unclear_page_caret(self, pageno): pageno = self._check_pageno(pageno) wl = self.get_wordlist_page(pageno) for wc in wl: w = str(wc[-1]) unclist = [] if "^" in w: coord = _slice(wc, 1, 4) #book, page, coords, word, column=None, par=None, line=None): uw = unclear_word(self.bID, pageno, coord, w) unclist.append(uw) return unclist
def unclear_page_caret(self, pageno): pageno = self._check_pageno(pageno) wl = self.get_wordlist_page(pageno) for wc in wl: w = str(wc[-1]) unclist = [] if "^" in w: coord = _slice(wc,1,4) #book, page, coords, word, column=None, par=None, line=None): uw = unclear_word(self.bID, pageno, coord, w) unclist.append(uw) return unclist
def unclear_caret(self): unclist = [] for pn in range(1, int(self.pages)): wl = self.get_wordlist_page(pn) for wc in wl: w = str(wc[-1]) if "^" in w: if len(wc) != 6: raise IOError coord = _slice(wc, 1, 4) #book, page, coords, word, column=None, par=None, line=None): uw = unclear_word(self.bID, pn, coord, w) unclist.append(uw) return unclist
def unclear_caret(self): unclist = [] for pn in range(1, int(self.pages)): wl = self.get_wordlist_page(pn) for wc in wl: w = str(wc[-1]) if "^" in w: if len(wc) != 6: raise IOError coord = _slice(wc,1,4) #book, page, coords, word, column=None, par=None, line=None): uw = unclear_word(self.bID, pn, coord, w) unclist.append(uw) return unclist