Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/epubview
Commit message (Collapse)AuthorAgeFilesLines
* Fix crash in search with epub files - part of SL #3924Gonzalo Odiard2012-09-272-9/+9
| | | | | | This patch also highligth the results as in Browse. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Use property in webkit to check if there are text selected to copyGonzalo Odiard2012-09-271-19/+2
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Comment unneeded codeGonzalo Odiard2012-09-261-8/+8
| | | | | | | | | 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>
* Avoid error if can't uncompress any file in a epub fileGonzalo Odiard2012-09-261-4/+8
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Implement kindle like change page in epub backendGonzalo Odiard2012-09-122-1/+35
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Page number should be zero based, fix epub backend - SL #3864Gonzalo Odiard2012-09-101-1/+2
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Keep the text position in the epub files - SL #3861Gonzalo Odiard2012-09-101-0/+19
| | | | | | When the zoom level change or the index view to is shown / hidden. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix index management in epub files - SL #3853Gonzalo Odiard2012-09-103-15/+105
| | | | | | | | | | 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>
* Show the table of contents in a panelGonzalo Odiard2012-09-101-1/+1
| | | | | | | | | | | | 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>
* Apply a default marging to epub pagesGonzalo Odiard2012-08-161-1/+2
| | | | | | | This margin improves readability and avoid having the bookmark over the text. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Replace te use of lxml etree by xml.etree.ElementTree - SL #3418Gonzalo Odiard2012-04-103-3/+3
| | | | | | | 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>
* Save and restore the page with epub files - SL #3413Gonzalo Odiard2012-04-093-18/+10
| | | | | | | | | | | | | | | | | 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>
* Import only the needed backendGonzalo Odiard2012-03-061-4/+0
| | | | | | | | 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>
* Delay cleanup in the pagination job to avoid a random crashGonzalo Odiard2012-03-061-1/+4
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Do not create the symbolic link if already existGonzalo Odiard2012-03-021-1/+2
| | | | | | | 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>
* Re-enable text to speech in epub backendGonzalo Odiard2012-03-021-2/+0
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Wait until one file is loaded before trying to load another fileGonzalo Odiard2012-02-071-26/+8
| | | | | | | 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>
* Use load_uri instead of deprecated open webkitgtk methodGonzalo Odiard2012-02-061-2/+2
|
* Do a symlink instead of a copy from xml to xhtmlGonzalo Odiard2012-02-061-1/+1
|
* Add more controls to not load the same file many timesGonzalo Odiard2012-02-061-1/+4
|
* Change the way the scrollbars are displayedGonzalo Odiard2012-02-061-8/+13
| | | | | | | | | | | | | 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>
* In epubview do not emit a signal if the page has not changedGonzalo Odiard2012-02-021-0/+2
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix text of file already loaded in epubview._load_pageGonzalo Odiard2012-02-021-4/+4
| | | | | | The code was comparing a filename with a URI Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Initial port to Gtk3Gonzalo Odiard2011-12-085-67/+78
|
* Home/End keys for going to start and end of document in epub adapterGonzalo Odiard2011-06-101-1/+12
| | | | | | Signed-off-by: Manuel QuiƱones <manuel.por.aca@gmail.com> Acked-by: Gonzalo Odiard <gonzalo@laptop.org>
* Check for page load in get_page_height functionManuel QuiƱones2011-05-311-4/+6
|
* Disable word highlighting in epub backendGonzalo Odiard2011-05-311-0/+4
| | | | | The solution implemented using javascript is not good. There are a problema also, creating tmp files and not removing them.
* Fix #10806 - No scrolling in ReadGonzalo Odiard2011-05-311-2/+12
| | | | | | 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.
* Highligh of spoken word in epub backend implemented.Gonzalo Odiard2011-02-253-0/+112
| | | | Is not working right - Temporary Patch
* Initial implementation of text to speech in epub backendGonzalo Odiard2011-02-241-0/+33
| | | | No highlight of spoken word yet.
* Pep8 corrections for epubview filesGonzalo Odiard2011-02-246-62/+117
|
* Get back functionalities in EPUB frameworkGonzalo Odiard2011-02-122-16/+32
| | | | | | - 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
* adapt to evince 2.30 API (SL#1900)Lucian Branescu Mihaila2011-01-202-20/+18
| | | | | | | | | | | | 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>
* pep8 cleanup: fix whitespaceSascha Silbe2011-01-206-46/+40
| | | | Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
* fix EOL spacesSascha Silbe2011-01-207-211/+211
| | | | Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
* Fix occasional crash during startupSayamindu Dasgupta2009-12-231-1/+1
|
* Support footnotes and intra-document linksSayamindu Dasgupta2009-11-292-4/+30
|
* Workaround https://bugs.launchpad.net/soas/+bug/483231Sayamindu Dasgupta2009-11-161-0/+5
|
* Fix page dimension fixingSayamindu Dasgupta2009-10-081-1/+1
|
* Fix search in epubSayamindu Dasgupta2009-09-211-2/+2
|
* Sync with pyepubview, revision 25Sayamindu Dasgupta2009-09-026-51/+182
|
*