User talk:Mpaa/Archives/2019

Latest comment: 5 years ago by Ineuw in topic Global.js and .css

span x div

Hi. I noticed you tried to change Page:Bohemia An Historical Sketch.djvu/9, probably because of the lint problems again. Does it make sense if span is changed for div ? --Jan Kameníček (talk) 02:28, 1 January 2019 (UTC)

Yes.— Mpaa (talk) 10:02, 1 January 2019 (UTC)

Charinsert code replacement

Hi. If I remember correctly, you replaced the Charinsert code to restore functionality. I would like to look at the history of this code, specifically the previous code. Could you point me to that page?

The previous version stored the user's Charinsert most recently selected row in a cookie, and wherever editing was possible, this setting would have my previous selection (User in my case).

This new Charinsert code dropped this useful setting feature. This means that every new page I edit, the Charinsert is reset to the first row.

Before I create a bug report, I want to find out who is the maintainer of this code (local or wikimedia/mediawiki).— Ineuw talk 06:35, 7 January 2019 (UTC)

Hi. It was a link inside a comment in a Task in phabricator, suggesting this workaround. But I do not remember which one. Try to look for bugs who contains CharInsert maybe? Sorry I can't be more useful.— Mpaa (talk) 10:35, 9 January 2019 (UTC)
Thanks for the reminder. I will find it.— Ineuw talk 23:14, 9 January 2019 (UTC)
It was very easy to find. I just have to compare the old and new code and see what changed. — Ineuw talk 04:12, 16 January 2019 (UTC)

lang block

I noticed that you repeated the lang block because of the multicol template. The multicol template is not transcluded into the main namespace, so is it OK when I add the lang block into the noinclude part, as in [1] ? --Jan Kameníček (talk) 20:59, 22 January 2019 (UTC)

No, there is still en error. Enable the linter checker gadget, so you will be able to detect errors.— Mpaa (talk) 21:04, 22 January 2019 (UTC)
Where can I enable it? I cannot see it in Preferences – Gadgets. --Jan Kameníček (talk) 22:49, 22 January 2019 (UTC)
@Jan.Kamenicek: Sorry, I remebered wrongly. See here.— Mpaa (talk) 19:57, 23 January 2019 (UTC)

Misaligned OCR layers..

As you seem to be technically adept I thought you might want to periodically examine:- https://en.wikisource.org/wiki/Category:Scans_with_misaligned_text_layer

I plan to look through the "File to Fix" category again soon, and attempt to sub-cat the files in it, between classes of fix required.ShakespeareFan00 (talk) 21:21, 24 January 2019 (UTC)

Only if there is a page offset and the file has been uploaded by IAupload, then 99.9% it is a bug of IAupload and I know how to fix it ...— Mpaa (talk) 22:08, 24 January 2019 (UTC)
Okay, the limitation is noted. I will still try to categorise stuff when I find it though.ShakespeareFan00 (talk) 09:46, 25 January 2019 (UTC)
Thanks for the repairs on Index:Philosophical Transactions - Volume 053.djvu

But it's still out of alignment :- see https://en.wikisource.org/w/index.php?title=Page:Philosophical_Transactions_-_Volume_053.djvu/55&action=edit&redlink=1 for example. The whole file needs a rebuild... ShakespeareFan00 (talk) 20:44, 25 January 2019 (UTC)

The file is OK. See phab:T214729.— Mpaa (talk) 21:19, 25 January 2019 (UTC)
Thanks.. Would it be possible to perhaps where the djvu text extract failed to pull the scan image and attempt OCR (most likely Tesseract) in the back end?ShakespeareFan00 (talk) 21:59, 25 January 2019 (UTC)
Actually the file is not OK but Mediawiki SW should do a better handling of the error. Everything can be done, it is just a matter of time ...— Mpaa (talk) 22:20, 25 January 2019 (UTC)

Thank you so much for fixing this. Great work! MartinPoulter (talk) 22:36, 3 February 2019 (UTC)

page creation script

Thank you very much for writing a script to generate content pages! Can I ask you to use it to fill in two volumes of the magazine Once a Week? I have posted the data for Volume II here, with an explanation of how the data is structured at the top of the page. Tell me if you need me to modify it. I'm currently working on creating a larger set of titles for Volume III... Levana Taylor (talk) 07:14, 6 February 2019 (UTC)

