[reportlab-users] Micr font advice in reportlab
J. R. Carroll
jrc.csus at gmail.com
Wed May 29 12:44:01 EDT 2013
Sending this backup to the listserv as a response - removing the image as
it was 'too large'. My apologies if this gets double-posted.
On Wed, May 29, 2013 at 12:39 PM, J. R. Carroll <jrc.csus at gmail.com> wrote:
> Not sure, but if you are trying to get the 'funky P' shape you emailed
> about a few weeks back (as in the image I am attaching [EDIT] IMAGE
> REMOVED) - that's easy enough (but I'm assuming this is a different
> If you are trying to get a semi-colon, I don't believe E13-B as a standard
> has that (http://en.wikipedia.org/wiki/File:MICR.svg and its parent
> article http://en.wikipedia.org/wiki/Magnetic_ink_character_recognition).
> On inspection of the "demo" fonts available via the links you provided (as
> I would love to help *the Mr. Driscoll* of
> http://www.blog.pythonlibrary.org/, I can't afford the $$ to buy the
> legit font, no offense =P), they say they only omit 7. 8. and 9 with no
> mention of omitting a semi-colon. Furthermore, inspecting the
> character/glyph map of the demo fonts show that there is no mapping for
> semi-colon key-strokes to a comp micr/e13b glyph. If you are truly trying
> to get a semi-colon, my guess is that you'll have to switch fonts
> mid-string (or make your own glyph for the semi-colon - aka copy one over).
> If, for whatever reason you were trying to get the 'funky P' you mentioned
> in previous listserv questions, that symbol is mapped to the double-quote
> key (as the image I attached shows [EDIT] IMAGE REMOVED) - if this is an
> old/retired issue, then ignore this.
> J. R. Carroll
> Cell: (650) 776-6613
> Email: jrcarroll at jrcresearch.net
> jrcarroll at hurtzlab.com
> jrc.csus at gmail.com
> <https://www.facebook.com/J.R.Car> <https://twitter.com/jNammer><http://www.linkedin.com/in/jrcarroll>
> On Wed, May 29, 2013 at 11:11 AM, Henning von Bargen <H.vonBargen at t-p.com>wrote:
>> Mike Driscoll wrote:
>> > Hi,
>> > I posted about this issue a couple weeks ago and still haven't figured
>> it out,
>> > but I found some more information about the font. I am using a font
>> > MICRCheckPrixa. You can read about it here:
>> > http://www.micre13b.com/MICRCheckPrixa.pdf
>> > According to the spec, I should be able to use semi-colons to get one
>> of the
>> > funky MICR characters, however it seems to be getting eaten by
>> > somehow.
>> > Here's my code snippet:
>> > micr = '<font name="MICRCheckPrixa" style="regular" size=14>;%s; :%s:
>> > %s</font>'
>> > micr_line = micr % (self.check_data.check_number,
>> > self.check_data.bank_routing_number,
>> > self.check_data.bank_account_number)
>> > The colons turn into the correct character, but the semi-colons end up
>> > blank. I have attached a quick example code and its output. You can
>> see the
>> > colons have been transformed per the spec, but the semi-colons are
>> > There's a demo version of the font that has both the characters (I
>> think), so
>> > if anyone has any ideas or solutions, I'm all ears.
>> You are wrong, the semi-colon is there!
>> When I open your attached PDF file with Adobe Reader,
>> select the whole text and copy it into a text editor,
>> it is shown as
>> 123456; :1234567890: 1111111111
>> Note the semi-colon after 123456.
>> reportlab-users mailing list
>> reportlab-users at lists2.reportlab.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the reportlab-users