Permalink
Browse files

unicode replacement for sharp and flat

  • Loading branch information...
1 parent b42f045 commit fc14539f0862ecb6ad70ee2e37b4475ed6262ae1 @acspike committed May 10, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 example_5_reportlab.py
View
@@ -40,10 +40,17 @@
#mode Patterns
from segovia_scales import scales
+sharp = u"\u266F"
+flat = u"\u266D"
doc = SimpleDocTemplate("segovia_scales.pdf", bottomMargin = 0.25*inch, topMargin = 0.75*inch)
story = []
+count = 0
for title,patterns in scales:
+ title = title.replace("#",sharp).replace("b",flat)
+ if count > 0 and count % 2 == 0:
+ story.append(PageBreak())
+ count += 1
story.append(Paragraph(title,styleT))
for kind,notes in patterns:
story.append(FBFlowable(fb7,notes, label=kind))

0 comments on commit fc14539

Please sign in to comment.