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?



Template for factotum initials[edit]

Is there a way to use Template:Dropinitial or similar to produce factotum initials?

For instance, I scanned and cleaned up the factotum initial to the right with the letter T, for a text I'm transcribing. I put the T in the SVG and used the whole thing like an ordinary drop cap image.

I'd prefer to have the SVG with an empty frame, and have Dropinitial superimpose the letter over it. Is that doable? Marnanel (talk) 22:56, 19 February 2024 (UTC)[reply]

I'd love to try to help with this, but your link to Category:factotum initials doesn't link to anything, so I'm not sure what you are referring to. —Beleg Âlt BT (talk) 15:24, 21 February 2024 (UTC)[reply]
According to commons, they're "an early type of printers' ornament with a hole in the center in which an initial letter is printed" (c:Category:Factotum initials) Cremastra (talk) 22:12, 23 February 2024 (UTC)[reply]
No, there's no way to do this with {{di}}. It's also excessively complicated. Just use a regular image for these. If MediaWiki ever allows that level of dynamic content for SVG it might be possible in a sane way, but for the foreseeable future the answer is no. Xover (talk) 08:20, 24 February 2024 (UTC)[reply]

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]

Search help[edit]

What do I need to enter in the search box that will only find specific values in the header template author field, in my case John Keats? Thanks Chrisguise (talk) 01:35, 27 February 2024 (UTC)[reply]

Depending how much precision you want,
CalendulaAsteraceae (talkcontribs) 03:21, 27 February 2024 (UTC)[reply]
@CalendulaAsteraceae: Be very very careful when using insource:// searches. They are extremely expensive and only one can run on the site at a time, so unless you know what you're doing the odds are you'll end up with a query that times out and in the meanwhile blocking others from such searches. It's not something I would recommend casually to most normal users. Xover (talk) 05:30, 27 February 2024 (UTC)[reply]
@XoverThank you. I'd been trying to figure out how to do something with the 'insource' approach based on the search link from disambiguation pages, but I'll keep away from that. Chrisguise (talk) 07:32, 27 February 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]