Wikisource:Scriptorium/Help
User:ShakespeareFan00/SPC_Colors
[edit]Hi.. I found something on Hathi - https://babel.hathitrust.org/cgi/pt?id=osu.32435075986307
So I was using some rather recent (as of 2023) CSS support, to make the color tables. However, doing this manually seems to be a waste of time. Is there someone versed in Lua that can come up with a way to generate this programitcally. Also having a Lua script that can convert Munsell Colors back to sRGB would be nice. ShakespeareFan00 (talk) 11:26, 14 July 2024 (UTC)
- Also this is a mid 1970's "spec" - Was this updated? ShakespeareFan00 (talk) 11:29, 14 July 2024 (UTC)
- @Xover: This would be possible to do with a module to support the CYMK values...
However, it needs someone to write a module to do roughly...- Normalise the ratios of CYMK amounts to percentages.
- For the Yellow, write
color-mix(in srgb, rgb({{{yr|255}}},{{{yg|244}}},{{{yb|53}}}) {{{y|0}}}%,
- calculate the remaining % to 100% and store it as x0
- For the Magenta scale m value by x0 Call it z1, and work out the remaining amount to 100% , Store that as x1...
- Append to the above
color-mix(in srgb, rgb({{{mr|255}}},{{{mg|244}}},{{{mb|53}}}) {{{|0}}}%, <z0>
- Recurse Steps 3-4, for Red Brown, Cyan, and Key if values present, using z2,z3,..zn x2,x3,...xn etc.
- On the last pair of values scale them both by the xn value reached,
- write
) <xn>... <x2>) <x1>) <x0>)
- This should write a series of nested color-mix functions that mix a pusedo CYMK color.
The same approach could be used to make an n-tuple color-mix function that could be invoked from elsewhere, like the Pages of "The Color Painter" for example.
ShakespeareFan00 (talk) 22:50, 19 July 2024 (UTC)- I have no idea what it is you want me to do here. Convert from CMYK to RGB? Xover (talk) 06:28, 20 July 2024 (UTC)
- (sigh) - Essentially, I was wanting to reconstruct the charts in the PDF linked. It gives various CYMK values (as percentages), and the base colors for the CYMK (also a Red Brown it uses additionaly.) as xyz or xyY values. The template I had written was a first attempt at doing the conversion. However I was subsequently advised (off-wiki) that I needed to scale values in the nested color-mix statements, which gets complicated in pure wikitext. I was therefore asking if someone was able to produce a Lua module to generate the nested color-mix functions, doing the scaling as values as needed. The list of steps above was my attempt to explain what the module needed to do.
ShakespeareFan00 (talk) 07:38, 20 July 2024 (UTC)- You generally need to understand quite advanced colour theory in order to make actual conversions, which I most definitely don't. Your explanation above either presupposes a familiarity with colour theory, or it is not a coherent explanation. Either way I do not understand it. Xover (talk) 13:03, 20 July 2024 (UTC)
- Xover All I can pull from my gray-matter memory is the need for Y' which is based on the color to be converted (XYZ to X'Y'Z') that can be used to determine the converted color. 'Luminance' belongs to this explanation, as I gleaned from https://python-colormath.readthedocs.io/en/latest/conversions.html A color module that would determine this magical Y' (the scalar ShakespeareFan00 mentioned and a term from linear algebra, as these are all matrices) would allow conversion for many color spaces, not just the Munsell. For additional mind-boggling, look into "out of gamut" (crossed-eyes and dotted Ts)--RaboKarbakian (talk) 15:37, 20 July 2024 (UTC)
- You generally need to understand quite advanced colour theory in order to make actual conversions, which I most definitely don't. Your explanation above either presupposes a familiarity with colour theory, or it is not a coherent explanation. Either way I do not understand it. Xover (talk) 13:03, 20 July 2024 (UTC)
- I had a partial template already (User:ShakespeareFan00/SPC color but got stuck on trying to work out the respective ratios..
Hence my attempts at explaining it, I'd already converted the xyz information down into RGB colors.. What my template is trying to do figure out how to nest the color-mix functions
I was advised off wiki that for each additional color in the mix I needed to rescale the contribution of colors within that contribution to the overall final result.
For example:-
30% yellow., 50% magenta, 20% cyan- Starting with the yellow 'lay down';
- Yellow is 30% of the mix so
color-mix(in srgb, --yellow 30%, color-mix(in srgb, <MCK>) (100-30%)
- The magenta values then has to be scaled
color-mix(in srgb, --yellow 30%, color-mix(in srgb, --magenta, 50%/(100-30%), <CK> 100%-(50%/(100-30%)) ) (100%-30%)
- That leaves the Cyan/ Key mix to consider
color-mix(in srgb, --yellow 30%, color-mix(in srgb, --magenta, 50%/(100-30%), color-mix(in srgb, --cyan 20%/( 100%-(50%/(100%-30%))), --key 0 ) 100%-(50%/(100-30%)) ) (100-30%)
- Trying to write calc functions to do that in wikitext would lead to unreadable code, hence the request for a module to do it. 4 colors mixed and it's already getting hard to read.
color-mix() is the 'magic' that makes it possible.
ShakespeareFan00 (talk) 16:09, 20 July 2024 (UTC) - And something is still not quite right, because the colors being generated don't match the relevant linked page in the scans.. Time to just give up and conclude "too difficult, because no-one has the expertise to figure out why the color mixing isn't working. "
It doesn't help of course that Google Books seem to completely destroy any form of accurate color reproduction on some works (sigh)
ShakespeareFan00 (talk) 17:17, 20 July 2024 (UTC)
Score help for Hello! Hello! Who's Your Lady Friend?/Score
[edit]Measures 54 to 56 have alternate ending marks, they're not supposed to, and I don't know why they do.
Also, this is more a nice-to-have, but is there a way to transclude multiple pages of a score into a single score (which e.g. generates one MIDI file)? —CalendulaAsteraceae (talk • contribs) 05:08, 30 July 2024 (UTC)
- By putting the \repeat volta 2 { } into every voice, one of them has got out of alignment with the others. I've found that you don't need to do this in all the voices. As long as one voice has all the repeats marked, the others will fall into line. I just notate straight through on the other voices. btw I find your very open style of Lilypond transcribing with minimal comments quite difficult to read, thus I can't tell quickly which voice has the problem. For scores like this, I usually use the Frescobaldi app (offsite) and then copy/paste the final Lilypond text across.
For your second question, unfortunately there is no way to do that through transclusion. I usually go for the pragmatic route of transcribing a score into a single page in the Page: namespace and leave transcriber comments on the other pages on what I've done. See Page:Fugue by Ebenezer Prout.djvu/235 ff for an example. For a work that is entirely a score over multiple pages, I've done it directly into the Mainpage like you have with this score. See Essentials in Conducting/Appendix B for an example of that. Beeswaxcandle (talk) 09:44, 30 July 2024 (UTC)
- I tried taking out the extra repeats in the piano voices, and this worked fine for the score, but it meant that none of the piano voices played in the repeat in the MIDI. The reason I use this open style is that I find the code easier to read if there are clear delineations between measures and between lines, but I'm happy to add comments! What kind of comments would you find helpful?
- Glad to hear my approach to transclusion is reasonable! —CalendulaAsteraceae (talk • contribs) 04:27, 31 July 2024 (UTC)
- I usually put in comments like "end of line 1" or "end of page 3" into each voice, which helps me orientate to where I'm up to. For the Haydn score, I did the midi offsite and then linked a sound file via Commons rather than having it create the file on the fly when opening the page—but that's a very long score. Come to think of it I did have a go at transcluding one score in the orthodox manner Cox and Box (complete)/Rataplan. The jiggery-pokery in Lilypond to get the page continuations to behave was challenging. However, the sound file did have to be created separately and linked at the top. Beeswaxcandle (talk) 08:39, 31 July 2024 (UTC)
- As it happens, the process of updating comments in the page namespace and then re-copying them over showed me that the repeats were misaligned because I'd just failed to copy over some of the score. Problem solved! —CalendulaAsteraceae (talk • contribs) 18:11, 31 July 2024 (UTC)
- I usually put in comments like "end of line 1" or "end of page 3" into each voice, which helps me orientate to where I'm up to. For the Haydn score, I did the midi offsite and then linked a sound file via Commons rather than having it create the file on the fly when opening the page—but that's a very long score. Come to think of it I did have a go at transcluding one score in the orthodox manner Cox and Box (complete)/Rataplan. The jiggery-pokery in Lilypond to get the page continuations to behave was challenging. However, the sound file did have to be created separately and linked at the top. Beeswaxcandle (talk) 08:39, 31 July 2024 (UTC)
- There was {{tscore}}, which could be expanded or overhauled. ShakespeareFan00 (talk) 07:09, 31 July 2024 (UTC)
- There's no proof of this working outside the template documentation. I would need to be convinced of its utility in real situations. Beeswaxcandle (talk) 08:40, 31 July 2024 (UTC)
Merging duplicated indexes
[edit]Hi y'all,
Thanks to Uzume (talk • contribs), we noticed that there is two index for the exact same version of text:
- Index:Romeo and Juliet (The Illustrated Shakespeare, 1847).djvu (the extract, with transcription already started)
- Index:Shakespeare’s Plays, v.3 (playswithhislife03shakuoft).djvu (the full document, mostly no transcribed yet)
Could someone move the pages (without redirects) and merge the indexes? (afterwards, I could delete the first djvu on Commons and update the main page transclusion and the Wikidata item).
Cheers, VIGNERON (talk) 20:26, 2 August 2024 (UTC)
- We can move the pages, but what do you mean about merging Indexes? We cannot merge the Indexes. Each Index is keyed to a specific scan file, and in this case the two files have completely different coverage. I also note that more than page moves are required because of current linking, transcription, and project templates. All of those things will also have to be fixed --EncycloPetey (talk) 20:37, 2 August 2024 (UTC)
- Done with the page moves and fixing transclusion at Romeo and Juliet (The Illustrated Shakespeare, 1847). The multi-volume set does not yet have a consistent ToC on the volume with links, so I have linked to the existing transclusion. There is a second transclusion started at Shakespeare's Plays/Romeo and Juliet that looks as though it intends to put the entire play and all its notes onto a single page. --EncycloPetey (talk) 21:05, 2 August 2024 (UTC)
- @EncycloPetey: thanks a lot.
- Merging the Index pages is indeed probably not needed (and I meant w:Wikipedia:History merging), you can just delete it (maybe with redirect here, just in case?).
- I deleted the first file on Commons and replaced it elsewhere (on Wikidata).
- Cheers, VIGNERON (talk) 21:28, 2 August 2024 (UTC)
- @VIGNERON: I appreciate you deleting the source DjVu file on Commons. I found another reason to delete that besides it being inferior and redundant. Apparently two of its pages (10 and 11) were swapped. I figured this out because (along with another issue), I found out Page:Shakespeare’s Plays, v.3 (playswithhislife03shakuoft).djvu/22 and Page:Shakespeare’s Plays, v.3 (playswithhislife03shakuoft).djvu/23 are swapped. So I went back to the website (the URL has changed but the content is basically the same) that is the origin of the DjVu and found the pages are also reversed there. Then I checked six other scans of the same volume (each from different original print sources) and in each case they are reversed compared to the website originating the now deleted source DjVu. Thank you, —Uzume (talk) 14:36, 5 August 2024 (UTC)
Mass move of pages beginning with
[edit]I've split The Rigveda (a versions page for the ancient work itself) and The Hymns of the Rigveda (the translation by Ralph TH Griffith) which were originally one page. Now I need all pages starting "The Rig Veda/" moved to equivalents starting "The Hymns of the Rigveda/", for correct linking (see, for instance, The Rig Veda/Mandala 3/Hymn 1). Can someone who has a bot do this? It is far too tedious to do manually. Mårtensås (talk) 15:25, 3 August 2024 (UTC)
- Before making any moves, the Contents listings for our copy need to be harmonized with the Contents listings in the scan. Our copy is divided into "Mandalas", but the published copy calls these "Books". It would be premature to start making mass moves without first determining what moves are required to match the scan. --EncycloPetey (talk) 15:42, 3 August 2024 (UTC)
- The following change should at least be uncontroversial
- all pages starting with The Rig Veda/ are moved to The Hymns of the Rigveda/
- The edition is split into two volumes, each of which has its own indices of hymns and names. I am not sure if they can be merged. The numbering of the books of the RV is consistent and traditional, in the present ed. volume 1 contains books 1–6, volume 2 contains books 7–10. Mårtensås (talk) 17:22, 3 August 2024 (UTC)
- My point is that we should not move The Rig Veda/Mandala 3/Hymn 1 to The Hymns of the Rigveda/Mandala 3/Hymn 1 if the work is not going to be subdivided into units of "Mandala". We need to know what the full page names will be in order to make the page moves. Without knowing the move targets, the page moves cannot be done. --EncycloPetey (talk) 18:06, 3 August 2024 (UTC)
- The subdivision should be: The Hymns of the Rigveda/Book 5/Hymn 3. This follows the format of the original work except for using Arabic numerals instead of Roman (i.e., the original has Book V/Hymn III), which is just a matter of convenience. Mårtensås (talk) 19:15, 3 August 2024 (UTC)
- @Mårtensås / @EncycloPetey: Can you confirm that this list look correct? Format is old page name / new page name on alternating lines (it's what the pwb move script expects, not necessarily the most logical way). I can run the bot over and move the pages, but I'd rather not move 1k+ pages to the wrong name. I can also run any replacements needed for links etc. due to the name changes, but I'll need instructions for what's needed (I know less than zero about this work, much less this edition of it). Xover (talk) 19:58, 3 August 2024 (UTC)
- I note that our copy is the 2nd edition of this work, which implies that there is more than one edition, and therefore may need to be disambiguated in future. Given the large number of pages, using a preëemptively disambiguated page title is likely preferable over using one that may require an additional move in future. --EncycloPetey (talk) 20:20, 3 August 2024 (UTC)
- Is it worth it here, though? I'm having trouble imagining someone will be adding additional editions of this text in any reasonable time frame. Xover (talk) 20:30, 3 August 2024 (UTC)
- Trouble imagining someone will complete it, or trouble imagining someone will start it? It is starting it that will require disambiguation. --EncycloPetey (talk) 20:42, 3 August 2024 (UTC)
- Here's what Griffith writes in the preface: "This second edition of my translation is in the main a reprint in compacter and cheaper form, with some corrections and other improvements in text and commentary, of the original four-volume edition."
- In which case I do not see a point in worrying about the first edition. It can be marked separately in article space if anyone comes along and adds it. Further, this would not be the only instance on WS where a later edition is unmarked in article space.
- Mårtensås (talk) 21:21, 3 August 2024 (UTC)
- Fair point. Though I have to admit I have trouble imagining someone will even start another edition any time soon. I'll also note that the number of pages doesn't matter that much here: the work is done by a bot so it's more the noise in recent changes and people's watchlists to worry about. For a relatively straightforward case like this I am not overly concerned with a hypothetical future need to move it again. It's not nothing, but it ain't a big deal either. Xover (talk) 06:45, 4 August 2024 (UTC)
- Given the information provided by Mårtensås about the earlier edition, I agree. And it is probably worth putting that information onto the work's discussion page, so that any future editors will know that information as well. --EncycloPetey (talk) 19:11, 4 August 2024 (UTC)
- Trouble imagining someone will complete it, or trouble imagining someone will start it? It is starting it that will require disambiguation. --EncycloPetey (talk) 20:42, 3 August 2024 (UTC)
- Is it worth it here, though? I'm having trouble imagining someone will be adding additional editions of this text in any reasonable time frame. Xover (talk) 20:30, 3 August 2024 (UTC)
- The list looks good. Many links to the Rig Veda are probably referring to the ancient work (at Rigveda) rather than Griffith's translation specifically, so I wouldn't move links. Mårtensås (talk) 21:14, 3 August 2024 (UTC)
- I meant internal links within the text.
|next=
/|previous=
links, etc. When moving from an ambiguous name to a specific one you cannot generally automatically change incoming links because determining the intended target requires human judgement. Within the text the links all obviously refer to that text so updating the links is just a simple text replacement. Xover (talk) 06:49, 4 August 2024 (UTC)- Alright. The format of the "previous/next" is just [[../Hymn X]]. However each hymn has a header "section" in the format [[../|Mandala X]], where Mandala should be replaced with Book. Mårtensås (talk) 16:03, 4 August 2024 (UTC)
- To clarify: (1) Will there be pages like [[../Book X]] with lists of the contained Hymns? If so, then I assume such pages will be converted to use {{AuxTOC}}? And (2) The question is also whether such pages should appear in the page linking sequence in the same order listed on the proposed list page. --EncycloPetey (talk) 19:10, 4 August 2024 (UTC)
- Such pages already exist, e.g. The Rig Veda/Mandala 3. They should be converted, but this can be done manually since there are only ten of them. And it is a change independent of the move.
- As for the move, considering no further objections have been raised, could @Xover please move the pages according to the list in your Sandbox? (I have made a minor change to it, by removing the superfluous word The before Hymns, so please use the latest version.) Mårtensås (talk) 17:34, 6 August 2024 (UTC)
- Why the last-minute change to remove the first word of the title? --EncycloPetey (talk) 20:50, 6 August 2024 (UTC)
- @Mårtensås: To echo EncycloPetey, the "The Hymns" title is clearly present in the original work. BD2412 T 23:00, 6 August 2024 (UTC)
- The word "the" is present in the original title, but is simply an article (and is printed in much smaller size), and I figure it might make the work more difficult to find. The change was also done in order to agree with Hymns of the Atharva-Veda (the original printed title of which likewise has a "The", in the same format as the Hymns of the Rigveda). But I have no strong preference; if you find it so problematic then I can undo it. I just want the subpages moved. Mårtensås (talk) 20:10, 7 August 2024 (UTC)
- Moves and cleanup should be
Done now, and all pages live at The Hymns of the Rigveda.Since I agree with EncycloPetey and BD2412 on the title issue and you indicate you have no strong preference, I went ahead and used that title.Please feel free to hit me up if you need more mass replacements done (e.g. switching the poems to use {{ppoem}}). Xover (talk) 09:57, 8 August 2024 (UTC)
- Moves and cleanup should be
- The word "the" is present in the original title, but is simply an article (and is printed in much smaller size), and I figure it might make the work more difficult to find. The change was also done in order to agree with Hymns of the Atharva-Veda (the original printed title of which likewise has a "The", in the same format as the Hymns of the Rigveda). But I have no strong preference; if you find it so problematic then I can undo it. I just want the subpages moved. Mårtensås (talk) 20:10, 7 August 2024 (UTC)
- To clarify: (1) Will there be pages like [[../Book X]] with lists of the contained Hymns? If so, then I assume such pages will be converted to use {{AuxTOC}}? And (2) The question is also whether such pages should appear in the page linking sequence in the same order listed on the proposed list page. --EncycloPetey (talk) 19:10, 4 August 2024 (UTC)
- Alright. The format of the "previous/next" is just [[../Hymn X]]. However each hymn has a header "section" in the format [[../|Mandala X]], where Mandala should be replaced with Book. Mårtensås (talk) 16:03, 4 August 2024 (UTC)
- I meant internal links within the text.
- I note that our copy is the 2nd edition of this work, which implies that there is more than one edition, and therefore may need to be disambiguated in future. Given the large number of pages, using a preëemptively disambiguated page title is likely preferable over using one that may require an additional move in future. --EncycloPetey (talk) 20:20, 3 August 2024 (UTC)
- @Mårtensås / @EncycloPetey: Can you confirm that this list look correct? Format is old page name / new page name on alternating lines (it's what the pwb move script expects, not necessarily the most logical way). I can run the bot over and move the pages, but I'd rather not move 1k+ pages to the wrong name. I can also run any replacements needed for links etc. due to the name changes, but I'll need instructions for what's needed (I know less than zero about this work, much less this edition of it). Xover (talk) 19:58, 3 August 2024 (UTC)
- The subdivision should be: The Hymns of the Rigveda/Book 5/Hymn 3. This follows the format of the original work except for using Arabic numerals instead of Roman (i.e., the original has Book V/Hymn III), which is just a matter of convenience. Mårtensås (talk) 19:15, 3 August 2024 (UTC)
- My point is that we should not move The Rig Veda/Mandala 3/Hymn 1 to The Hymns of the Rigveda/Mandala 3/Hymn 1 if the work is not going to be subdivided into units of "Mandala". We need to know what the full page names will be in order to make the page moves. Without knowing the move targets, the page moves cannot be done. --EncycloPetey (talk) 18:06, 3 August 2024 (UTC)
- The following change should at least be uncontroversial
For some reason this joke song refers to the Wikipedia article on the actual play. TE(æ)A,ea. (talk) 19:00, 4 August 2024 (UTC)
- That happens because on Wikidata, that "main topic" of the song is the play. Our header template pulls that information and links to the corresponding WP article for that subject. If Wikipedia had an article about the Lehrer song, and if that were linked via the usual Wikidata interconnections, then it would point to the article about the song. But since there is a "main subject" for the work and no WP article about the work, the link goes instead to the article about the main subject. If someone creates a WP article about the song, and links it from the WD item, then the linkage would be to that article. In some instances, this subject linking works better, such as a history book about the US Civil War linking to the WP article about the US Civil War. In other situations, it can be confusing, such as in this instance.
- Although there is no WP article, I have solved the issue somewhat by using a WD link via WP redirect to the article about the album on which the song appears. --EncycloPetey (talk) 19:19, 4 August 2024 (UTC)
poem tag formatting carrying into included footnotes
[edit]I notice that the <poem> tag is formatting both the intended text and the footnote on Page:Philological Museum v2.djvu/482.
I can, of course, circumvent this behavior by simply not using the tag, but want to determine whether this behavior can (or should) be corrected for future editors. --EncycloPetey (talk) 21:04, 4 August 2024 (UTC)
- @EncycloPetey: You mean the line-breaking behaviour? Yeah, I'm guessing that's due to the interaction between the
<ref>...</ref>
and<poem>...</poem>
tags; the poem extension is either inserting<br />
before handing the ref tag's contents off to the cite extension or applying itself to the cite extension's output. I had never noticed this behaviour before so it could well be a recently introduced bug (or at least change in behaviour), but it may also just be that since they changed the line height and other vertical whitespace recently this issue became a lot more noticeable. The observable behaviour appears completely logical from a software point of view (even if obviously non-intuitive from a user point of view).This kind of problem is specific to the interaction of MediaWiki extension tags, so any other way to format the poem should avoid it (replacing the<ref>...</ref>
tag's behaviour is a lot harder). Xover (talk) 06:18, 13 August 2024 (UTC)- I worry, though that this is an error, and thus might be "fixed" later, in which case the currently applied formatting will be broken when the interactive behavior is fixed.
- Is there a way to find out whether this is (a) deliberate, or (b) accidental, but not going to be changed, or (c) unintended, and going to be fixed? --EncycloPetey (talk) 07:55, 13 August 2024 (UTC)
- Hmm. Surely I've used footnotes inside poems before, including before {{ppoem}} was an option, and this behaviour should, I think, have been fairly obvious. Maybe we could try to look for older texts that uses the same construct (
<ref>...</ref>
inside<poem>...</poem>
) that are broken now (but, presumably, were not broken at the time)?To figure out whether there's a software bug when we're 1) not sure whether there even was a change, 2) when that hypothetical change happened, or 3) which particular component any such change was in, is pretty needle-in-haystack. We'll need to narrow down the parameters pretty significantly to stand a chance there. Xover (talk) 09:11, 13 August 2024 (UTC)
- Hmm. Surely I've used footnotes inside poems before, including before {{ppoem}} was an option, and this behaviour should, I think, have been fairly obvious. Maybe we could try to look for older texts that uses the same construct (
Gadget-RunningHeader
[edit]Hi. Is Gadget-RunningHeader working, please? If so, what other settings do I need to make it work, please? Thanks. CharlesSpencer (talk) 17:03, 6 August 2024 (UTC)
- It is working, normally. What issues are you encountering? — Alien333 (what I did & why I did it wrong) 17:11, 6 August 2024 (UTC)
- Thankyou @Alien333 - the symptoms I am experiencing point clearly to a diagnosis of total incompetence - I was expecting a button, but the help page actually talks of a link in the sidebar, which after a few hard purges is now... there! Apologies for wasting everyone's time... CharlesSpencer (talk) 09:30, 8 August 2024 (UTC)
Pagelist tag backend error
[edit]I'm trying to populate Index:The Bibelot (Volume 15).djvu, but I can't create a working pagelist. No matter what I try, whenever I click on "Preview pagelist," I get this message: "The following error was encountered while parsing the pagelist tag in the backend, Error: Invalid interval." This doesn't happen when I click on "Preview pagelist" on works with existing pagelists; the tag functions normally for them. I've copied the pagelist tags from these other works into the pagelist field at issue to see if the error was caused by a typo in the tag, but the error still occurs even where the text of the tag is known to be correct. Am I doing something wrong, or is this a malfunction on Wikisource's end? Eureiachthon (talk) 23:19, 6 August 2024 (UTC)
- From what I can see (and I'm not an expert), there is an issue with the DjVu file itself. It's showing content that it should not contain, and the file may have to be re-processed by someone who know how to fix it. --EncycloPetey (talk) 23:32, 6 August 2024 (UTC)
- Thanks for the explanation. What do you mean by "content that it should not contain," and where should I look for someone to fix the file--here or on Commons? Eureiachthon (talk) 02:46, 7 August 2024 (UTC)
- When I look at the file, the default image is the test scan of a black metal frame, and not the front cover of the book that was scanned. The test image should not appear anywhere in the file. There is a Wikisource:Scan Lab where repairs can be requested, but I would recommend waiting here until a couple of technically proficient file editors have had a look. The fix may be simpler than having to actually edit the file. --EncycloPetey (talk) 02:55, 7 August 2024 (UTC)
- Long story short there's an ongoing problem with the communication between Commons and Wikisource that makes Wikisource think the file is 0 pages long, and hence any interval you try to use in
<pages />
will be "invalid". I have made the requisite voodoo incantations to get around it and the file should work as intended now. I also regenerated it from the source scans to get rid of the test pages at the start and end. Xover (talk) 05:39, 7 August 2024 (UTC)- Thank you! That makes sense, then. Eureiachthon (talk) 21:09, 7 August 2024 (UTC)
- Long story short there's an ongoing problem with the communication between Commons and Wikisource that makes Wikisource think the file is 0 pages long, and hence any interval you try to use in
- When I look at the file, the default image is the test scan of a black metal frame, and not the front cover of the book that was scanned. The test image should not appear anywhere in the file. There is a Wikisource:Scan Lab where repairs can be requested, but I would recommend waiting here until a couple of technically proficient file editors have had a look. The fix may be simpler than having to actually edit the file. --EncycloPetey (talk) 02:55, 7 August 2024 (UTC)
- Thanks for the explanation. What do you mean by "content that it should not contain," and where should I look for someone to fix the file--here or on Commons? Eureiachthon (talk) 02:46, 7 August 2024 (UTC)
Help with score for Page:Te Amo music.pdf/3
[edit]I can't figure out how to get the alternative score to show up only when it has notes in it. Using \startStaff
and \stopStaff
partially works, but there are still some lingering staff elements before the \startStaff
. I don't want to add
\context { \Staff \RemoveEmptyStaves }
because this will cause problems elsewhere in the score, where there are empty staves that are supposed to be displayed. Help?
Advice on making the alternative score smaller and doing the bracket on the left would also be great, but that's more of a nice-to-have. —CalendulaAsteraceae (talk • contribs) 03:26, 7 August 2024 (UTC)
- This is what's known as an Ossia staff. The second technique described in the Lilypond Notation Reference in section 1.6.2 is the most suitable for what you want to do. It's also got how to make the ossia smaller. For the bracket, this is described in section 1.6.1 under Grouping staves (the first of the selected snippets). However, as doing it will cause problems with the Staff Group already in use, I suggest that you don't reproduce it—particularly if it ends up not starting at a new line of music. Beeswaxcandle (talk) 06:33, 7 August 2024 (UTC)
- Thank you, that works great! How do I add lyrics to the ossia staff? —CalendulaAsteraceae (talk • contribs) 19:07, 9 August 2024 (UTC)
Request move: Jewish Encyclopedia/Baranabas, Joses -> Jewish Encyclopedia/Barnabas, Joses
[edit]I created a new document for the first time, but misspelled it.🤦 I'm assuming the reason I can't move it is because I'm not autoconfirmed on Wikisource. Can somebody move it for me (and make sure I otherwise made the page correctly)? Nicknimh (talk) _Jewish_Encyclopedia/Barnab" class="ext-discussiontools-init-timestamplink">18:34, 9 August 2024 (UTC)
- Wow, that was fast. Nicknimh (talk) 18:36, 9 August 2024 (UTC)
- You got lucky, I just happened to look here. :) Cremastra (talk) 18:39, 9 August 2024 (UTC)
Done. However – what is your source for this section? Ideally new entries to the Jewish Encyclopedia should be coming from the Index pages, like Index:Jewish Encyclopedia Volume 2.pdf. Joses Barnabas is on page 587. Do you need help figuring out transclusion? Have you looked at Help:Beginner's guide to proofreading, which is very useful? There's no rush, but it'd be good if this section was scan-backed. (That is, transcribed from a scanned version of the book and connected to an Index page). Cremastra (talk) 18:39, 9 August 2024 (UTC)
- I created the page by using an existing one (this one, selected at random) as a template. However, I suppose that that must be a really old page from before Wikisource started using this scan & transclusion system. There is a scan, but the autoscan is really bad and seeing as I already written out a page in wikitext, it seemed easier to just post it in directly. Would it be better if I edited the relevant scanned pages and then replaced my wikitext with a transclusion? Rather than doing that, is there a way I can just keep the existing page and link to the scanned PDF so that someone can easily verify it's correct? Nicknimh (talk) 18:47, 9 August 2024 (UTC)
- "Rather than doing that, is there a way I can just keep the existing page and link to the scanned PDF so that someone can easily verify it's correct?"
- That is a little unorthodox, and while it might be a good interim step, I wouldn't really advise it. Scan transcription is really the preferred method here. If the automatic transcription isn't working, it's just going to be a bit of a pain. I'm not sure why it isn't; it seems to have just frozen for me.
- But there's good news!
- This is a collaborative project, so people can help out. You don't have to do all of it; if you want you can just proofread the section that you want. Cremastra (talk) 18:58, 9 August 2024 (UTC)
- I created the page by using an existing one (this one, selected at random) as a template. However, I suppose that that must be a really old page from before Wikisource started using this scan & transclusion system. There is a scan, but the autoscan is really bad and seeing as I already written out a page in wikitext, it seemed easier to just post it in directly. Would it be better if I edited the relevant scanned pages and then replaced my wikitext with a transclusion? Rather than doing that, is there a way I can just keep the existing page and link to the scanned PDF so that someone can easily verify it's correct? Nicknimh (talk) 18:47, 9 August 2024 (UTC)
Help with weird no-lined table formatting
[edit]I’ve been working on Index:1998-1999 Tornadoes and a Long-Term U.S. Tornado Climatology.pdf page 10-17, which is a big list in a table format. However, that table has no lines. Is wide spacing the best way to fix the spacing issue? I started experimenting with the formatting on Page:1998-1999 Tornadoes and a Long-Term U.S. Tornado Climatology.pdf/18, but there is things like “TN” which is spaced left of center and a wide space doesn’t fix that. Could I get some formatting assistance with it? Thanks. WeatherWriter (talk) 16:50, 14 August 2024 (UTC)
- @WeatherWriter: To remove the lines, remove the class="wikitable" in the first line. For other styling, most things you could want can be found in {{ts}}. About the TN (also goes for the 1998 on the left, and the rest): I am pretty sure these were just cases of text getting wrapped, so it really was a single line. I did that first line on that page to show you. — Alien333 (what I did & why I did it wrong) 17:44, 14 August 2024 (UTC)
- I've set all the table on that page in a different way to Alien333. Choose whichever makes sense to you and continue in other places. Beeswaxcandle (talk) 17:51, 14 August 2024 (UTC)
- For multi-page tables like this, I like to use index CSS, because that way I can just set up the formatting once and not have to worry about it afterwards (plus it's easier to change later if needed). —CalendulaAsteraceae (talk • contribs) 15:55, 15 August 2024 (UTC)
Inline image
[edit]What's a better way to use the image on Page:Midland naturalist (IA midlandnaturalis01lond).pdf/27? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 20:49, 15 August 2024 (UTC)
- (Assuming you meant Page:Midland naturalist (IA midlandnaturalis01lond).pdf/28, as page 27 has no images.) You can use {{float left}} for that (see the page). — Alien333 (what I did & why I did it wrong) 23:05, 15 August 2024 (UTC)
- Thank you, but no, I mean /27, which does indeed have an image. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:04, 16 August 2024 (UTC)
- Oh, sorry, I hadn't seen it. Images are by default inline, they only become block if you give |right, |left or |center. (see w:Template:no spam for an example). — Alien333 (what I did & why I did it wrong) 11:12, 16 August 2024 (UTC)
- Thank you, but no, I mean /27, which does indeed have an image. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:04, 16 August 2024 (UTC)