Page MenuHomePhabricator

Jonathanischoice (Jonathan Harker)
Musician

Today

  • No visible events.

Tomorrow

  • No visible events.

Friday

  • No visible events.

User Details

User Since
Sep 27 2016, 12:25 AM (515 w, 1 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Jonathanischoice [ Global Accounts ]

Recent Activity

Sat, Aug 8

Jonathanischoice added a comment to T257093: Add cache key information to metadata json.

I don't think those pngs are in fact useless. I might have the sequencing wrong here, but this is how it looks to me ...

Sat, Aug 8, 3:27 AM · Patch-For-Review, Reader Experience Team, SRE, SRE-swift-storage, MediaWiki-extensions-Score

Sat, Aug 1

Jonathanischoice added a comment to T289399: Scores in a <div>, placed inside text flow (<span>, <p>), creates unwanted line breaks and malformed HTML.

After more investigating, something is closing the <p> before processing the encountered <score> element, and starting a new <p> immediately afterward, so displaying the Lilypond using a <div> or <span> makes no difference. Not sure if this can be addressed in the Score extension, is this happening elsewhere?

Sat, Aug 1, 6:55 PM · Wikimania-Hackathon-2026, Patch-For-Review, MediaWiki-extensions-Score

Sat, Jul 25

Jonathanischoice closed T431028: Handle SVG rendering error without cairo better as Declined.
Sat, Jul 25, 11:09 AM · MediaWiki-extensions-Score
Jonathanischoice added a comment to T431028: Handle SVG rendering error without cairo better.

In the extension docs we say something like "SVG rendering requires LilyPond >= 2.24 compiled with libcairo (default since LilyPond >= 2.26)" therefore setting $wgScoreUseSvg without libcairo LilyPond is pretty much an administrator configuration RTFM error 😄 of course it was unhelpful that LilyPond 2.24 was initially compiled without libcairo support in Debian, but that was out of our hands.

Sat, Jul 25, 10:39 AM · MediaWiki-extensions-Score
Jonathanischoice added a project to T431148: Score should output dark-mode compatible music: Wikimania-Hackathon-2026.
Sat, Jul 25, 10:09 AM · Wikimania-Hackathon-2026, MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Patch-For-Review, dark-mode, MediaWiki-extensions-Score

Fri, Jul 24

Jonathanischoice added a watcher for All-and-every-Wikisource: Jonathanischoice.
Fri, Jul 24, 4:00 PM
Jonathanischoice added a member for MediaWiki-extensions-Score: Jonathanischoice.
Fri, Jul 24, 3:35 PM
Jonathanischoice added a watcher for MediaWiki-extensions-Score: Jonathanischoice.
Fri, Jul 24, 3:34 PM
Jonathanischoice changed the status of T433056: The Score extension line_width_inches attribute is undocumented from Open to In Progress.
Fri, Jul 24, 3:30 PM · Wikimania-Hackathon-2026, MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Documentation, MediaWiki-extensions-Score
Jonathanischoice changed the status of T289864: Error: Call to a member function getPath() on null from Open to In Progress.
Fri, Jul 24, 3:29 PM · MW-1.47-notes (1.47.0-wmf.15; 2026-08-11), Wikimania-Hackathon-2026, Editing-team, MediaWiki-extensions-Score, Wikimedia-production-error
Jonathanischoice closed T432432: Rendering problems on German Wikibooks after Score update to LilyPond 2.24.x as Resolved.

From the discussion on Help_talk:Score it seems this is resolved by updating old LilyPond syntax.

Fri, Jul 24, 3:27 PM · MediaWiki-extensions-Score
Jonathanischoice added a comment to T289399: Scores in a <div>, placed inside text flow (<span>, <p>), creates unwanted line breaks and malformed HTML.

This patch adds an inline attribute to the <score> element, which wraps the Score image in a <span> element instead of a <div>. For now the sound` attribute is ignored when music is displayed inline.

Fri, Jul 24, 2:07 PM · Wikimania-Hackathon-2026, Patch-For-Review, MediaWiki-extensions-Score
Jonathanischoice moved T289399: Scores in a <div>, placed inside text flow (<span>, <p>), creates unwanted line breaks and malformed HTML from Backlog to In Progress on the MediaWiki-extensions-Score board.
Fri, Jul 24, 1:59 PM · Wikimania-Hackathon-2026, Patch-For-Review, MediaWiki-extensions-Score
Jonathanischoice added a comment to T181322: Improve Score's HTML output so PDF export can render music scores natively, i.e. not as images.

FYI: SVG Score/LilyPond output is now enabled on WikiSource, e.g. fr:Méthode de Serpent and en:Translation:Méthode_de_serpent.

Fri, Jul 24, 12:58 PM · MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Product-Infrastructure-Team-Backlog-Deprecated, Proton, All-and-every-Wikisource, Multimedia, OCG-PDFRenderer, MediaWiki-extensions-Score
Jonathanischoice claimed T289864: Error: Call to a member function getPath() on null.
Fri, Jul 24, 12:47 PM · MW-1.47-notes (1.47.0-wmf.15; 2026-08-11), Wikimania-Hackathon-2026, Editing-team, MediaWiki-extensions-Score, Wikimedia-production-error
Jonathanischoice claimed T433056: The Score extension line_width_inches attribute is undocumented.
Fri, Jul 24, 12:44 PM · Wikimania-Hackathon-2026, MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Documentation, MediaWiki-extensions-Score
Jonathanischoice moved T433056: The Score extension line_width_inches attribute is undocumented from Backlog to In Progress on the MediaWiki-extensions-Score board.
Fri, Jul 24, 12:44 PM · Wikimania-Hackathon-2026, MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Documentation, MediaWiki-extensions-Score
Jonathanischoice created T433056: The Score extension line_width_inches attribute is undocumented.
Fri, Jul 24, 12:41 PM · Wikimania-Hackathon-2026, MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Documentation, MediaWiki-extensions-Score

Wed, Jul 22

Jonathanischoice claimed T289399: Scores in a <div>, placed inside text flow (<span>, <p>), creates unwanted line breaks and malformed HTML.
Wed, Jul 22, 2:56 PM · Wikimania-Hackathon-2026, Patch-For-Review, MediaWiki-extensions-Score
Jonathanischoice changed the status of T289399: Scores in a <div>, placed inside text flow (<span>, <p>), creates unwanted line breaks and malformed HTML from Open to In Progress.

I've added a patch but it's not ready to merge yet - it needs documentation and a couple of tests, to come (at Wikimania; battery at 5 percent!)

Wed, Jul 22, 2:56 PM · Wikimania-Hackathon-2026, Patch-For-Review, MediaWiki-extensions-Score
Jonathanischoice closed T291766: '}</score>' not parsed correctly as Resolved.

Confirmed with upgrade to LilyPond 2.24 (see Special:Version, 特別:バージョン情報) that this now renders lyrics correctly on both examples, see supplied page oldid: 利用者:Bcxfu75k/score20210926

Wed, Jul 22, 11:43 AM · Upstream, MediaWiki-extensions-Score
Jonathanischoice moved T289864: Error: Call to a member function getPath() on null from Backlog to In Progress on the MediaWiki-extensions-Score board.
Wed, Jul 22, 11:33 AM · MW-1.47-notes (1.47.0-wmf.15; 2026-08-11), Wikimania-Hackathon-2026, Editing-team, MediaWiki-extensions-Score, Wikimedia-production-error
Jonathanischoice updated subscribers of T289864: Error: Call to a member function getPath() on null.
Wed, Jul 22, 11:32 AM · MW-1.47-notes (1.47.0-wmf.15; 2026-08-11), Wikimania-Hackathon-2026, Editing-team, MediaWiki-extensions-Score, Wikimedia-production-error
Jonathanischoice closed T277719: Score scripts/extractPostScriptPageSize.php can use better error reporting as Declined.

Seems silly to add another translation string for differentiating a "file not found" variant for the fopen error, which is likely going to be caught earlier, and LilyPond 2.24 doesn't use this script for PNG generation any more anyway.

Wed, Jul 22, 10:34 AM · MediaWiki-extensions-Score
Jonathanischoice added a comment to T277719: Score scripts/extractPostScriptPageSize.php can use better error reporting.

Noting here that Score with SVG output enabled requires LilyPond 2.24+ which renders PNG directly (in addition to SVG files). the extractPostScriptPageSize.php script (and Ghostscript and ImageMagick) are only required for PNG-only output, using old versions of LilyPond < 2.24

Wed, Jul 22, 10:27 AM · MediaWiki-extensions-Score
Jonathanischoice moved T181322: Improve Score's HTML output so PDF export can render music scores natively, i.e. not as images from Backlog to In Progress on the MediaWiki-extensions-Score board.
Wed, Jul 22, 10:22 AM · MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Product-Infrastructure-Team-Backlog-Deprecated, Proton, All-and-every-Wikisource, Multimedia, OCG-PDFRenderer, MediaWiki-extensions-Score
Jonathanischoice moved T432432: Rendering problems on German Wikibooks after Score update to LilyPond 2.24.x from Backlog to In Progress on the MediaWiki-extensions-Score board.
Wed, Jul 22, 10:20 AM · MediaWiki-extensions-Score
Jonathanischoice renamed T432432: Rendering problems on German Wikibooks after Score update to LilyPond 2.24.x from Wikibooks score pluggin don't work to Rendering problems on German Wikibooks after Score update to LilyPond 2.24.x.
Wed, Jul 22, 10:18 AM · MediaWiki-extensions-Score
Jonathanischoice changed the status of T432432: Rendering problems on German Wikibooks after Score update to LilyPond 2.24.x from Open to In Progress.
Wed, Jul 22, 10:16 AM · MediaWiki-extensions-Score
Jonathanischoice added a comment to T432432: Rendering problems on German Wikibooks after Score update to LilyPond 2.24.x.

I've updated the page Gitarre: Aufbau der CAGED-Skalenformen on German WikiBooks with the suggested LilyPond syntax update as per @mb above; looks good to me. @Mjchael if I've missed something and this is still incorrect somehow please revert my change and let me know here.

Wed, Jul 22, 10:14 AM · MediaWiki-extensions-Score
Jonathanischoice removed a project from T428231: PHP Warning: Undefined array key "DEBUG" in /srv/http/wiki1/includes/Logger/LegacyLogger.php on line 151: MediaWiki-extensions-Score.
Wed, Jul 22, 9:25 AM · MediaWiki-extensions-Score, MediaWiki-Debug-Logger, Shellbox
Jonathanischoice added a comment to T428231: PHP Warning: Undefined array key "DEBUG" in /srv/http/wiki1/includes/Logger/LegacyLogger.php on line 151.

Hi @Lucas_Werkmeister_WMDE - I'm having trouble reproducing this (and I'm not sure why you'd want display_errors=1 like it's 1999 😄). What version or commit of the Score extension are you using?

Wed, Jul 22, 9:15 AM · MediaWiki-extensions-Score, MediaWiki-Debug-Logger, Shellbox

Tue, Jul 21

Jonathanischoice added a comment to T181322: Improve Score's HTML output so PDF export can render music scores natively, i.e. not as images.

It's worth noting that while WikiSource has the updated 2.24.4 version of LilyPond (see e.g. Spécial:Version on French WikiSource), the Score extension is not yet configured to output SVG files, so it is still displaying PNG images (see e.g. Méthode de Serpent). This patch might not be needed if the HTML was rendering SVGs instead of PNGs, per the HTML standard usage of the srcset attribute.

Tue, Jul 21, 9:59 PM · MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Product-Infrastructure-Team-Backlog-Deprecated, Proton, All-and-every-Wikisource, Multimedia, OCG-PDFRenderer, MediaWiki-extensions-Score
Jonathanischoice updated subscribers of T181322: Improve Score's HTML output so PDF export can render music scores natively, i.e. not as images.
Tue, Jul 21, 8:33 PM · MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Product-Infrastructure-Team-Backlog-Deprecated, Proton, All-and-every-Wikisource, Multimedia, OCG-PDFRenderer, MediaWiki-extensions-Score
Jonathanischoice placed T181322: Improve Score's HTML output so PDF export can render music scores natively, i.e. not as images up for grabs.
Tue, Jul 21, 8:30 PM · MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Product-Infrastructure-Team-Backlog-Deprecated, Proton, All-and-every-Wikisource, Multimedia, OCG-PDFRenderer, MediaWiki-extensions-Score
Jonathanischoice changed the status of T181322: Improve Score's HTML output so PDF export can render music scores natively, i.e. not as images from Open to In Progress.
Tue, Jul 21, 8:30 PM · MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Product-Infrastructure-Team-Backlog-Deprecated, Proton, All-and-every-Wikisource, Multimedia, OCG-PDFRenderer, MediaWiki-extensions-Score
Jonathanischoice moved T431148: Score should output dark-mode compatible music from Backlog to In Progress on the MediaWiki-extensions-Score board.
Tue, Jul 21, 3:35 PM · Wikimania-Hackathon-2026, MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Patch-For-Review, dark-mode, MediaWiki-extensions-Score
Jonathanischoice added a comment to T431148: Score should output dark-mode compatible music.

This patch preserves current CSS behaviour for PNG output, and uses the dark mode support class when SVG output is enabled.

Tue, Jul 21, 3:27 PM · Wikimania-Hackathon-2026, MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Patch-For-Review, dark-mode, MediaWiki-extensions-Score
Jonathanischoice updated subscribers of T431148: Score should output dark-mode compatible music.
Tue, Jul 21, 3:09 PM · Wikimania-Hackathon-2026, MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Patch-For-Review, dark-mode, MediaWiki-extensions-Score
Jonathanischoice updated subscribers of T431148: Score should output dark-mode compatible music.
Tue, Jul 21, 1:32 PM · Wikimania-Hackathon-2026, MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Patch-For-Review, dark-mode, MediaWiki-extensions-Score

Sat, Jul 18

Jonathanischoice added a comment to T181322: Improve Score's HTML output so PDF export can render music scores natively, i.e. not as images.

Is anyone else here on-site in Paris next week? Perhaps we could convene an impromptu Score-LilyPond hackathon or birds-of-a-feather if so.

Sat, Jul 18, 9:24 AM · MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Product-Infrastructure-Team-Backlog-Deprecated, Proton, All-and-every-Wikisource, Multimedia, OCG-PDFRenderer, MediaWiki-extensions-Score

Thu, Jul 16

Jonathanischoice added a comment to T181322: Improve Score's HTML output so PDF export can render music scores natively, i.e. not as images.

Re-reading the task description - I'm not sure there's really any decent solution to "embed the SVG from LilyPond in the HTML in such a way that it somehow recreates its text elements when we mince the HTML through a tool to produce a PDF"

Thu, Jul 16, 1:27 PM · MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Product-Infrastructure-Team-Backlog-Deprecated, Proton, All-and-every-Wikisource, Multimedia, OCG-PDFRenderer, MediaWiki-extensions-Score
Jonathanischoice added a comment to T181322: Improve Score's HTML output so PDF export can render music scores natively, i.e. not as images.

It's LilyPond not Score that renders the text elements as glyphs in SVG, to guarantee exact output of the music fonts involved, and in the exact rendering layout, since that's the entire point of LilyPond. I can only offer some suggestions:

  1. I don't know enough about the SVG spec to know if it supports attaching searchable-but-hidden (accessibility?) text or character attributes to the glyph paths, but it would be cool if that were possible. Unfortunately I'm not enough of a C or Scheme hacker to be able to write a patch for LilyPond if that is what is needed.
  2. Is there an approach where we could (for example) get Score to parse the LilyPond file for text elements, and then smoosh all the words into an alt or data attribute on the <img> tag, or an associated hidden <span>, so it is still available in document search?
  3. I'm not sure if this is right, but maybe we could abuse SVG attributes (see docs here) to include the text in the right place?
Thu, Jul 16, 12:25 PM · MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Product-Infrastructure-Team-Backlog-Deprecated, Proton, All-and-every-Wikisource, Multimedia, OCG-PDFRenderer, MediaWiki-extensions-Score

Jul 12 2026

Jonathanischoice added a comment to T431148: Score should output dark-mode compatible music.

These two screenshots of part of the discussion on Wikipedia show the result of removing the CSS background rule at .mw-ext-score img and adding skin-invert to the containing div, before and after:

Screenshot_20260712_233717.png (1,117×411 px, 142 KB)

Screenshot_20260712_233913.png (1,117×411 px, 142 KB)

Jul 12 2026, 10:43 PM · Wikimania-Hackathon-2026, MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Patch-For-Review, dark-mode, MediaWiki-extensions-Score
Jonathanischoice added a comment to T431148: Score should output dark-mode compatible music.

The SVG generated by LilyPond does not have a background. The Score extension wraps the SVG <img> tag in a div with class="mw-ext-score noresize" which is styled to have a white background. All we need to do is remove the white background CSS, and add skin-invert to the div classes, or otherwise tweak the CSS for mw-ext-score to invert the SVG colours. This is well supported by all major browsers, https://caniuse.com/?search=svg

Jul 12 2026, 10:29 PM · Wikimania-Hackathon-2026, MW-1.47-notes (1.47.0-wmf.13; 2026-07-28), Patch-For-Review, dark-mode, MediaWiki-extensions-Score

Jul 3 2026

Jonathanischoice added a comment to T49578: Score should output SVG.

I love it when a plan comes together! Thanks so much everyone!!!!! 🎵

Jul 3 2026, 5:23 AM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Jun 29 2026

Jonathanischoice added a comment to T49578: Score should output SVG.

So now that T385404 is done, we can hopefully now enable $wgScoreUseSvg = true and bask in our new SVG niceness? Or do we need to go through all the cached .ly files, and generate .svg results wherever there are currently .png files being used?

Jun 29 2026, 2:16 PM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Jun 20 2026

Jonathanischoice added a comment to T385404: Deploy LilyPond 2.24 with Cairo support to shellbox containers.

👏🍾🏖 !

Jun 20 2026, 12:39 AM · User-Raine, ServiceOps-Upgrades-Hardware, ServiceOps-Services-Oids, Shellbox, ServiceOps, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Jun 11 2026

Jonathanischoice added a comment to T385404: Deploy LilyPond 2.24 with Cairo support to shellbox containers.

Hilariously, the new stable 2.26.0 was released in April, but let's not allow that to distract us from the goal! The 2.24 series satisfies T49578 just fine for now.

Jun 11 2026, 9:00 PM · User-Raine, ServiceOps-Upgrades-Hardware, ServiceOps-Services-Oids, Shellbox, ServiceOps, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Jun 10 2026

Jonathanischoice added a comment to T385404: Deploy LilyPond 2.24 with Cairo support to shellbox containers.

We're so close! The LilyPond maintainer stated in T49578 that libcairo is enabled in the 2.24.4 in bookworm-backports, it would be easy to install that version and try it and see; it worked when I tried it some months ago, but I'm not currently near a terminal to confirm, sorry.

Jun 10 2026, 11:00 AM · User-Raine, ServiceOps-Upgrades-Hardware, ServiceOps-Services-Oids, Shellbox, ServiceOps, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Jun 9 2026

Jonathanischoice added a comment to T49578: Score should output SVG.

PLEASE NOTE: enabling $wgScoreUseSvg = true without libcairo support in LilyPond will cause a rendering error similar to the one reported in T428484

Jun 9 2026, 3:25 PM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Apr 23 2026

Jonathanischoice added a comment to T385404: Deploy LilyPond 2.24 with Cairo support to shellbox containers.

How about this quarter?

Apr 23 2026, 2:37 AM · User-Raine, ServiceOps-Upgrades-Hardware, ServiceOps-Services-Oids, Shellbox, ServiceOps, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Jan 9 2026

Jonathanischoice added a comment to T49578: Score should output SVG.

Hopefully it doesn't take another 13 years.

Jan 9 2026, 10:59 PM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Aug 28 2025

Jonathanischoice added a comment to T257652: Add support for AVIF: serve AVIF thumbnails where possible.

I'd just like to add that a year and a half later, using the ImageMagick 7.1.1-43 implementation in Debian Trixie, encoding AVIF is much much faster (but HEIF encoding is still slow). Using the same typical large photograph as last time (extracted PNG from a Canon CR3 raw file):

Aug 28 2025, 2:08 AM · Thumbor, Commons, MediaWiki-File-management

Jun 20 2025

Jonathanischoice added a comment to T385404: Deploy LilyPond 2.24 with Cairo support to shellbox containers.

Thank you - improving PDF output on T181322 also depends on this.

Jun 20 2025, 5:56 PM · User-Raine, ServiceOps-Upgrades-Hardware, ServiceOps-Services-Oids, Shellbox, ServiceOps, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Jun 4 2025

Jonathanischoice added a comment to T385344: Support specifying axis ranges (min/max) in the chart definition.

I believe this could be handled by a transform.
https://www.mediawiki.org/wiki/Extension:Chart/Transforms

Jun 4 2025, 7:25 PM · Reader Growth Team, Charts

Feb 18 2025

Jonathanischoice added a comment to T166138: Add Petit Formal Script to the UniversalLanguageSelector.

I want to test adding one woff2 file to the static resources of the Wikisource extension, which adds it to the static resources pipeline for deployment, and takes care of not having to add it to ULS, or pollute all of the other sister projects with a font that isn't needed outside this particular specialist usage on Wikisource. Petit Formal Script is open source with a SIL license, so we don't have to source it from Google or any other random CDN. The font designer Pablo Impallari has published all of them on GitHub. Except, of course, for one font. Can you guess which one? Correct! Petit Formal Script. So I've emailed him to see what the story is. In the meantime I am testing with a woff2 conversion of the TTF file supplied in the Google download zip. For now I am also not bothering with other webfont formats since woff2 is now supported everywhere.
Update: source for Petit Formal Script is at github.com/librefonts/petitformalscript

Feb 18 2025, 10:39 PM · All-and-every-Wikisource, Privacy Engineering, UniversalLanguageSelector

Feb 9 2025

Jonathanischoice closed T60688: (Piano)Staff.instrumentName=#"Clarinet" returns only the 4 or 5 last characters as Resolved.

No further action required, this behaviour is in Lilypond not the Score extension, has a well known workaround as explained by @Beeswaxcandle, and is fixed anyway in Lilypond 2.24 which will hopefully be deployed soon via T385404.

Feb 9 2025, 12:10 AM · MediaWiki-extensions-Score

Feb 3 2025

Jonathanischoice added a comment to T385404: Deploy LilyPond 2.24 with Cairo support to shellbox containers.

No worries, and thanks again 🙂

Feb 3 2025, 9:04 AM · User-Raine, ServiceOps-Upgrades-Hardware, ServiceOps-Services-Oids, Shellbox, ServiceOps, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score
Jonathanischoice added a comment to T385404: Deploy LilyPond 2.24 with Cairo support to shellbox containers.

Well 2.24 is the current stable releases, and 2.25 is the dev stream. I'm not sure if it's a good idea to use 2.25 until there's at least an RC, or a 2.26 stable release? Sorry, I'm not familiar enough with what the 2.25 new features are, or breaking changes (if any).

Feb 3 2025, 5:06 AM · User-Raine, ServiceOps-Upgrades-Hardware, ServiceOps-Services-Oids, Shellbox, ServiceOps, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score
Jonathanischoice added a comment to T49578: Score should output SVG.

Thank you, done: T385404

Feb 3 2025, 2:35 AM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score
Jonathanischoice added a comment to T385404: Deploy LilyPond 2.24 with Cairo support to shellbox containers.
Feb 3 2025, 2:34 AM · User-Raine, ServiceOps-Upgrades-Hardware, ServiceOps-Services-Oids, Shellbox, ServiceOps, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score
Jonathanischoice created T385404: Deploy LilyPond 2.24 with Cairo support to shellbox containers.
Feb 3 2025, 2:32 AM · User-Raine, ServiceOps-Upgrades-Hardware, ServiceOps-Services-Oids, Shellbox, ServiceOps, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Feb 2 2025

Jonathanischoice added a comment to T49578: Score should output SVG.

Is anyone actually paying any attention at all to this bug, or what?

Feb 2 2025, 9:53 PM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Feb 1 2025

Jonathanischoice added a comment to T385344: Support specifying axis ranges (min/max) in the chart definition.

I have spare evenings here and there, I'd be happy to muck in if there's some code I can push around on Gerrit?

Feb 1 2025, 7:41 AM · Reader Growth Team, Charts

Dec 14 2024

Jonathanischoice added a comment to T166138: Add Petit Formal Script to the UniversalLanguageSelector.

So, to solve this for Wikisource instances where use of "cursive" font family is occasionally required, we should add the Petit Formal Script woff2 to the default theme payload, or something?

Dec 14 2024, 1:24 AM · All-and-every-Wikisource, Privacy Engineering, UniversalLanguageSelector

Dec 11 2024

Jonathanischoice added a comment to T166138: Add Petit Formal Script to the UniversalLanguageSelector.

Right. So since it can be solved in the same way, why has it taken seven years to not add a woff2 file in ULS, is it because the list of fonts provided can't be configured per wiki instance (e.g. include it in Wikisource config, but not others)?

Dec 11 2024, 12:07 PM · All-and-every-Wikisource, Privacy Engineering, UniversalLanguageSelector
Jonathanischoice added a comment to T166138: Add Petit Formal Script to the UniversalLanguageSelector.

If it's not a silly question, could this be solved in the same manner as the font used for the Wikisource Blackletter template?

Dec 11 2024, 4:32 AM · All-and-every-Wikisource, Privacy Engineering, UniversalLanguageSelector

Oct 24 2024

Jonathanischoice added a comment to T40010: RFC: Re-evaluate librsvg as SVG renderer on Wikimedia wikis.

I also wonder if we're trying to do much. It's already evident we don't have enough engineering resource to move some of these tickets. If the goal is to serve SVG files to be rendered in the client, then we should probably stick to SVG 1 and if there are weird text issues, then it is incumbent on the uploader to fix - use a common font, convert text to shapes, etc. I'm just an punter not an employee, so maybe I'm wrong, but it seems to me that the overall scope is ultimately to provide vector diagrams to illustrate an encyplopædia. Maybe we don't need to get too fancy :) It sure would be nice to have SVG music snippets T49578 for example, some time this decade.

Oct 24 2024, 10:31 PM · Proposal, Thumbor, MediaWiki-File-management, Commons, Wikimedia-SVG-rendering

Oct 22 2024

Jonathanischoice added a comment to T49578: Score should output SVG.

The choices seem to be:

  • Create a Debian 12 (Bookworm) shellbox to run the Debian Lilypond 2.24 package modified with cairo support.
  • Backport the Debian Lilypond 2.24 with cairo support to Buster. (I tried building this in a Debian Buster container and ran into a debhelper-compat issue before even getting to the guile problems @Legoktm encountered)
  • "The last resort" discussed above: run the Lilypond 2.24.3 generic Linux download from upstream in current shellbox. It worked for me in my Debian Buster container without requiring any install steps or moving files around, but I wasn't using shellbox.
Oct 22 2024, 2:36 AM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Oct 21 2024

Jonathanischoice added a comment to T40010: RFC: Re-evaluate librsvg as SVG renderer on Wikimedia wikis.

In a recent discussion in WikiProject Mathematics yet another rendering bug was encountered. Several users expressed the sentiment that SVG support in MediaWiki will never get fixed, and it is better to give up on them altogether and revert to PNGs. This is specially frustrating because the browsers can render the SVG correctly, but MediaWiki insists on passing it through librsvg and serving the resulting garbage instead.

Oct 21 2024, 10:40 PM · Proposal, Thumbor, MediaWiki-File-management, Commons, Wikimedia-SVG-rendering

Jul 19 2024

Jonathanischoice added a comment to T368364: Transcodes of audio-only samples are not running for new uploads.

Hi, nothing's happened for a week now? https://quarry.wmcloud.org/query/84387

Jul 19 2024, 10:16 PM · WMF-JobQueue, Regression, TimedMediaHandler-Transcode
Jonathanischoice added a comment to T257652: Add support for AVIF: serve AVIF thumbnails where possible.

I am now down a rabbit hole updating someone's BRISQUE, PIQE and NIQE code. It mostly now seems to work, but I don't have an NVidia card to test the BRISQUE code on.

Jul 19 2024, 4:10 AM · Thumbor, Commons, MediaWiki-File-management

Jul 17 2024

Jonathanischoice added a comment to T257652: Add support for AVIF: serve AVIF thumbnails where possible.

WebP is 8-bit only, right? (The reason I need a modern codec like AVIF/HEIC/JPEG XL is higher color bit depth.)

Jul 17 2024, 11:05 PM · Thumbor, Commons, MediaWiki-File-management
Jonathanischoice added a comment to T257652: Add support for AVIF: serve AVIF thumbnails where possible.

That is very cool :) My only nit-pick might be that starting with a JPEG source image might bias or throw off the lossy compression, since it will already have minor block and ring artifacts (especially if you're measuring SSIM or PSNR). Might be better to find an uncompressed TIFF or RAW image. Also, it might be fun to compare HDR images with higher bits (10 or 12 per element, e.g. RAW) which is where the newer WebP and AVIF codecs do a better job; and I'd like to dig into things like PIQE or BRISQUE measurements if I get time (unlikely!) since SSIM is a bit blunt.

Jul 17 2024, 10:43 PM · Thumbor, Commons, MediaWiki-File-management
Jonathanischoice added a comment to T257652: Add support for AVIF: serve AVIF thumbnails where possible.

Apologies - for what it's worth, using an arbitrarily chosen but reasonable quality of 80% for both conversions:

$ file IMG_0652.png
IMG_0652.png: PNG image data, 6984 x 4660, 8-bit/color RGB, non-interlaced
$ time convert -quality 80 IMG_0652.png IMG_0652.avif
real    0m30.996s
user    1m49.326s
sys     0m3.958s
$ time convert -quality 80 IMG_0652.png IMG_0652.jpeg
real    0m0.858s
user    0m0.721s
sys     0m0.136s
$ ls -l
-rw-rw-r-- 1 --- --- 1.1M Jul 17 16:19 IMG_0652.avif
-rw-rw-r-- 1 --- --- 2.4M Jul 17 16:19 IMG_0652.jpeg
-rw-rw-r-- 1 --- ---  41M Aug 24  2023 IMG_0652.png

I'm not sure that "80%" means the same thing in the different codecs, however.

Jul 17 2024, 4:27 AM · Thumbor, Commons, MediaWiki-File-management

Jul 15 2024

Jonathanischoice added a comment to T368364: Transcodes of audio-only samples are not running for new uploads.

Hi, strangely, some of my MIDI uploads have not been transcoded (Quarry) e.g. in my list of Commons uploads, the first six are fine, but File:6-Z46B_set_class_on_C.mid and on are still not, after 3 days?

Jul 15 2024, 2:19 AM · WMF-JobQueue, Regression, TimedMediaHandler-Transcode

Jun 27 2024

Jonathanischoice added a comment to T368364: Transcodes of audio-only samples are not running for new uploads.

Hi, apologies that I don't know how to help, and not sure if it's the same problem; the manual intervention here worked for files I uploaded to Commons on Monday (e.g. File:3-5B set class on C.mid), but files I uploaded yesterday are still waiting, e.g. File:4-3 set class on C.mid. I made a quarry query for these.

Jun 27 2024, 10:57 PM · WMF-JobQueue, Regression, TimedMediaHandler-Transcode

Jun 21 2024

Jonathanischoice added a comment to T49578: Score should output SVG.

Our standard practice is to prefer using Debian packages when possible

@Legoktm hi - currently this is not possible due to the Debian maintainer leaving out libcairo support for some (undocumented as far as I can tell) reason.

Jun 21 2024, 12:56 AM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score
Jonathanischoice added a comment to T49578: Score should output SVG.

As predicted, utter radio silence from the Debian maintainer of the 2.24 Lilypond package, so what do we do now? Make some noise on the Debian bug so the next version of Debian due in a couple of years might have libcairo built-in? Or can we please just get on with it, and use the generic binary from upstream Lilypond, which works fine on my Bookworm test instance? I'm not in a position to "deploy" any of this anywhere. Can someone help? This bug is eleven years old.

Jun 21 2024, 12:38 AM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Mar 22 2024

Jonathanischoice added a comment to T49578: Score should output SVG.

... have I gone mad, or have the Debian packages of lilypond 2.24 left out libcairo support? Is this some sort of torture?
Update: I have submitted a Debian bug regarding missing libcairo support in the lilypond 2.24 package.

Mar 22 2024, 9:41 AM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Feb 4 2024

Jonathanischoice added a comment to T134455: Add experimental option for direct SVG output via srcset.

Should we close this ticket, given we now have wgSVGNativeRendering and related settings merged to master on T208578?

Feb 4 2024, 11:34 PM · Patch-Needs-Improvement, MediaWiki-File-management, Commons, Wikimedia-SVG-rendering, Multimedia
Jonathanischoice added a comment to T257652: Add support for AVIF: serve AVIF thumbnails where possible.

Using the ImageMagick 6.9.11 implementation of encoding AVIF and HEIF (libavif 0.9.3, libheif 1.12.0) is still painfully slow, using a typical large photograph (extracted PNG from a Canon CR3 raw file):

$ file IMG_0652.png
IMG_0652.png: PNG image data, 6984 x 4660, 8-bit/color RGB, non-interlaced
$ time convert IMG_0652.png IMG_0652.avif
real    0m10.608s
user    0m29.370s
sys     0m2.031s
$ time convert IMG_0652.png IMG_0652.heif
real    0m17.438s
user    0m17.694s
sys     0m0.148s
$ time convert IMG_0652.png IMG_0652.jpg
real    0m0.756s
user    0m0.648s
sys     0m0.092s
Feb 4 2024, 10:06 PM · Thumbor, Commons, MediaWiki-File-management
Jonathanischoice added a comment to T257652: Add support for AVIF: serve AVIF thumbnails where possible.

I agree with @Trougnouf that this issue (use AVIF for thumbnails) shouldn't block progress on being able to upload AVIF files.

Feb 4 2024, 9:55 PM · Thumbor, Commons, MediaWiki-File-management

Nov 27 2023

Jonathanischoice added a comment to T49578: Score should output SVG.

@Legoktm @TheDJ - is this likely to happen soon? I'm not sure I can help further other than annoy you by pinging... :-/

Nov 27 2023, 2:28 AM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Aug 22 2023

Jonathanischoice added a comment to T49578: Score should output SVG.

Lilypond packages are now built with 2.24 in bookworm and trixie (and sid).

Aug 22 2023, 12:04 PM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

May 25 2023

Jonathanischoice added a comment to T49578: Score should output SVG.

Given the patch on T208578, should we adjust Score's behaviour around serving SVG? So, rather than use srcset (see T134455) to provide SVG with a PNG fallback, we look for the new $wgSVGNativeRendering setting and just serve SVG directly. We'll still need Lilypond to generate PNG, but it is only served for older versions of Mediawiki (using the current srcset behaviour) or where the SVG generated by Lilypond exceeds the new $wgSVGNativeRenderingSizeLimit setting. Another possibility (useful for older versions of Mediawiki) is to detect the presence of the NativeSVGHandler extension and serve SVG directly if enabled. Thoughts?

May 25 2023, 12:25 AM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Mar 19 2023

Jonathanischoice added a comment to T49578: Score should output SVG.

Fair enough. there seems to be promising recent activity on 1026200 anyway

Mar 19 2023, 11:20 PM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score
Jonathanischoice added a comment to T49578: Score should output SVG.

Surely we can just pull the official upstream binary tarball from GitLab, extract it somewhere, and point LocalSettings.php variables at it? No Debian package required.

Mar 19 2023, 10:13 PM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Mar 17 2023

Jonathanischoice added a comment to T49578: Score should output SVG.

You'll have to forgive my total lack of knowledge of Wikipedia internals and toolchains since I'm not an employee, I'm just a Wikipedia editor with an overinflated sense of enthusiasm and can code in PHP, so I offered to help with the Score extension. I'm not sure I'd be much use for most of that?

Mar 17 2023, 9:49 PM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score
Jonathanischoice added a comment to T257652: Add support for AVIF: serve AVIF thumbnails where possible.

As it turned out, GIMP added AVIF support to version 2.10.22 in September 2020, see #2668.

Mar 17 2023, 9:30 PM · Thumbor, Commons, MediaWiki-File-management

Mar 16 2023

Jonathanischoice added a comment to T5593: [Epic] SVG client side rendering.

I've already done that. How do we get the new version of the Score extension deployed out to Wikipedia so we can enjoy our new SVG output?

Mar 16 2023, 9:36 AM · Community-Wishlist-Survey-2023, Epic, Wikimedia-SVG-rendering, Commons, Multimedia, Accessibility, MediaWiki-File-management
Jonathanischoice added a comment to T5593: [Epic] SVG client side rendering.

This ticket was opened in 2005, nearly twenty years ago. I would like to see T49578 Score SVG output on Wikipedia, hopefully some time before the sun runs out of hydrogen and engulfs our planet in a fiery apocalypse. What can I do to help?

Mar 16 2023, 7:51 AM · Community-Wishlist-Survey-2023, Epic, Wikimedia-SVG-rendering, Commons, Multimedia, Accessibility, MediaWiki-File-management

Mar 5 2023

Jonathanischoice added a comment to T259210: LilyPond safe mode escape due to output-def-lookup and output-def-scope (CVE-2020-17354).

I can reproduce this now... sorry about the noise :)

Mar 5 2023, 11:16 PM · SecTeam-Processed, MediaWiki-extensions-Score, Security, Security-Team

Mar 2 2023

Jonathanischoice added a comment to T134455: Add experimental option for direct SVG output via srcset.

That's all well and good, in that case, how are we to advance T5593 which has been languishing since 2005? That's nearly twenty years. I would like to see SVG Score output hopefully some time before the sun runs out of hydrogen and engulfs our planet in a fiery apocalypse.

Mar 2 2023, 9:53 PM · Patch-Needs-Improvement, MediaWiki-File-management, Commons, Wikimedia-SVG-rendering, Multimedia
Jonathanischoice added a comment to T134455: Add experimental option for direct SVG output via srcset.

@TheDJ - regarding Score SVG output, T49578 has been merged, but is still open. Not sure what happens now, but this would be a good test for using img srcset, since that's what we implemented in Score.

Mar 2 2023, 9:36 AM · Patch-Needs-Improvement, MediaWiki-File-management, Commons, Wikimedia-SVG-rendering, Multimedia
Jonathanischoice added a comment to T49578: Score should output SVG.

This was merged over 2 months ago, what happens next? I'd like to get T134455 advanced so we can get on with SVG Score output somehow.

Mar 2 2023, 9:33 AM · Wikimedia-Site-requests, Upstream, Wikimedia-SVG-rendering, MediaWiki-extensions-Score

Feb 3 2023

Jonathanischoice added a comment to T134407: Provide a way to reference fonts for client-side SVG rendering.

+1 for @Glrx's answer to close; if you want exact PDF-like font rendering, convert it to curves and use parallel hidden text elements if you need the SVG to be indexed in full-text search data. If you want exact rendering and have big walls of text, perhaps you want a PDF file...?

Feb 3 2023, 4:42 AM · Commons, Multimedia, Wikimedia-SVG-rendering, MediaWiki-File-management
Jonathanischoice added a comment to T134410: Evaluate SVG rendering compatibility in browsers.

Shall we close this, then?

Feb 3 2023, 4:36 AM · Commons, Multimedia, MediaWiki-File-management, Wikimedia-SVG-rendering

Jan 21 2023

Jonathanischoice added a comment to T259210: LilyPond safe mode escape due to output-def-lookup and output-def-scope (CVE-2020-17354).

Don't ask me, I didn't write these PoCs, and I don't know much about Lilypond's use of Scheme, or anything at all about Scheme. I'm just trying to get some PHP code to render music using LilyPond. So does that mean I should see spurious id output in logging?

Jan 21 2023, 11:07 AM · SecTeam-Processed, MediaWiki-extensions-Score, Security, Security-Team