| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This patch also highligth the results as in Browse.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
|
| |
Part of the text to speech unused code. Grrr...
When we implement tts in epub, we need see how process only a part
of the document, because chapters can be really big, is different
than in the txt backend where we are working with one page by time.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
| |
When the zoom level change or the index view to is shown / hidden.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
|
|
| |
Epub index can point to internal links in the content files.
This patch manage this cases. A particular case was found in a
file generated in UY (see attachment in the ticket) where the links
don't point to the start of a file, but to the end of the previous file.
Then, if the index is at the end of a file, we open the next file.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The table of contents, actually implemented in epub backend,
is displayed in a later panel, instead of in a combo,
to do easier the interaction with touch, and provide context.
The code is now more general to allow the implementation
in the pdf backend too.
The button used to display the table of contents, was moved
from the main toolbar to the view subtoolbar.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
| |
This margin improves readability and avoid having the bookmark
over the text.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
| |
The API is compatible and is included in python from version 2.5
This change enable us to remove python-lxml from the OLPC image.
Signed-of-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the user closed and reopened the activity, reading a epub file,
the page was lost.
The problem had two sources:
The invisible webkit widget used to measure the document height,
can add a scrollbar (randomly) then the inner width change,
the text folw differently and the inner height change. This problem is solved
setting document.documentElement.style.overflow = hidden in the widget
when is used to measure.
The second problem was, after the document was loaded and positioned
the epubview tried to change the scroll position again.
This patch include a minor change in readactivity.py, only to avoid
call many times view.get_current_page.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
| |
The activity only open one tipe of file at time, but was importing
all the backends. Now import the needed backend after having the mimetype,
to have better startup times and lower memory use.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
| |
We use a symbolic link from the xml file to a xhtml file
because webkit is confused with the extension.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
| |
Added a semaphore and removed code where the change of pages
from one file to another was miscalculated.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the gtk2 activity, we hidden the the vertical scrollbar in the webview
setting the policy to NEVER, and showed another independent scollbar,
and moved it doing the calcule as if all the different documents in the epub book
was a single big document.
In gtk3 this is not working, the values needed to do the calculation
are all zero, if the scrollbar si hidden.
The workaround implemented is use a overlay container to place the independent
scrollbar over the unused scrollbar.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
| |
The code was comparing a filename with a URI
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
| |
|
|
|
|
|
|
| |
Signed-off-by: Manuel QuiƱones <manuel.por.aca@gmail.com>
Acked-by: Gonzalo Odiard <gonzalo@laptop.org>
|
| |
|
|
|
|
|
| |
The solution implemented using javascript is not good.
There are a problema also, creating tmp files and not removing them.
|
|
|
|
|
|
| |
Read had implemented scrolling by page (with page up/down keys),
this patch implement scroll by steps with the keys up/down
in pdf and epub backends.
|
|
|
|
| |
Is not working right - Temporary Patch
|
|
|
|
| |
No highlight of spoken word yet.
|
| |
|
|
|
|
|
|
| |
- TOC, zoom and find are working in epub
- All the code specific to a backend is moved outsude of readactivity.py, readtoolbar.py and readtopbar.py
- Rename adapter classes to avoid confusion
|
|
|
|
|
|
|
|
|
|
|
|
| |
PDFs are working fine, EPub support is limited:
- search not working
- copy to clipboard disabled
- zoom disabled
- page next/prev disabled
Tested-by: Sascha Silbe <sascha-pgp@silbe.org>
[combined into a single patch, wrote patch description, minor style clean-ups]
Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
|
|
|
|
| |
Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
|
|
|
|
| |
Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|