Thread: CFI Parser
View Single Post
Old 01-14-2019, 04:13 AM   #3
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,227
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Hi, Kovid.

By the spec, a epubcfi reference starts at the spine (at least that was what I understood).

Let's supose I call the parser with just that:
Code:
epubcfi(/4[idParaDest-e]/2/4[toc])
How would it know this reference is about "toc.xhtml"?

-------------------------

Another question: how can I use the parser the get line and column? I thought the parser would get the CFI reference and convert it to (col,line).
thiago.eec is offline   Reply With Quote