@Levana Taylor:, done as MpaaBot. Next time, please align columns correctly, with extra '\t', if you need to skip a value (e.g. contributor, defaultsort or sections). Please check them, to make sure they are OK.— Mpaa (talk) 21:32, 6 February 2019 (UTC)
It's perfect, thank you very much! I did try to get the proper number of fields in every line but I'm not sure how to proofread. Can you suggest a regex search (I use Notepad++ as text processor) which would flag any line that doesn't contain exactly 10 tabs? Levana Taylor (talk) 21:59, 6 February 2019 (UTC)
I do not know Notepad++, use | as separator and when you're done, just replace | with \t.— Mpaa (talk) 20:05, 8 February 2019 (UTC)

Updating the charinsert definitions

Hi. Sorry for disturbing you again. You may not have followed the post about my Charinsert issues HERE, but replacing the script was not the whole picture. I found out at MediaWiki that in the MediaWiki:Gadgets-definition that these two old entries:

* charinsert[ResourceLoader|default]|charinsert.js
* charinsert-core[ResourceLoader|hidden|dependencies=jquery.textSelection,user]|charinsert-core.js|charinsert-core.css

Need to be replaced with these three, but it requires a bureaucrat to do it, or grant permission to me to do it.

* charinsert[ResourceLoader|default|peers=charinsert-styles]|charinsert.js
* charinsert-core[ResourceLoader|hidden|dependencies=jquery.textSelection,user,mediawiki.storage]|charinsert-core.js
* charinsert-styles[ResourceLoader|hidden|type=styles]|charinsert-styles.css
I'll give you permissions. I do not have fresh in my mind what I did. You seem to be more familiar with the topic. Cheers.— Mpaa (talk) 20:39, 6 February 2019 (UTC)
I gave it to you for one week (so I do not have to remember). If you need for longer, ping me.— Mpaa (talk) 20:42, 6 February 2019 (UTC)
I only know more because I followed a very long and disorganized trail. Installed the code and monitored it. It works but in a different way from a cookie. Now, a user's character selection is cleared once the user leaves the site. On start of a new session, the user must re-select their choice and this remains until the end of the session. Thanks for your trust that I won't do anything nasty, and I think you should revoke the permission . . . . Have a nice weekend. — Ineuw talk 19:02, 8 February 2019 (UTC)
I will.— Mpaa (talk) 20:05, 8 February 2019 (UTC)

Question about User:Abuse filter

Do you know anything about this user? No contributions or any mention of them anywhere on this site. Why are they an administrator? Is this a bot? Cheers, –MJLTalk 17:22, 18 March 2019 (UTC)

@MJL: It's a Mediawiki system (software) account used by the abuse filter: it blocks users that trigger the relevant filter rules. It was announced a while back in tech news I believe. It should probably have a non-redlinked user page though. Addendum: link is Tech News: 2019-02 (crossposted to Scriptorium here and the Village Pump on enwp etc.) --Xover (talk) 18:00, 18 March 2019 (UTC)
@Xover: Ah, that makes sense. It was odd not being able to find that under Special:WhatLinksHere/User:Abuse_filter. I looked up what the other projects do with their "User:Abuse filter" page, and I found I like d:User:Abuse filter the best. EN-WP made a redirect out of it while Multilingual Wikisource and Commons just left it a redlink. –MJLTalk 18:19, 18 March 2019 (UTC)
@MJL: I agree, so I've created it based on the Wikidata page. I'll let the admin noticeboard know (in case anyone has other ideas). --Xover (talk) 18:33, 18 March 2019 (UTC)

History of Hudson County and of the Old Village of Bergen

Amazing work formatting History of Hudson County and of the Old Village of Bergen. Have you come across the old fashioned hand with a pointed finger in a decent resolution or as an svg?   --Richard Arthur Norton (1958- ) (talk) 15:17, 22 February 2019 (UTC)

I cannot remeber, sorry. It was long time ago. Thanks for your kind words.— Mpaa (talk) 21:17, 25 February 2019 (UTC)
Try U+261E, ☞.--Prosfilaes (talk) 02:37, 19 March 2019 (UTC)

Script request

Could you generate chapters for Looters of the Public Domain like you did with The Souvenir of Western Women? I have put together a tab-separated table here: Talk:Looters of the Public Domain/Table for script

I'm not sure if I formatted the author and contributor columns the way you expect, let me explain...please let me know if I need to adjust. Every chapter should have "|override_author=..." following the "author" field, to include both authors. The "contributor" field should reflect that chapters 1 to 25 were written by S. A. D. Puter, and 26 to 31 were written by Horace Stevens.

