Wikisource:Scriptorium/Help

From Wikisource
Jump to navigation Jump to search

The Scriptorium is Wikisource's community discussion page. This subpage is especially designated for requests for help from more experienced Wikisourcers. Feel free to ask questions or leave comments. You may join any current discussion or a new one. Project members can often be found in the #wikisource IRC channel (a web client is available).

Have you seen our help pages and FAQs?



Drop initials sit too high?[edit]

I'm trying to create a drop initial that is only *slightly* larger than the surrounding text (here). However, when I set the font-size of the drop initial to "larger", it also shifts it up higher than the surrounding text, instead of dropping below. Does anyone know why this is? —Beleg Âlt BT (talk) 15:26, 21 February 2024 (UTC)[reply]

Ok, I did some experimenting at User:Beleg Tâl/Sandbox#Slight dropinitial and found the source of the problem: the template style sheet Template:Dropinitial/styles.css hard-codes the line-height of the dropinitial at 1em, which is smaller than the default line-height of 1.6em in the Vector skin.
So now the question is ... why are drop initials hard-coded to a smaller line-height? —Beleg Âlt BT (talk) 15:29, 21 February 2024 (UTC)[reply]
I remember this happening for a reason, at the time, but I cannot recall the details. --EncycloPetey (talk) 16:08, 21 February 2024 (UTC)[reply]
Drop initials are a horrible hack. You can do one drop initial with every aspect fixed fairly reliably, but generalising it is impossible (one major reason is that the "correct" value for several aspects is relative to the computed font size and line height of the surroundings, which is not exposed to CSS). So {{di}} is and will always be for "rough approximation" that will fall down when things around it change.
The only way to get really reliable drop-initials is for browsers to implement them natively. There's a draft spec and several of the big browsers support it, but Firefox has zero support and the support in other browsers comes with several caveats. We're a lot closer now than e used to be, but there's at least several years left before we can do these properly.
In the mean time, my strong recommendation would be to futz as little as possible with {{di}}. Setting the size of the initial is fine, as is using an image. But all further tuning you do is essentially going to turn into a backlog at some point, potentially one that needs to be dealt with manually, and the more tweaking you do the harder it will be to migrate once we get a real solution for it. Xover (talk) 08:37, 24 February 2024 (UTC)[reply]
Hi, you may {{sub}} like this Songs ({{sub|{{xx-larger|S}}}}{{underline|{{uc|ongs}}}}) M-le-mot-dit (talk) 10:21, 24 February 2024 (UTC)[reply]
I tried this adjustment. If it is not what you meant, feel free to revert it. --Jan Kameníček (talk) 00:53, 25 February 2024 (UTC)[reply]
Or just like this. --Jan Kameníček (talk) 01:00, 25 February 2024 (UTC)[reply]
Beleg Âlt, I changed the letters with an image for a closer facsimile. If you want to see two different implementations with the same result, see this sandbox User:Ineuw/notes7 — ineuw (talk) 14:11, 5 March 2024 (UTC)[reply]

Add a listing of subpages[edit]

I have moved many standalone pages that are part of The Works of Henry Fielding into subpages, e.g. A Sailor's Song (Fielding) to The Works of Henry Fielding/A Sailor's Song. I then created a base page: The Works of Henry Fielding. I'd like to make the base page automatically list all subpages (pending somebody creating a proper Auxiliary TOC or transcribing an existing TOC, etc.) This behavior exists in {{header periodical}} but I do not know template scripting well enough to create something similar. Help? -Pete (talk) 05:50, 27 February 2024 (UTC)[reply]

@Peteforsyth: you can add {{Special:PrefixIndex/{{PAGENAME}}/}} to the base page. —CalendulaAsteraceae (talkcontribs) 19:18, 27 February 2024 (UTC)[reply]
Precisely the solution I was looking for. Thanks @CalendulaAsteraceae:! I'll see if I can improve the Help:Subpages#Magic_words page and make it easier to...eh...parse, around this stuff. -Pete (talk) 07:13, 28 February 2024 (UTC)[reply]

