Last modified: 2012-02-29 09:48:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31136, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29136 - Collection extension supports <source>, but not <syntaxhighlight>.
Collection extension supports <source>, but not <syntaxhighlight>.
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
PC Windows 7
: Normal normal (vote)
: ---
Assigned To: PediaPress Development Team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-25 13:58 UTC by kwelsh
Modified: 2012-02-29 09:48 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Example of ignored tag in PDFs (27.31 KB, image/png)
2011-05-25 13:58 UTC, kwelsh
Details

Description kwelsh 2011-05-25 13:58:27 UTC
Created attachment 8583 [details]
Example of ignored tag in PDFs

Would love to have it so if a PDF is generated, the syntax highlighting is shown in the document as it appears on the wiki page. Currently, the formatting isn't shown and the wiki tag can be seen (which is not very helpful).

Is there any way to have it so the highlighting works within a generated PDF? Would be very helpful if possible.
Comment 1 kwelsh 2011-05-25 14:18:51 UTC
The extension used to generate the PDF's can be found here (in case you need it):

http://www.mediawiki.org/wiki/Extension:Collection
Comment 2 Sam Reed (reedy) 2011-05-25 14:33:52 UTC
This probably should be moved under collection, unless the plugin is supposed to do something for the printable version, but doesn't.

Looking at http://en.wikipedia.org/w/index.php?title=User:Reedy/Test&printable=yes at the moment, it looks fine

I used <source></source> and it generated a PDF that looks fine..

http://en.wikipedia.org/w/index.php?title=Special:Book&bookcmd=download&collection_id=00598fd294bdb2b3&writer=rl&return_to=User%3AReedy%2FTest


It seems to be <syntaxhighlight></syntaxhighlight> isn't supported, but <source></source> is
Comment 3 Mark A. Hershberger 2011-05-25 17:37:45 UTC
link gives "Internal Server Error"
Comment 4 kwelsh 2011-05-25 17:40:46 UTC
Thank you for the feedback Reedy. Your quick response is appreciated.

It appears that you are right in that the <source> tag will work for PDFs, however the <syntaxhiglight> tag will not. I will try and use this tag instead and should I have anymore issues, I will open a bug for the collection extension.

I'll mark this as resolved.
Comment 5 Ran Ari-Gur (User:Ruakh on WMF projects) 2012-02-28 19:58:42 UTC
Reopening: I'm glad there's a workaround for this, but I think the extension nonetheless needs to be changed to support <syntaxhighlight>.
Comment 6 Volker Haas 2012-02-29 09:48:04 UTC
The syntaxhighlight tag will now be treated exactly like a source tag.

https://github.com/pediapress/mwlib/commit/571c2059cd8b9eb757740063e3d6cfd4a2b55580

Note that the wikipedia renderservers haven't been updated yet.

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


Navigation
Links