I think that's all that's needed. The book was published in 1908, it's fine to put the "year=1908" field in if you think that's better. -Pete (talk) 15:59, 3 April 2019 (UTC)

Done.— Mpaa (talk) 19:57, 5 April 2019 (UTC)

Roman numerals parameter

Hi -- Back in February ShakespeareFan00 obliged me by creating in the sandbox a parameter for {{article link}} which displays volume numbers as roman numerals, see here. It has not been implemented by anyone with the correct privileges; I have twice requested attention to the matter on the Scriptorium but gotten no reply, not even someone saying why they don't think this parameter should be added to the template. Can you do this or do you know who else I should contact? Thanks Levana Taylor (talk) 15:54, 16 April 2019 (UTC)

Hi. My suggestion is to seek attention and approval again at Scriptorium. Community consensus is important and the discussion you refer to involves only a few participants. I would not like to do the modifications myself, I am sure there is someone with the right skills who can do it. Also I have limited bandwidth right now.Mpaa (talk) 17:18, 16 April 2019 (UTC)
Thanks; posted. Levana Taylor (talk) 18:45, 16 April 2019 (UTC)

Arthur Devine DoB

I don't suppose you remember where you got 1860 as the DoB of Author:Arthur Devine (diff). He's being enquired about at wikidata here where a second record indicates an Arthur Devine with an 1849 DoB. (An answer, if you have one, at Wikidata, would be appreciated; thx. Equally, 2013 was a long time ago.) --Tagishsimon (talk) 09:10, 2 July 2019 (UTC)

@Tagishsimon: 1849 per Page:The Catholic encyclopedia and its makers.djvu/73billinghurst sDrewth 21:43, 2 July 2019 (UTC)
updated here with refs on talk page, and there. — billinghurst sDrewth 22:40, 2 July 2019 (UTC)

Resolving fostered content issues in a table based structure...

https://en.wikisource.org/w/index.php?title=Page%3ABench_and_bar_of_Colorado_-_1917.djvu%2F80&type=revision&diff=9412925&oldid=8110232

Is this something that could be automated to be fixed by a bot or AWB? I'll hold off on manual repairs for a few days, to let you see it's feasible. ShakespeareFan00 (talk) 22:15, 3 July 2019 (UTC)

Please go ahead, I have nothing in place that I might quickly use.— Mpaa (talk) 08:40, 6 July 2019 (UTC)

Fine should be nested inside RH; AWB repairable?

https://en.wikisource.org/w/index.php?title=Page%3APalmore_v._State.pdf%2F5&type=revision&diff=9429246&oldid=9216687

Is there a regexp that could be applied to fix an issue like this en-masse? (either with a bot or by an AWB user)?

There are other DIV-span swaps that could also be dealt with en-masse.

