[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#703188: Offer to sponsor ruby-pygments.rb



On Mon, Mar 24, 2014 at 4:46 PM, Dominique Dumont <dod@debian.org> wrote:
> On Monday 03 March 2014 23:17:22 Per Andersson wrote:
>> There is also the issue of the custom lexer for github markup from
>> pygments in vendors, I can't see that this is resolved in current packaging.
>>
>> Since the idea is to use this for GitLab where ruby-github-markup will
>> use this custom lexer IIRC, this needs to go somewhere.
>
> For the record, newer version of jekyll also require ruby-pygments.rb. And
> gitlab is not required for jekyll.

Ok.


>> In the current
>> packaging, the bundled pygments is not used at all in favour for
>> python-pygments in Debian (debian/patches/0002-...).
>>
>> My intention was to push this custom lexer upstream.
>>
>>     https://github.com/tmm1/pygments.rb/pull/77
>>
>> Another way is of course to add this to the Debian pygments package (if
>> pygments upstream won't allow custom lexers as stated in the pull request).
>
> I guess that you meant adding gitlab stuff to python-pygments package, not
> ruby-pygments.rb...

Yes.


> Anyway, here's the status as I understand it:
> - gitlab custom lexer won't be merged in upstream ruby-pygments

It is in the upstream pygments.rb source tree.


> - gitlab custom lexer won't be merged in upstream python-pygments

This is how I have understood it.


> - python-pygment has some plugin mechanism (see
>   /usr/share/doc/python-pygments/plugins.html)

Nice find!


> Possible solutions:
> - create a package (upstream or debian) for gitlab custom lexer. In theory
>   python-pygment plugin can be used to load gitlab lexer in python-pygment.
(...)
> From a technical point of view (and for our user), the first solution is
> probably the best.
>
> But I don't have the skill and the time to implement it. Unless someone steps
> up, I'm going to implement the latter solution.

IIRC the github custom lexer is only one file right?

I can have a look at pygments plugin and talk with upstream also if they might
want to include the github markup lexer.


--
Per


> All the best
>
> --
>  https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
> http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org


Reply to: