Talk:Wikisource Pagelist Widget

Latest comment: 3 years ago by מושך בשבט in topic Widget rollout: Feedback

Roman Number and other indic languages number/alphabets

Page list development wikisource Index page

Hi, I have shown the demo area, this is nice. I wants few improvisation for our Indic Wikisource specific or Bengali Wikisource specific need. If we add "1to16=roman" it will shown the 1to16 pages as roman number automatically Have a look at screenshot of your demo page. In Bengali books, there are lots of books, as like roman, they user old numbering system "আনা", (৴৹= ১ আনা,৵৹=২ আনা,৶৹=৩ আনা, ৷৹= ৪ আনা,৷৴৹= ৫ আনা,৷৵৹=৬ আনা,৷৶৹=৭ আনা,৷৷৹=৮ আনা,৷৷৴৹=৯ আনা,৷৷৵৹ =১০ আনা,৷৷৶৹=১১ আনা,৸৹=১২ আনা,৸৴৹=১৩ আনা, ৸৵৹=১৪ আনা,৸৶৹=১৫ আনা, ১্= ১ টাকা).

So we wants if we add "1to16=Bengali Ana", it should shown this ( ৴৹,৵৹,৶৹,৷৹,.....) as old Bengali numeric system. And also "1to16=Bengali Alpha",it should shown this ( অ আ ই ঈ...) automatically.Jayantanth (talk) 09:58, 26 June 2020 (UTC)Reply

Have a look at this book: আসাম ও বঙ্গদেশের বিবাহ পদ্ধতিJayantanth (talk) 11:45, 26 June 2020 (UTC)Reply
Sorry for the late reply... I don't think we will be able to implement that particular syntax (1to16=Bengali Anna) but we'll certainly allow individual wikis to define a list of commonly used page numbers that can be presented in a dropdown/form format in the Wikisource Pagelist Widget. :) Sohom Datta (talk) 06:45, 29 June 2020 (UTC)Reply

Thumbnail pre-request


This has amazing potential, doing pagelists is incredibly frustrating at the moment. I was about to start hacking something up in Python just to relieve the pain.

One thing I think might be a good idea is pre-requesting (e.g. by an HTTP HEAD request) the thumbnails. PDF thumbnails are especially slow and can take 10 seconds or more to generate, but DjVu is not fast either. It would be nice if the thumbnails could be requested ahead of time, so they can be cached for when users want to look at those pages. Inductiveload (talk) 12:12, 3 August 2020 (UTC)Reply

Will take a look at that. I'm not really sure if pre-requesting a large number of thumbnails would put a large enough load penalty especially for users with poor internet connectivity and/or metered connections though. Sohom Datta (talk) 15:21, 10 August 2020 (UTC)Reply
@Sohom data: Sorry, I didn't see this reply. The "HEAD" request wouldn't put too much load on the user's connection, as the image data isn't transferred. Instead the image is rendered and placed into the thumbnail cache, so when the user does request it, the server already has it on hand. Not sure if that would be deemed unacceptable load on the thumbnailer, though. Inductiveload (talk) 10:25, 11 September 2020 (UTC)Reply

First Iteration: Feedback


You can test the widget by editing the following Index page on Beta Wikisource:

There is a new ‘Preview pagelist’ button under the pagelist field. Click it to get a preview, and then click on any page number in the preview to open the widget.

You can also create a fresh Index Page for any other PDF or DjVu from Wikimedia Commons and test it

What is your general opinion about the Pagelist Widget?


Is it obvious how to use the widget? If not, what is difficult to understand?

@JogiAsad: You need to create a new account to Beta Wikisource if you want to test it further. --SGill (WMF) (talk) 14:52, 18 August 2020 (UTC)Reply
@JogiAsad: The pagelist widget isn't account specific, it can be enabled wiki wide by tweaking the Index: page configuration. Sohom Datta (talk) 06:53, 19 August 2020 (UTC)Reply

What other changes would you like to suggest in order to improve the widget further?

I'm not really sure we should add more buttons. The interface is already pretty busy. I'll look into hooking up some keyboard shortcuts to the interface to allow easier navigation. Sohom Datta (talk) 06:27, 16 September 2020 (UTC)Reply
  • Is it possibile to load all thumbnails in the background, so that when I click on one page the thumbnail has already been pre-loaded? Also, sometimes I get "The thumbnail source for this scan could not be found." Candalua (talk) 07:58, 7 September 2020 (UTC)Reply