DIV SPAN Swap repairs and solutions..
original replacement
smaller|<poem>
smaller block|<poem>
larger|<poem>
larger block|<poem>
{{smaller|{{c|
{{c|1={{smaller|

And so on , is there a page for listing this en-masse fixes?

ShakespeareFan00 (talk) 12:21, 12 July 2019 (UTC)

I spent a lot of time cleaning up these things. What I learned is that parsing nested templates is not easy and there is always an unforeseen corner case. And it is always more complex than this. E.g. if larger|<poem> is wrapped in another span-template, the replacement would give error anyhow. And also, changes shall be done in a way that format is uniform over a single work. So there is no easy way to automate this. Just proceed in small chunks at a time.— Mpaa (talk) 21:37, 12 July 2019 (UTC)

Stripped tags...

I note a LOT of the entries for a 'stripped tag' are down to <references /></div> which should read simply <references />. Is this a task that a BOT could do, namely the removal of a spurious closing tag? Resolving this specfic use case would considerably reduce the backlog of LintErrror hunting? ShakespeareFan00 (talk) 01:31, 25 July 2019 (UTC)

Why are we even worrying about such tags? They have no visual presentational harm, so are just noise. It is a total waste of time to chase them and fix them. — billinghurst sDrewth 02:23, 25 July 2019 (UTC)
The concern you express is essentially the same as one of the strands of w:WP:COSMETIC. If you are saying that many of the detected concerns aren't worth the time to fix them, then perhaps we should have a local version of the equivalent policy? ShakespeareFan00 (talk) 06:57, 25 July 2019 (UTC)

A new madness

Not certain what is going on around. We used to keep things simple and let the words of the authors rule. Users maddeningly adding unnecessary complexity and hanging on every element of the printer and typographer. — billinghurst sDrewth 21:39, 7 August 2019 (UTC)

Me neither. Mpaa (talk) 12:53, 8 August 2019 (UTC)

Another madness

Hi, and greetings. I want to ask if these pages can be moved? If not, how do I go about getting the bot to do it. — Ineuw (talk) 01:11, 15 August 2019 (UTC)

Hi. I saw comments at Wikisource:Bot_requests#A_possible_bot_request, so it is unclear to me if this should be done or not. Waiting for clarifications.Mpaa (talk) 17:33, 15 August 2019 (UTC)
One more thing. New file at commons is 828 pages, your list is 830 pages. Is everything 1:1 except the last 2 pages or is there some shift to consider?Mpaa (talk) 17:39, 15 August 2019 (UTC)
I don't understand why user:billinghurst marked the job as manual, unless he read this post and removed it from the bot requests. Which means I made too many requests, here two, and one SQL request on the Quarry which is moot. So, let's wait and see.
The original file which should have been commons:File:The Conquest of Mexico (Bancroft)-Volume 1.djvu was 830 pages originally, but the page by page match was the same until page 827 so I removed two blank pages at the end to match the count. — Ineuw (talk) 21:31, 15 August 2019 (UTC)

Guide to the Bohemian exhibition again

Thanks again for fixing the problem with two pages at Index:Guide to the Bohemian section and to the Kingdom of Bohemia - 1906.djvu, which really helped me. Just now I have found out that there are two more pages missing completely (I did not notice it before, because there is an unnumbered page with a picture, due to which the fact that some pages were missing was not visible). The missing pages are no. 169 + the empty page before it. I have got only a pdf file of another copy of the book with the missing pages, which I have uploaded to https://drive.google.com/file/d/1icVy2acRT4V28LbZRije3qlO-Hm9o3yD/view?usp=sharing . Do you think you could extract the missing pages and add them to the djvu file?

Thank you very much. --Jan Kameníček (talk) 19:51, 16 August 2019 (UTC)

Hi. I have no tools to extract images from pdf. If you store the two image files, I can process them and add them to the djvu file.Mpaa (talk) 19:53, 16 August 2019 (UTC)
My software is pretty bad but finally I found out how to extract it. The empty page is at https://drive.google.com/file/d/1eElaYU7W_TbXdQN1NSKA_-b5KWqhEsbU/view?usp=sharing and the following page no. 169 is at https://drive.google.com/file/d/1LkKaETLQz2pNy5eIcWVArwFlPYKqqKck/view?usp=sharing . Thanks!!! --Jan Kameníček (talk) 20:08, 16 August 2019 (UTC)
Done.Mpaa (talk) 20:26, 16 August 2019 (UTC)
Oh, perfect, you are extremely quick! :-) Thanks very much!--Jan Kameníček (talk) 20:32, 16 August 2019 (UTC)

Automated repairs...

diff Around Line 24 - Automatable repair? If not I can do these by a manual check anyway. Doing this so I can greatly simplify the templates concerned.

The conversion at the start from {{nop}} to a and (LF/CR) at the start of the body is also a relatively simple fix to implement. As well as a related conversion in the footer. Again I can do these manually if needed (it will just take longer.) ShakespeareFan00 (talk) 14:04, 20 August 2019 (UTC)

No, line 24 it is not simple. I cannot reuse available tools.Mpaa (talk) 19:02, 20 August 2019 (UTC)
I figured that might be the case, Thanks for looking. I needed to manually check for typos anyway. ShakespeareFan00 (talk) 21:22, 20 August 2019 (UTC)

Moving main namespace pages

Hi,

Would it be possible to change/move these three main namespace titles to follow the first volume. This would standardize all existing volumes, to be followed by the last two volumes (5 and 6). Thanks in advance. — Ineuw (talk) 11:16, 24 August 2019 (UTC)

Done Mpaa (talk) 14:10, 24 August 2019 (UTC)
Much thanks for your help. — Ineuw (talk) 01:43, 25 August 2019 (UTC)

Old test DjVu + Index

Hey. In connection with this minor crisis back in 2015, you uploaded File:EB1111 25 p45.djvu and created Index:EB1111 25 p45.djvu. So far as I can tell they were just for temporary testing purposes and are not actually used anywhere. Since it's clogging up some maintenance categories and such… Would you be opposed to deleting these? --Xover (talk) 13:20, 29 August 2019 (UTC)

Deleted. Mpaa (talk) 13:26, 1 September 2019 (UTC)
Thanks! But to nag you more (sorry!), I also ran across File:Test.djvu, File:Pywikibot test page.djvu, and File:Pywikibot test page 3.jpg that are showing up in multiple maintenance categories due to lack of info+license templates. Any chance you could add this? The first looks like it's from a real work, so just add the info+license from that; and the others whatever PD/CC-self tag you think suitable. (trying to empty out some long neglected backlogs). --Xover (talk) 16:50, 1 September 2019 (UTC)
For this File:Test.djvu, the copyright at Commons is not available here. If you can find something equivlent, please feel free to ad it.Mpaa (talk) 17:28, 1 September 2019 (UTC)
Thanks. I had to concoct some truly horrendous logic to find some license tag for this: the commons tag is a non-license that says "Dunno" rather than anything specific. I think this is probably strictly speaking a copyvio (Goddard probably owns the copyright, and it wasn't published until this century), but since both Commons and Smithsonian say otherwise I'm disinclined to argue. Feel free to pick something less awkward copyright-wise if you switch up test files in future, but for now I figure this good enough. --Xover (talk) 18:34, 1 September 2019 (UTC)
Thanks to you. Mpaa (talk) 18:00, 2 September 2019 (UTC)

Table style shortcuts revisited

Hi,

I remembered that we discussed the standardization the {{Table style/parse}} style codes, and you recommended some changes. At that time, I set the subject aside until I came up with a better solution replacement of the old codes.

The parsing template accepts additional shortcuts to the ones displayed in the shortcuts column, but to show the choices, there need to be two shortcut columns in the table.

For trial, I added "|bb4xd" alongside of "bbd" to the parsing table, |bbd|bb4xd = border-bottom:4px double black separated by a vertical bar, and here is the code and the result:

{| {{ts|mc|width:500px|bb4xd|margin-top:5em|sm85|lh11|ar|bc|bgt}} border
| <br/> 
|}
 
 

Comments and suggestions is appreciated. — Ineuw (talk) 08:48, 31 August 2019 (UTC)

Hi. Long time has passed, so I do not recall the rationale, I guess it was mainly 'mnemonic' to avoid to consult documentation often. I am not a great user of tables lately, probably better the you seek an opinion from the Community.Mpaa (talk) 13:26, 1 September 2019 (UTC)
Thanks, I will ask. — Ineuw (talk) 22:19, 2 September 2019 (UTC)

Community Insights Survey

RMaung (WMF) 14:34, 9 September 2019 (UTC)

verifying sanhedrin chapter count

Hi I noticed you had edited Translation:Mishnah/Seder Nezikin/Tractate Sanhedrin/Chapter 7/6

I am confused because Translation:Mishnah/Seder Nezikin/Tractate Sanhedrin says that chapter 8 has 7 mishna but a site I found purporting to translate it listed 9 mishna.

Is it possible we are missing some chapters there as red links and that the overall count of mishnah is higher than the 73 presently there? Olivia comet (talk) 19:14, 15 September 2019 (UTC)

Hi. I do not know/remember, too long time has passed. And looking at the summary of the edit, I assume I only carried out a request posted at Wikisource:Scriptorium#Two_somewhat_large_move.... You should look into Scriptorium Archives of 2014 for details.Mpaa (talk) 19:24, 15 September 2019 (UTC)

Reminder: Community Insights Survey

RMaung (WMF) 19:13, 20 September 2019 (UTC)

Reminder: Community Insights Survey

RMaung (WMF) 17:04, 4 October 2019 (UTC)

Global.js and .css

Hi,

I noticed that you deleted my Global.js and .css. I am curious because knowledge liberates. — Ineuw (talk) 00:14, 27 October 2019 (UTC)

Are you sure it was me? And when would that be? I am not sure I follow you.Mpaa (talk) 09:05, 27 October 2019 (UTC)
If they were here at enWS, they would not have worked in global sense, they only function at metawiki. Access them through your preferences. I don't see that they were ever here, and yours still exist at meta. — billinghurst sDrewth 13:02, 27 October 2019 (UTC)
My apologies for this very late reply. Earlier today, remembered that I never answered this post. When I opened my global page at that time, the standard deletion note was displayed, and that it was deleted by Mpaa. I believe it was a database glitch, probably because we accessed the database simultaneously. I say this because the page with the message never reappeared. Also, I was jumping back and fourth between the vector and global.js, separating what should be in one or the other, and examining how local exceptions are applied. So, that's the whole story. — Ineuw (talk) 21:15, 24 November 2019 (UTC)