Freeimg template {{FI}} is not transcluding properly to the main ns.[edit]

The images of this work display template code in the main namespace - on an orange background surrounding the image. — ineuw (talk) 23:01, 3 March 2024 (UTC)[reply]

The image you linked looks fine to me in mainspace. Could you post a screenshot? —CalendulaAsteraceae (talkcontribs) 03:49, 4 March 2024 (UTC)[reply]
@CalendulaAsteraceae: Apologies for not uploading earlier (but did consider it). Here is the image Subsequent images have the same issue. I will try it with other browsers because of possible issues with Firefox 123 and my traditional longstanding modifications for editing on the web. — ineuw (talk) 03:22, 5 March 2024 (UTC)[reply]
The same in the Vivaldi browser, which was spawned from Chrome/Chromium. However, Google Chrome displays it correctly. — ineuw (talk) 04:52, 5 March 2024 (UTC)[reply]
Should this be filed as an issue? — ineuw (talk) 11:26, 5 March 2024 (UTC)[reply]
Solved. This is caused by vector.css. — ineuw (talk) 07:46, 7 March 2024 (UTC)[reply]

Ragpicker and ragcleaner[edit]

I see these two "contributors" (which I think are actually some sort of OCR correction tool rather than a human contributor), referenced in a lot of our non-scan-backed works from IA. An example: Talk:Scribner's Monthly/Volume 3/Number 1/The Mullenville Mystery. So what exactly is this technology? I've looked across the web and Wikisource many times and can't find what this refers to. I'd like to figure out exactly what "rag" is because I'd like to see if I can use bits and pieces of this technology for my own work. SnowyCinema (talk) 17:19, 4 March 2024 (UTC)[reply]

