diff options
Diffstat (limited to 'zarb-ml/mageia-dev/2012-October/019580.html')
-rw-r--r-- | zarb-ml/mageia-dev/2012-October/019580.html | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-October/019580.html b/zarb-ml/mageia-dev/2012-October/019580.html new file mode 100644 index 000000000..6cfb7de61 --- /dev/null +++ b/zarb-ml/mageia-dev/2012-October/019580.html @@ -0,0 +1,130 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-dev] Small project for a Python programmer + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Small%20project%20for%20a%20Python%20programmer&In-Reply-To=%3C508D9430.8040602%40zen.co.uk%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="019579.html"> + <LINK REL="Next" HREF="019581.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-dev] Small project for a Python programmer</H1> + <B>Barry Jackson</B> + <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Small%20project%20for%20a%20Python%20programmer&In-Reply-To=%3C508D9430.8040602%40zen.co.uk%3E" + TITLE="[Mageia-dev] Small project for a Python programmer">zen25000 at zen.co.uk + </A><BR> + <I>Sun Oct 28 21:23:12 CET 2012</I> + <P><UL> + <LI>Previous message: <A HREF="019579.html">[Mageia-dev] Mageia versus Mageia. +</A></li> + <LI>Next message: <A HREF="019581.html">[Mageia-dev] ANN: Persistent journal logs now enabled. +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#19580">[ date ]</a> + <a href="thread.html#19580">[ thread ]</a> + <a href="subject.html#19580">[ subject ]</a> + <a href="author.html#19580">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>OK here's the challenge. + +When we view rpm specs in svn using viewvc like this :- + +<A HREF="http://svnweb.mageia.org/packages/cauldron/acidrip/current/SPECS/acidrip.spec?view=markup">http://svnweb.mageia.org/packages/cauldron/acidrip/current/SPECS/acidrip.spec?view=markup</A> + +...the highlighting is incorrect, because viewvc uses pygments to +generate the language highlighting and it sadly has no lexer for rpm +spec files. + +In many cases the highlighting is totally wrong like this:- + +<A HREF="http://svnweb.mageia.org/packages/cauldron/abiword/current/SPECS/abiword.spec?revision=304568&view=markup">http://svnweb.mageia.org/packages/cauldron/abiword/current/SPECS/abiword.spec?revision=304568&view=markup</A> + +...as viewvc makes an incorrect assumption about the lexer needed, based +on a parse of the first line. It's horrible. + +What is needed is a lexer for rpm spec files. + +This would not be too difficult for an experienced Python programmer as +the building blocks are all in place within pygments :- + +<A HREF="http://pygments.org/docs/lexerdevelopment/">http://pygments.org/docs/lexerdevelopment/</A> + +If you view any spec file using the kate editor, you will see the style +of highlighting that is needed. + +Not only would this benefit Mageia, but all projects using rpm and viewvc. + +So that's the challenge - anyone up for it? :) + +</PRE> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="019579.html">[Mageia-dev] Mageia versus Mageia. +</A></li> + <LI>Next message: <A HREF="019581.html">[Mageia-dev] ANN: Persistent journal logs now enabled. +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#19580">[ date ]</a> + <a href="thread.html#19580">[ thread ]</a> + <a href="subject.html#19580">[ subject ]</a> + <a href="author.html#19580">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev +mailing list</a><br> +</body></html> |