[Wikisource-l] Back to the Scroll

2010-08-14 Thread Magnus Manske
Hi all, after some discussion on wikitech-l, I made a Google Books-like display demo for wikisource content. It should work on any multipage djvu or PDF. To link to it, you'll need: * The file name for the original (needs to be on commons) * The total number of pages (couldn't find a way to get th

Re: [Wikisource-l] Back to the Scroll

2010-08-14 Thread Klaus Graf
2010/8/14 Magnus Manske : > Hi all, > > after some discussion on wikitech-l, I made a Google Books-like > display demo for wikisource content. Please do not confuse en Wikisource with Wikisource. BTW: I don't understand the sense of this viewer. Klaus Graf ___

Re: [Wikisource-l] Back to the Scroll

2010-08-14 Thread thomasV1
ce-l@lists.wikimedia.org > Betreff: [Wikisource-l] Back to the Scroll > Hi all, > > after some discussion on wikitech-l, I made a Google Books-like > display demo for wikisource content. It should work on any multipage > djvu or PDF. To link to it, you'll need: > * The

Re: [Wikisource-l] Back to the Scroll

2010-08-14 Thread Magnus Manske
On Sat, Aug 14, 2010 at 7:26 PM, Klaus Graf wrote: > 2010/8/14 Magnus Manske : >> Hi all, >> >> after some discussion on wikitech-l, I made a Google Books-like >> display demo for wikisource content. > > Please do not confuse en Wikisource with Wikisource. Is that your way of saying "please enabl

Re: [Wikisource-l] Back to the Scroll

2010-08-14 Thread Magnus Manske
On Sat, Aug 14, 2010 at 8:00 PM, wrote: > nice demo ; it would be nice to make it more efficient. > > I see that you are generating images with a size that is adapted to the > user's screen. If you do this, hundreds of thumbnails of all possible sizes > will be generated at commons for each pag

Re: [Wikisource-l] Back to the Scroll

2010-08-14 Thread Thomas Voegtlin
> > Also, in on_body_scroll, you could avoid the for loop : divide > $('#body').position()['scrollTop'] by the height of an image > > 'fraid not - sometimes the rendered text runs longer than the image, > so the "row" can be higher than the image. Example: > http://toolserver.org/~magnus/book2scro

Re: [Wikisource-l] Back to the Scroll

2010-08-15 Thread Magnus Manske
On Sat, Aug 14, 2010 at 8:49 PM, Thomas Voegtlin wrote: >> > Also, in on_body_scroll, you could avoid the for loop : divide >> $('#body').position()['scrollTop'] by the height of an image >> >> 'fraid not - sometimes the rendered text runs longer than the image, >> so the "row" can be higher than

Re: [Wikisource-l] Back to the Scroll

2010-08-15 Thread Klaus Graf
2010/8/15 Magnus Manske : > And for Klaus, I added de.wikisource: > http://toolserver.org/~magnus/book2scroll/index.html?lang=de&numlen=3&file=Reymont_-_Der_Vampir.djvu&startpage=5&pages=318 Thank you! Klaus Graf ___ Wikisource-l mailing list Wikisour

Re: [Wikisource-l] Back to the Scroll

2010-08-15 Thread Magnus Manske
On Sun, Aug 15, 2010 at 4:20 PM, Klaus Graf wrote: > 2010/8/15 Magnus Manske : > >> And for Klaus, I added de.wikisource: >> http://toolserver.org/~magnus/book2scroll/index.html?lang=de&numlen=3&file=Reymont_-_Der_Vampir.djvu&startpage=5&pages=318 > > Thank you! And now with "search in this book"

Re: [Wikisource-l] Back to the Scroll

2010-08-15 Thread ThomasV
Magnus Manske a écrit : > On Sat, Aug 14, 2010 at 8:49 PM, Thomas Voegtlin wrote: > Also, in on_body_scroll, you could avoid the for loop : divide >>> $('#body').position()['scrollTop'] by the height of an image >>> >>> 'fraid not - sometimes the rendered text runs longer tha

Re: [Wikisource-l] Back to the Scroll

2010-08-15 Thread Magnus Manske
On Sun, Aug 15, 2010 at 6:46 PM, ThomasV wrote: > Magnus Manske a écrit : >> On Sat, Aug 14, 2010 at 8:49 PM, Thomas Voegtlin wrote: >> > Also, in on_body_scroll, you could avoid the for loop : divide > $('#body').position()['scrollTop'] by the height of an image 'fraid not

Re: [Wikisource-l] Back to the Scroll

2010-08-15 Thread Magnus Manske
Last one for today : Automatic retrieval of max page number and "number length" (e.g. "001" instead of just "1"). Manual parameters will override (and save a query). Cheers, Magnus ___ Wikisource-l mailing list Wikisource-l@lists.wikimedia.org https://l

