Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-21-2012, 08:44 AM   #1
grimborg
Enthusiast
grimborg shares his or her toysgrimborg shares his or her toysgrimborg shares his or her toysgrimborg shares his or her toysgrimborg shares his or her toysgrimborg shares his or her toysgrimborg shares his or her toysgrimborg shares his or her toysgrimborg shares his or her toysgrimborg shares his or her toysgrimborg shares his or her toys
 
Posts: 41
Karma: 5514
Join Date: Oct 2009
Location: Groningen, Netherlands
Device: PRS-T1
Help cleaning up the ebook viewer for periodicals

Hi,

Could you help me clean up a bit the standard PRS-T1 ebook viewer for periodicals?

I didn't like that when I open a periodical a big portion of the lower screen is dedicated to showing an empty bar with the button "Table of Contents". It's ugly. So I changed the layout.xml. I moved the button to the section bar, but.... Now where the ugly bar was now there's an empty black space (see screenshot), and for my life I can't seem to get rid of it.

I've been trying to remove it by giving things visibility "gone" here and there, but after of more than an hour of blindly poking I think I've run out of options (I'm an absolute newbie of Android tinkering) and I come here hoping that some of you can give me a hand or point me to the right direction

Here's the diff of what I changed on viewer_newspaper.xml.

And here's the resulting apk.

Thanks a lot!

Last edited by grimborg; 07-21-2012 at 08:47 AM.
grimborg is offline   Reply With Quote
Old 07-27-2012, 03:24 AM   #2
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 242
Karma: 1009530
Join Date: Apr 2011
Location: Geelong, Australia
Device: Sony PRS-T1, Sony PRS-350, Palm TX
Grimborg - there's some magic in the either the metadata.xml or the content.opf that is enabled when you set your device output profile in calibre to a Sony.

In an example metadata.xml here there's this fragment:
Code:
                <dcterms:conformsTo rdf:resource="http://xmlns.sony.net/e-book/prs/periodicals/1.0/newspaper/1.0"/>
                <dcterms:type rdf:resource="http://xmlns.sony.net/e-book/prs/datatype/newspaper"/>
                <dcterms:type rdf:resource="http://xmlns.sony.net/e-book/prs/datatype/periodical"/>
and in content.opf there's this:
Code:
    <meta name="calibre:publication_type" content="periodical:unknown:Autosport"/>
Look for references to "sony" in calibre/ebooks/epub/periodical.py in the calibre source if you want more details.

For some reason, only a few (maybe one in ten?) periodicals open for me in "periodical mode". The rest appear just like normal epubs. I have no idea why this happens!

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Reply

Tags
prs-t1

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get the file path of the ebook in the frontmost Ebook Viewer window johnsidi Development 1 07-16-2012 11:37 AM
Associating ebook files with Calibre ebook viewer zobop Library Management 1 06-24-2012 12:07 PM
[old-topic]ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc kovidgoyal Calibre 68 05-30-2011 09:46 PM
# user css for viewer.py/ ebook-viewer/ prs-650 tscamera Calibre 0 01-02-2011 07:28 PM
Possible to treat periodicals as...periodicals? Spankypoo Calibre 1 01-23-2010 11:06 PM


All times are GMT -4. The time now is 02:03 AM.


MobileRead.com is a privately owned, operated and funded community.