summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-October/019580.html
blob: 6cfb7de6174ed88e024b436abf57e98f6b600930 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
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&amp;view=markup">http://svnweb.mageia.org/packages/cauldron/abiword/current/SPECS/abiword.spec?revision=304568&amp;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>