Bug 2463837 - Review Request: mediawiki2latex - Convert MediaWiki markup to LaTeX
Summary: Review Request: mediawiki2latex - Convert MediaWiki markup to LaTeX
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL: https://mediawiki2latex.wmcloud.org/
Whiteboard:
Depends On: 2463834 2463835
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-04-29 15:27 UTC by Benson Muite
Modified: 2026-10-26 13:05 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Benson Muite 2026-04-29 15:27:52 UTC
spec: https://fed500.fedorapeople.org/mediawiki2latex.spec
srpm: https://fed500.fedorapeople.org/mediawiki2latex-8.32-1.fc43.src.rpm

description:
MediaWiki To LaTeX converts MediaWiki markup to LaTeX and generates a PDF. So
it provides an export from MediaWiki to LaTeX. It works with any project
running MediaWiki, especially Wikipedia and Wikibooks.

fas: fed500

Reproducible: Always

Comment 1 Fedora Review Service 2026-04-29 15:30:15 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10406679
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2463837-mediawiki2latex/fedora-rawhide-x86_64/10406679-mediawiki2latex/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 2 Jens Petersen 2026-10-26 12:43:08 UTC
Okay thanks for preparing this.

I have a couple of questions/concerns:

- Have you tested that it (still) works?
  - Mainly ask since the number of sites that still accept http:// is quite limited these days.
- Also more trivially the current spec does not install:

a) Typo of texlive-collection-langportuguese
b) there is no texlive-collection-science or texlive-collection-langvietnamese
in rawhide or recent releases I think.

Of course the texlive dependency is heavy (6GB on disk) but that can't be helped or reduced perhaps?

The cabal-diff is also quite large: is it possible you can make it closer to cabal-rpm spec?
That would make it easier to maintain going forward.

Also are you sure it is actually using hxt-http?

----

I tried to run it on a couple of pages and wasn't very successful.

wikipedia.org seems not very happy: appeared to get stuff on "curl run"'s not sure if it actually uses curl??

For the Fedora Wiki I got an error about no "main.pdf" file at the end.

Anyway curious to hear your experience: though I am not completely sure yet if this is good enough to be worth including in Fedora,
but maybe you have had better success?  It also seems rather slow, though could be "bot throttling"? :shrug:

Comment 3 Jens Petersen 2026-10-26 12:46:59 UTC
(I see you have a copr repo also: https://copr.fedorainfracloud.org/coprs/fed500/wb2pdf/)

Comment 4 Jens Petersen 2026-10-26 12:53:27 UTC
(I guess the dependency on hxt-http was dropped for version 8.
Hence it uses http-client-tls I see, at least as a dep.
So that explains how it handles https:// I think.)

Comment 5 Jens Petersen 2026-10-26 13:05:54 UTC
Just to give an idea for example I tried:

$ mediawiki2latex --url https://fedoraproject.org/wiki/I18N -o main.pdf

and 

$ mediawiki2latex https://en.wikipedia.org/wiki/Main_Page -o test.pdf


Note You need to log in before you can comment on or make changes to this bug.