Repository navigation
Retire the Sciweavers renderer, keep its de-renderer - #72
Merged
Merged
Conversation
sciweavers.org retired tex2img.php, the GET image endpoint all four Sciweavers renderer entries are built on. The site itself is up and its Tex2Img editor still renders, which is why the 404 read like a blip: verified 2026-09-18 that tex2img.php returns the site's own 404 page over http and https, on www and the apex domain, in both parameter orders, with and without a session cookie and Referer, under curl/Chrome/Googlebot user agents, and in real Chrome. The site's working path is now a POST to /process_form_tex2img returning a one-off /upload/Tex2Img_<id>/render.png whose id changes per submit and carries none of the LaTeX, so it cannot satisfy the contract that an equation's image URL is de-renderable back into source. Rendering therefore skips the retired families, which removes three guaranteed-failing renderer attempts (two fetches and a sleep each) from every equation that gets past Codecogs and Texrendr, and removes a sidebar option that failed 100% of the time. A saved "sciweavers" preference migrates to Automatic instead of failing every equation. Sciweavers stays in getRenderer and within capableDerenderers so equations rendered before the shutdown keep de-rendering; tests/retired-renderers.test.js pins both halves so neither can be undone by checking that the homepage loads. The live probe now reports 40 server settings, 8 distinct requests, 0 unavailable (was 12 requests, 4 failing). Evidence in tests/evidence/sciweavers-retired/. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sciweavers is retired as a renderer and kept as a de-renderer. The 404 the PR #71 probe reported is permanent, and it is not the same thing as the site being down.
Human intent
Rephrased from the request: PR #71's live probe reported "Sciweavers HTTP 404", but sciweavers.org clearly still loads — go find out what is actually broken and fix it, rather than leaving a renderer that reports a failure.
What was actually checked
Both things are true: the site is up, and the endpoint AutoLatex uses is gone.
Every Sciweavers entry in
Common.getRendereris built ontex2img.php, a GET URL that returns the image directly. That file now returns the site's own 404 page. Checked 2026-09-18:https://www.sciweavers.org/tex2img.php?bc=…&eq=…(our URL)…?eq=…&bc=…(the order sciweavers' own editor emits)http://(301s tohttps://), apexsciweavers.orgRefererfrom the editor page/tex2img.phpwith no query string at allMeanwhile
https://www.sciweavers.org/free-online-latex-equation-editorreturns 200 and its Tex2Img editor still renders. Its working path is now a POST to/process_form_tex2imgthat writes a one-off image to/upload/Tex2Img_<id>/render.png. Two identical submits 3 seconds apart returnedTex2Img_1789770006andTex2Img_1789770009— the id is per-request and carries none of the LaTeX. AutoLatex de-renders by reading the source back out of the image URL, so that URL shape cannot replacetex2img.phpeven though it produces a correct image. There is no working GET endpoint to point at.Their editor still hands out a
tex2img.phplink as the embed URL after a successful render. That link 404s too, which is probably why this went unnoticed on their end.What changed
Common.retiredRendererFamilieslistsSciweaversandSciweavers_old, andgetRendererOrderskips them. The render order goes from[1,2,3,4,5,6,7,8]to[1,2,3,4,6], dropping three guaranteed-failing renderer attempts — two fetches and a 50 ms sleep each — from every equation that gets past Codecogs and Texrendr.sciweaverspreference migrates to Automatic innormalizeRendererPreference(sosavePrefswrites the dead value away on the next render) and in eachSidebar.ts, alongside the existing Codecogs mapping — otherwise the selector renders blank and posts a dead choice back.getRendererand withincapableDerenderers, so equations rendered before the shutdown still round-trip.Validation
npm test: 133 passing, up from 128. The newtests/retired-renderers.test.jspins both halves — reverting the render-order filter fails 3 of its 5 tests, while the de-render and sidebar tests stay green, which is the point.npm run test:render-browser: 40 browser settings, 256 real PNG renders, pass.npm run test:render-services: 40 server settings, 8 distinct live requests, 0 unavailable, exit 0. Onmasterthe same probe made 12 requests and 4 failed. Codecogs and Texrendr are unchanged; the four dead requests are simply no longer made.Two hard-coded values that would have silently absorbed this were derived instead: the matrix test's
cases.length(100 → 80) and the live probe's gallery row list, which would have crashed on a renderer that no longer has results.Full write-up and the probe's
results.json: tests/evidence/sciweavers-retired.tests/README.mdand PR #71's evidence README now point at it instead of leaving the 404 reading as a transient outage.Release status
Code only — no Apps Script push, no version, no Marketplace change. Docs remains v95 and Slides v15.
🤖 Generated with Claude Code