Page MenuHomePhabricator

Internal links should highlight pages included in the PDF
Open, Needs TriagePublic

Description

Originally (confusingly) filed at http://web.archive.org/web/20111004141732/http://code.pediapress.com/wiki/ticket/824

An internal link referring to an article not in the collection for output to a PDF produces a link to the wiki article. The problem is that the PDF document reader does not always have access to the wiki. For such cases it should be possible to set an option that changes these references simply to the article names as such, e.g. using italic.


Currently, I don't see anything like that and I don't understand what's the expected behaviour.

  • In attachment 16584 (a collection) all internal links are stripped, i.e. all is black, even though they link to pages included in the collection.
  • In attachment 16586 (a single page) internal links are in brick-red.

Whatever system is chosen should be consistent

  • for all kinds of PDF export,
  • for all content namespaces (without preferences for namespace 0).

This bug is only about aspect and is independent from whether the links "internal to the PDF" are actually clickable/form a TOC, see bug 60293 for that.


Version: unspecified
Severity: enhancement
See Also:
T62293: Add bookmarks to PDF files indicating the starting point of each chapter

Details

Reference
bz71316

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:57 AM
bzimport added a project: OCG-PDF-renderer.
bzimport set Reference to bz71316.
bzimport added a subscriber: Unknown Object (MLST).
Nemo_bis created this task.Sep 25 2014, 5:14 PM

Please don't move bugs to the OCG component if they involve mwlib output, at least not without updating them to indicate issues with OCG output.

Yes, sorry, wrong PDF: attachment 16589 is the correct one to compare.

For instance at p. 3, the link a) "Golfo del Tigullio Moscato" is of the same colour and everything as b) "vino moscato DOC", but (a) is a page included in the PDF while (b) is not. There should be some difference.

Restricted Application added a project: Internet-Archive. · View Herald TranscriptDec 10 2015, 11:00 PM
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald Transcript

As already announced in Tech News, OfflineContentGenerator (OCG) will not be used anymore after October 1st, 2017 on Wikimedia sites. OCG will be replaced by Electron. You can read more on mediawiki.org.