The thumbnail source error on Beta Wikisource is probably because Beta Commons has been down for a minute. If you see that error on a live wiki, feel free to report it. It really shouldn't be going to 'The Thumbnail source' error unless the internet is exceptionally bad. Sohom Datta (talk) 06:27, 16 September 2020 (UTC)Reply
  • On the left, under "Scan number: xx", I would write: "Displayed number: yy", so that it's faster to check that the assigned number is correct. (I know that you can already see this number highlighted in the list, but I think it doesn't hurt to repeat it. If you also put navigation arrows on the top-left corner and preload the thumbnails as requested above, it will be extremely fast to check each page individually, without even moving your eyes from the top-left corner). Thank you very much for your work. Candalua (talk) 07:58, 7 September 2020 (UTC)Reply
That's a nice feature, will take a look into implementing it. Sohom Datta (talk) 06:27, 16 September 2020 (UTC)Reply
Will do Sohom Datta (talk) 06:27, 16 September 2020 (UTC)Reply
  • I find it a bit odd that I have to check "Use the new experimental visual mode", then click "Preview pagelist", then click any number, and only then I see the full-screen editing interface. A direct button would be much more intuitive. Candalua (talk) 10:34, 7 September 2020 (UTC)Reply
@Candalua: We had a small bug regarding the "Use the new experimental visual mode" checkbox, where it wasn't saving the state that the user previously toggled it to. This patch fixes that. The "Preview pagelist" button and the click the number UI is required, since we do certain checks on the pagelist itself to make sure, we can convert it into a particular format that is required for the visual mode to function (multiple pagelists and empty textboxes are not supported ) Sohom Datta (talk) 06:27, 16 September 2020 (UTC)Reply

Widget rollout: Feedback


General Feedback


Specific bugs that you found and/or features that you would like to see

  • It would be nice if the current page number gets preloaded into the "spin-box" when a numbered page is selected. Currently, the number field is blank, which rather slows things down as you have to retype the number. Since the number is usually only a few increments off (e.g. when inserting image plates), preloading will allow quicker adjustment. Inductiveload (talk) 10:22, 11 September 2020 (UTC)Reply
That's a intresting idea. I'll take a look at if we can implement that. Sohom Datta (talk) 12:54, 16 September 2020 (UTC)Reply
  • I agree with the previous comment and find the widget quite difficult to use on an existing page list. For example, if I modify the page number (e.g. 1 => 8) without changing the page type ("number"), the update button remains gray and cannot be pressed (Firefox 68.12, French Wikisource). The solution is of course to change the page number from "number" to "roman" and back from "roman" to "number", which activates the update button, but that's annoying, and other weird problems also occur. Sometimes the numbers chosen in the form are "forgotten" when applying the changes but I can't always reproduce the problem. Seudo (talk) 08:12, 16 September 2020 (UTC) I just tried on the beta version and the bug I reported does not appear here. So I guess the version on the French Wikisource needs to be updated. Seudo (talk) 08:29, 16 September 2020 (UTC)Reply
Yeah, it should be live by tomorrow or so. Sohom Datta (talk) 12:54, 16 September 2020 (UTC)Reply
Will put in a fix for that Sohom Datta (talk) 18:47, 18 September 2020 (UTC)Reply

Help with enabling the widget on your wiki


Do we need to translate some system messages via Can you point to the relevant messages? --Candalua (talk) 21:21, 15 September 2020 (UTC)Reply

@Candalua: Yeah, you need to translate these system messages on Sohom Datta (talk) 02:47, 16 September 2020 (UTC)Reply
@Sohom data: ok, you should probably mention it on this page. Candalua (talk) 14:22, 17 September 2020 (UTC)Reply



Hello, can you add the extension he wikisource? [1]
Thanks! מושך בשבט  ·  Talk  08:21, 7 February 2021 (UTC)Reply

@Sohom data@Candalua@Inductiveload@Seudo מושך בשבט  ·  Talk  09:53, 26 February 2021 (UTC)Reply
Return to "Wikisource Pagelist Widget" page.