Re: [Wikisource-l] Back to the Scroll

2010-08-16 Thread Alex Brollo
Thanks! I just tried to build a template like this: [[File:Library-logo-blue-outline.png|30px|link= http://toolserver.org/~magnus/book2scroll/index.html ?lang=it&file={{urlencode:{{PAGENAME]], to be used into Index: pages. But urlencode converts spaces into +, where your script doesn't like

Re: [Wikisource-l] Back to the Scroll

2010-08-16 Thread Magnus Manske
On Mon, Aug 16, 2010 at 1:02 PM, Alex Brollo wrote: > Thanks! > > I just tried to build a template like this: > > [[File:Library-logo-blue-outline.png|30px|link=http://toolserver.org/~magnus/book2scroll/index.html > ?lang=it&file={{urlencode:{{PAGENAME]], to be used into Index: pages. > > But

Re: [Wikisource-l] Back to the Scroll

2010-08-16 Thread Alex Brollo
2010/8/16 Magnus Manske > > > Not at all, though > > http://toolserver.org/~magnus/book2scroll/index.html?lang=it&file=De%27+matematici+italiani+anteriori+all%27invenzione+della+stampa.djvu

Re: [Wikisource-l] Back to the Scroll

2010-08-17 Thread Magnus Manske
On Mon, Aug 16, 2010 at 5:35 PM, Alex Brollo wrote: > > > 2010/8/16 Magnus Manske >> >> >> Not at all, though >> >> http://toolserver.org/~magnus/book2scroll/index.html?lang=it&file=De%27+matematici+italiani+anteriori+all%27invenzione+della+stampa.djvu >> seems to work fine. You can also try {{PA

Re: [Wikisource-l] Back to the Scroll

2010-08-17 Thread Billinghurst
Hi Magnus, The tool has choked on something for http://toolserver.org/~magnus/book2scroll/index.html?lang=en&file=Mrs_Caudle%2527s_curtain_lectures.djvu&startpage=1 might it be the apostrophe in the url? This url just shows the one page, and no subsequent pages, and that is for whichever star

Re: [Wikisource-l] Back to the Scroll

2010-08-17 Thread Alex Brollo
2010/8/17 Billinghurst > Hi Magnus, > > The tool has choked on something for > > http://toolserver.org/~magnus/book2scroll/index.html?lang=en&file=Mrs_Caudle%2527s_curtain_lectures.djvu&startpage=1

Re: [Wikisource-l] Back to the Scroll

2010-08-17 Thread Alex Brollo
2010/8/17 Alex Brollo Marcus, a challenge for you... http://toolserver.org/~magnus/book2scroll/index.html?lang=it&file=Hymnus_in_Romam.djvu&startpage=9 This is a text from it.source using {{Iwp

Re: [Wikisource-l] Back to the Scroll

2010-08-17 Thread Magnus Manske
On Tue, Aug 17, 2010 at 2:52 PM, Alex Brollo wrote: > 2010/8/17 Alex Brollo > > Marcus, a challenge for you... > > http://toolserver.org/~magnus/book2scroll/index.html?lang=it&file=Hymnus_in_Romam.djvu&startpage=9 > > This is a text from it.source using {{Iwpage}} ThomasV's trick, linking many >

Re: [Wikisource-l] Back to the Scroll

2010-08-17 Thread Magnus Manske
On Tue, Aug 17, 2010 at 3:34 PM, Magnus Manske wrote: > On Tue, Aug 17, 2010 at 2:52 PM, Alex Brollo wrote: >> 2010/8/17 Alex Brollo >> >> Marcus, a challenge for you... >> >> http://toolserver.org/~magnus/book2scroll/index.html?lang=it&file=Hymnus_in_Romam.djvu&startpage=9 >> >> This is a text

Re: [Wikisource-l] Back to the Scroll

2010-08-17 Thread Magnus Manske
On Tue, Aug 17, 2010 at 2:52 PM, Alex Brollo wrote: > 2010/8/17 Alex Brollo > > Marcus, a challenge for you... > > http://toolserver.org/~magnus/book2scroll/index.html?lang=it&file=Hymnus_in_Romam.djvu&startpage=9 > > This is a text from it.source using {{Iwpage}} ThomasV's trick, linking many >

Re: [Wikisource-l] Back to the Scroll

2010-08-17 Thread Alex Brollo
2010/8/17 Magnus Manske > > > Now reloads transcluded pages from the correct language automatically, > no textlang parameter neccessary! > > Magnus > Great! :-) Alex ___ Wikisource-l mailing list Wikisource-l@lists.wikimedia.org https://lists.wikimedi