These are @Akme:'s contributions. Beeswaxcandle (talk) 20:12, 4 March 2024 (UTC)[reply]
Akme is one of our most long-standing, prolific, and skilled proofreaders (it's a crying shame that they have an aversion to using Proofread Page, but their transcriptions are excellent all the same). The "ragpicker" stuff is just them having a bit of fun in the textinfo template. Xover (talk) 18:57, 9 March 2024 (UTC)[reply]

Help uploading: The Land of Fetish[edit]

I would like to work on Land of Fetish, author: Ellis, Alfred Burdon, 1852-1894 and I need help uploading from IA it to Wikisource. Stamlou (talk) 16:52, 9 March 2024 (UTC)[reply]

@Stamlou you can use https://ia-upload.wmcloud.org/ Mpaa (talk) 17:57, 9 March 2024 (UTC)[reply]
Thank you unsigned comment by Stamlou (talk) 19:19, 9 March 2024‎ (UTC).[reply]
@Stamlou: Index:The Land of Fetish (1883).djvu. But, yes, as per Mpaa you can use IA-upload for this (just clean up metadata etc. afterwards). Xover (talk) 18:52, 9 March 2024 (UTC)[reply]

How to download the Wikisource-markup contents of a book?[edit]

Is there a way to download the Wikisource-markup contents of a book? i.e., including all template tags and other Wikisource markup, in order to do a global search for use of certain templates/etc in a book, rather than searching the contents one page at a time (in page Edit view). Harris7 (talk) 19:52, 12 March 2024 (UTC)[reply]

@Harris7: No, not really. But depending on what you're trying to do there may be other ways to achieve it. Xover (talk) 06:37, 13 March 2024 (UTC)[reply]
@Xover - ok, thanks. I found part of my answer just a few questions above, in Wikisource:Scriptorium/Help#Search help: using PetScan to find all Wikisource pages by a specific author, and using 1 or more specific templates. Harris7 (talk) 18:38, 13 March 2024 (UTC)[reply]

Global css[edit]

Does anyone know where I could find where the global css ? (I think that is where the classes starting by wst are) Alien333 (what I did and why I did it wrong) 08:21, 15 March 2024 (UTC)[reply]

@Alien333: Your question is not clear. Could you explain a bit more what you're trying to do? Xover (talk) 10:40, 15 March 2024 (UTC)[reply]
I was just wondering if wikisource had classes that were not located in template css. I thought about that because some templates used custom classes but did not have the templatestyles mention. After looking closer, it looks like even those had a css subpage. I was wondering if there was a page containing wikisource-specific classes for templates that were not in a styles.css subpage of a template. Alien333 (what I did and why I did it wrong) 12:04, 15 March 2024 (UTC)[reply]
There are some global styles that used to live in MediaWiki:Common.css, but which have now been moved to default Gadgets. These are being actively reduced wherever possible, and are generally not used to style template output. Legacy templates use hard-coded inline style attributes, but we're migrating as many as possible to use TemplateStyles (there are issues with using TemplateStyles inside wikilink markup that prevents us moving some templates). Proofread Page also supports per-work styles in subpages of the Index: namespace. These and some naming conventions for classes are documented in Help:Page styles.
As a rule of thumb, for new code, wst-* is a class added by a template; wsg-* by a Gadget; ws-* is a global style. Per-work styles use _* class names, or __* for once-off styling (things you might otherwise put in inline style attributes). On the Main Page we also use a enws-* prefix but that's somewhat of a special case. Also note that some templates may add classes for which they do not specify styling. There are several reasons this is so, one of them being to provide something for user or per-work styles selectors to target. Xover (talk) 12:40, 15 March 2024 (UTC)[reply]
Ok, thanks for the info. Alien333 (what I did and why I did it wrong) 13:00, 15 March 2024 (UTC)[reply]

[SOLVED] Unable to construct a wiki link to our main page[edit]

The instructions from this page work only from that meta page but not here. How can I construct an interwiki link in my userbox to our Main page? — ineuw (talk) 21:56, 17 March 2024 (UTC)[reply]

Double-spacing[edit]

Hello,

Can we change the download function so it creates double-spaced PDFs? I like annotating 2603:7000:D03A:5895:F97F:B5AA:FCA9:B1C0 18:51, 20 March 2024 (UTC)[reply]

How would the Download know when to double space and when not to? --EncycloPetey (talk) 21:33, 20 March 2024 (UTC)[reply]

Trouble with file from commons[edit]

I have uploaded on commons a djvu file. It looks fine over there, but here and on wp the file is registered as being 0x0 (not as empty, though), and trying to link it just gives a link, not the file. Am I the only one having this problem, and can someone tell me how to fix it? — Alien333 (what I didwhy I did it wrong) 19:48, 21 March 2024 (UTC)[reply]

I'm not seeing a problem with the file. Do you want me to create the Index: for you? Beeswaxcandle (talk) 02:13, 22 March 2024 (UTC)[reply]
Nevermind, apparently now it works. When I tried to create the index yesterday the pagelist did not work because the file was 0x0 pixels. I can take care of the index, thanks. Alien333 (what I didwhy I did it wrong) 06:35, 22 March 2024 (UTC)[reply]
@Alien333: I had the same exact problem with an Index yesterday: File:The Plutocrat (1927).pdf. It is extremely weird, and I believe it's an issue on Commons' end. I was able to fix it in a few minutes, though. SnowyCinema (talk) 06:42, 22 March 2024 (UTC)[reply]
What did you do? Or did it just fix itself? Alien333 (what I didwhy I did it wrong) 07:10, 22 March 2024 (UTC)[reply]
@Alien333: So here's exactly what happened. I uploaded the file (revision 1) and it appeared as 0x0 just like you described, and the Index page's pagelist threw an error that I can't remember now. So, what I did was I uploaded another version of the same PDF, just directly taken from IA instead of modified by me in a certain way, and then uploaded that with chunk upload (revision 2). It initially seemed to be a working file, but then I deleted and recreated the Index again, to find out that this revision was now broken. So I reverted to the previous revision (revision 1) as revision 3, and somehow that worked.
TLDR: Revision 1 was broken and when I uploaded revision 2, that revision appeared to work at first. But then it reversed out of nowhere, to where revision 1 was working now and revision 2 magically broke in its place. . . . If this is confusing to you, it's exactly as confusing to me so don't worry. I have no idea what the issue was. ☹️ SnowyCinema (talk) 07:15, 22 March 2024 (UTC)[reply]
The error was "Invalid interval" (at least for me). What I think is that the file got broken during some sort of transfer from commons to here (since it was also broken on wp). On top of being 0 x 0 pixels, Invalid interval probably meant it was 0 pages long (even an empty pagelist got an error). The file was still registered as being 1.something MBs long (here, on commons, and wp). I do not think it was an issue with the file I uploaded, as on commons everything looked good. That's what I know. I also had a vague suspicion of it being linked to the server switch on wednesday, but it might have nothing to do with it. Alien333 (what I didwhy I did it wrong) 07:29, 22 March 2024 (UTC)[reply]
Servers and backends and deployment are quite finicky, and there are a million mysterious things that can go wrong all of a sudden. It's hard to really say exactly what happened without talking to someone who has the keys so to speak. Our global multisite system is bound to be quite complex on the backend, I'll say that much... SnowyCinema (talk) 07:41, 22 March 2024 (UTC)[reply]
@SnowyCinema It's just happened again with File:The Poems of Sir Thomas Wiat, volume 2.djvu. If this becomes a recurring problem, we should maybe ask about it to the commons people. Alien333 (what I didwhy I did it wrong) 09:58, 23 March 2024 (UTC)[reply]
@Alien333:: Hi, I've "purge" the caches of the file in Commons and of the Index, and it seems to have fixed the issue. M-le-mot-dit (talk) 10:15, 23 March 2024 (UTC)[reply]
I tried purging the caches on thursday, and it didn't help. I guess this just fixes itself with time. Alien333 (what I didwhy I did it wrong) 13:04, 23 March 2024 (UTC)[reply]
@Alien333@Beeswaxcandle@M-le-mot-dit@SnowyCinema I have experienced (and reported) the same issue. Although the problem sometimes seems to fix itself, I have a number of cases where it has not (>6 months, which I assume means never), and a number of cases where random pages in an otherwise functioning are completely unreadable on WS. I've basically given up uploading PDF files (even though I have paid-for PDF editing software - Foxit) and default to DJVU. Converting PDF's to DJVU with 'Pdf 2 Djvu Converter' generally works OK. Chrisguise (talk) 13:17, 26 March 2024 (UTC)[reply]
I just had this same problem with Index:Florula Mortolensis.djvu, where the pagelist is broken and the file appears as 0x0 on WS (but works fine on commons. I used the IA upload tool.) Purging the caches didn't help, but hopefully it fixes itself, as it seems to. Cremastra (talk) 20:54, 27 March 2024 (UTC)[reply]

Proofreading Paragraph Problem.[edit]

Sometimes while proofreading, I finish a page where the lines are not joined, but then the last editing "line breaks" in a page create new paragraphs. I don't know why this should be- my usual workaround is just to have no line breaks on the source page for the last paragraph. But this looks messy and it is annoying. Is there some obvious reason that this happens that I can avoid in the future? @Mpaa, perhaps you know the answer, I know sometimes you prefer that lines not be joined, so you have likely run into this problem.

Example page. The last line should not be its own paragraph.

Sorry if 1. The question doesn't make sense or 2. There's an obvious solution. -- FPTI (talk) 06:33, 24 March 2024 (UTC)[reply]

The {{nop}} template needs to be on its own line. Once you've done that, then the problem will go away. However, it is most preferable to remove line breaks within paragraphs as leaving them in is known to cause problems with transclusion. Beeswaxcandle (talk) 07:17, 24 March 2024 (UTC)[reply]

How to create a placeholder page?[edit]

Hello, I'm from Wikisource Indonesia. I'm courious, for {{missing pages}} it says, "Placeholder should be inserted....". If the proofread has been done, how to create a placeholder page? Thanks. Mnam23 (talk) 01:12, 25 March 2024 (UTC)[reply]

Two steps are generally required: 1. The actual insertion of placeholder images into the scan file and then reuploading to Commons / Wikisource. 2. The movement of the pages to reflect the updated source file. The first depends on the file format, for example djvus are typically easy while PDFs are trickier. Help:DjVu_files#Inserting_a_new_pages_(e.g._a_placeholder) is an example of how to do that. The movement of large numbers of pages can be automated by requesting a bot / admin to bulk move as not to lose history. For help you can ask in the Wikisource:Scan_Lab. MarkLSteadman (talk) 01:21, 25 March 2024 (UTC)[reply]
Just making sure, if the placeholder page is already inserted, the template should stay on the Index page, just changing the parameter placeholder=yes, right? Mnam23 (talk) 07:59, 26 March 2024 (UTC)[reply]

Copyright question[edit]

Does this thesis (https://doi.org/10.7907/KW0Z-FQ64 / https://thesis.library.caltech.edu/10468/) meet the copyright requirements to be added? Nobody (talk) 12:17, 25 March 2024 (UTC)[reply]

Just to note, I was unable to access either of the sites linked, so for anyone else who had this problem, here's a working version of the Caltech link, and the PDF file of the 1951 thesis. The thesis is "Design and Calibration of a New Apparatus to Measure the Specific Electronic Charge" (1951) by George Clement Dacey (1921–2010).
My personal opinion is that this is in the public domain in the US, since it does not contain a copyright notice and it was published before 1977. I think academic papers generally count as published, but I'm not 100% sure. @TE(æ)A,ea.: What do you think? SnowyCinema (talk) 12:45, 25 March 2024 (UTC)[reply]
It's also Q119716034 for some additional info. On The Caltech page, it says, "Thesis Availability: Public (worldwide access)", which I don't believe means the copyright status. It also says "Default Usage Policy: No commercial reproduction, distribution, display or performance rights in this work are provided." Which sounds more like a copyright status, but I'm not sure. Nobody (talk) 13:45, 25 March 2024 (UTC)[reply]
  • Nobody, SnowyCinema: We had a lengthy discussion about this in the past, see here. The result of that discussion, as stated, was that there was no precedent, but that the thesis in that case was not copyrighted. I do not see how the decision is not precedent, as the arguments in that discussion were general and not relating to that thesis in particular. My opinion, and the sources of that opinion, are stated in more detail in that discussion. In sum, the publication is voluntary, and it is “general” because anyone can access the copies which are available in the university library’s collection. Because there was a general publication, and there was no copyright notice, it is in the public domain. TE(æ)A,ea. (talk) 17:36, 26 March 2024 (UTC)[reply]
    Thanks for the explanation TE(æ)A,ea., then I'll go figure out how to add it. Nobody (talk) 18:31, 26 March 2024 (UTC)[reply]
    I created this, but I'm pretty sure I'm missing something and I can't figure out what. Nobody (talk) 19:32, 26 March 2024 (UTC)[reply]
    I fixed the quoting which was why it wasn't rendering. MarkLSteadman (talk) 20:36, 26 March 2024 (UTC)[reply]

Help with index page[edit]

Still very new to Wikisource, so sorry if my question seems dumb. After creating NOAA Storm Events Database – 2023 Matador tornado, I tried following the Index directions to create Index:NOAA Storm Events Database – 2023 Matador tornado, but the “Index” tab still doesn’t seem to show up on the text source. I’ve been working with another editor to add works of NOAA (U.S. government) (Category:PD-USGov-NOAA), and I’ve been struggling with figuring out how to do the Index pages with the few texts we have up. Can someone give some Index page assistance for the Matador tornado’s text as well as with the couple of other pages in that category. I’m not sure what I’m doing wrong exact. Thanks. WeatherWriter (talk) 16:11, 26 March 2024 (UTC)[reply]

An index works with a file. It is mostly a handy way to organize pages of that file.
The source for this appears to be a website. There is no point having an index without a file.
You can put a {{textinfo}} on the talk page and put in "source" instead. Alien333 (what I didwhy I did it wrong) 17:07, 26 March 2024 (UTC)[reply]