[reportlab-users] Suggested patch for "missing" SVG colours

Paul Barrass paul.barrass at safeonlinebilling.com
Thu Jan 29 11:10:55 EST 2009


The discussion of SVG output reminded me to mention the (somewhat
unrelated) "missing" SVG colour constants in the libs/colors.py file
(I'll not mention the missing 'u' in the filename ;) ). The named
colours match the SVG keywords with the exception of the duplicated
UK/American spellings of the various greys - grey/gray are both present,
but the other varieties such as lightgrey only exist in a single form,
and unfortunately it's not entirely consistent which form is used.

I've attached a patch against the latest SVN trunk which adds the
"missing" greys - it's simply the following lines in the appropriate
(maintaining alphabetical order) places:

darkgrey = HexColor(0xA9A9A9)
darkslategrey = HexColor(0x2F4F4F)
dimgrey = HexColor(0x696969)
lightgray = HexColor(0xD3D3D3)
lightslategrey = HexColor(0x778899)
slategrey = HexColor(0x708090)

It's not massively critical, but would help confusion when I tell people
they can use the "standard SVG" colours, then some of them not be

Paul Barrass.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SVG-greys.patch
Url: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20090129/e7276f13/attachment.ksh>

More information about the reportlab-users mailing list