Skip to main content

Ralsina.Me — Roberto Alsina's website

Posts about python (old posts, page 84)

Rst2pdf 0.93 released

A bit ahead of sched­ule, I just up­load­ed ver­sion 0.93 of rst2pdf a tool to con­vert re­struc­tured text in­to PDF files.

Here are some of the changes in this ver­sion:

  • Fixed Is­­sue 447: Dou­ble-sid­ed al­ways starts on the right (By Rob Lud­wick)

    • Re­­­moved --­­­first-­­­page-even as it was not used any­where.

    • Added --­­­first-­­­page-on-right

  • Fixed Is­­sue 464: sup­­port align­­ment via :class: in im­age di­rec­­tives.

  • Fixed Is­­sue 482: Line blocks with in­­­den­t­ed parts get ex­­tra­ne­ous spac­ing

  • Fixed Is­­sue 470: Sup­­port for :tar­get: in fig­ures.

  • New style "im­age" to be ap­­plied to im­age di­rec­­tives.

  • Fixed Is­­sue 485: Bet­ter styling sup­­port for fig­ures/im­ages (s­­pace­Be­­fore/After)

  • Sup­­port rst2pdf [inf [out­f]] syn­­tax to be more com­­pat­i­ble with rst2*

  • Im­­ple­­men­t­ed Is­­sue 389: New --strip-ele­­men­t-with­­-­­class op­­tion

  • Fixed Is­­sue 474: Cel­l­Style1 is not there in re­­port­lab 2.6

  • Re­­moved de­­fault pad­d­ing from De­layedTable, which looked bad on head­­er­s/­­foot­er­s.

  • Im­prove­­ments to the math di­rec­­tive (font col­or and size)

  • Bet­ter sup­­port for styling lit­er­al­s.

  • Fixed Is­­sue 454 (S­­plit­t­ing fail­ure)

  • Re­­gressed Is­­sue 374 (some lit­er­al blocks get over­s­plit)

  • Switched from svglib to svg2rlg

  • Re­­moved uni­­con­ver­­tor sup­­port

  • Fixed Is­­sue 477: Sink foot­note sep­a­ra­­tor (patch by aser­­max)

  • Fixed Is­­sue 473: Sup­­port "code" di­rec­­tive like an alias of code-block.

  • Fixed Is­­sue 472: Im­­ple­­men­t­ed My­Im­age._un­Re­stric­t­­Size

  • Fixed Is­­sue 471: Re­spect class in lineblock­­s.

  • Fixed Is­­sue 455: New pisa/x­ht­m­l2pdf has very dif­fer­­ent im­­ports

  • Marked Is­­sue 358 as fixed.

  • Fixed Is­­sue 410: al­ways in­­­clude full lines in code-blocks (m­­mueller patch)

Nikola is Python 2 1/2 ready

On my free time, lunch hours, and such I have been tweak­ing Niko­la, my stat­ic site gen­er­a­tor to make it python 3 friend­ly. Well, I some­what-ac­ci­den­tal­ly-my-­dog-­made-me-­do-it may have com­mit­ted a lot of that in­to mas­ter.

So, right now, things may be some­what bro­ken on python2 and some­what work­ing a lit­tle on python3.

In any case, feel free to try it out, and let me know what to fix.

Rst2pdf progress

I have set for my­self a pri­or­i­ty list of bugs that both­er me in rst2pdf, my tool to con­vert re­struc­tured text in­to PDFs in or­der of de­creas­ing shame­ful­ness.

I have been fix­ing a few to­day (ear­ly morn­ing + late night hack) so the fol­low­ing is now cor­rec­t:

  • Use of in­­­clud­ed stylesheets

  • Ver­ti­­cal spac­ing of in­­­den­t­ed lineblocks

  • Use of :tar­get: in fig­ure di­rec­­tives

There are 46 open is­sues but I am not plan­ning on fix­ing them al­l. My per­son­al hitlist has 10 more bugs in it, but re­gard­less of how many I fix, I in­tend to re­lease any­way, be­cause:

  • Last re­lease is bro­ken with lat­est re­­port­lab

  • Last re­lease is a bit bro­ken with do­cu­tils 0.10 which will be out soon

  • Last re­lease was over six months ago

And that last one is the crit­i­cal one. Work­ing at Canon­i­cal has shown me that re­lease ca­dence is good. Spe­cial­ly in a project where trunk is very rarely bro­ken (like rst2pdf) there is no rea­son for slow re­lease cy­cles. Rst2pdf should re­lease month­ly.

I ful­ly in­tend to take that ap­proach, so the next re­lease will be done on De­cem­ber 21st.

¡Python 2 Debe Morir! -- Charla en PyCon Argentina 2012

Span­ish post be­cause it's about a video in span­ish. Fell free to watch it any­way, of course ;-)


Gra­cias a los or­ga­ni­zadores de Py­Con Ar­genti­na 2012, ya es­tá disponible el video de mi char­la "¡Python 2 debe morir!".

Si quieren ir sigu­ien­do los slides, es­tán acá

Y acá es­tá el video:

No es­toy su­per fe­liz con mi char­la, me veo con­fu­so, con prob­le­mas de mane­jo de tiem­po, y muy pela­do. Vean los videos de las otras char­las, que es­tán muy buenos! :-)

Rst2PDF Release Plans

I have spent a lit­tle time on rst2pdf these last few days. It does­n't look too bad, con­sid­er­ing the long ne­glec­t, but there is some break­age.

Af­ter go­ing over al­most 300 in­te­gra­tion tests by hand, I iden­ti­fied a few re­gres­sions (and a cou­ple of bugs that fixed them­selves, yay).

So, in or­der to do a re­lease, I am hop­ing to fix the­se:

I prob­a­bly will not fix them al­l, and trunk works much bet­ter for many cas­es than 0.92 so I should not block a re­lease on any of the­se, re­al­ly. I will give my­self a cou­ple of weeks to see how many (if any) I can get done.

On the oth­er hand, if any­one read­ing this feels ad­ven­tur­ous, and wants to lend a hand, help is al­ways wel­come.

In the mean­time, this is a list of what's changed in trunk from ver­sion 0.92:

  • Sup­­port rst2pdf [inf [out­f]] syn­­tax to be more com­­pat­i­ble with rst2*

  • Im­­ple­­men­t­ed Is­­sue 389: New --strip-ele­­men­t-with­­-­­class op­­tion

  • Fixed Is­­sue 474: Cel­l­Style1 is not there in re­­port­lab 2.6

  • Re­­moved de­­fault pad­d­ing from De­layedTable, which looked bad on head­­er­s/­­foot­er­s.

  • Im­prove­­ments to the math di­rec­­tive (font col­or and size)

  • Bet­ter sup­­port for styling lit­er­al­s.

  • Fixed Is­­sue 454 (S­­plit­t­ing fail­ure)

  • Switched from svglib to svg2rlg

  • Re­­moved uni­­con­ver­­tor sup­­port

  • Fixed Is­­sue 477: Sink foot­note sep­a­ra­­tor (patch by aser­­max)

  • Fixed Is­­sue 473: Sup­­port "code" di­rec­­tive like an alias of code-block.

  • Fixed Is­­sue 472: Im­­ple­­men­t­ed My­Im­age._un­Re­stric­t­­Size

  • Fixed Is­­sue 471: Re­spect class in lineblock­­s.

  • Fixed Is­­sue 455: New pisa/x­ht­m­l2pdf has very dif­fer­­ent im­­ports

  • Marked Is­­sue 358 as fixed (L­it­er­al blocks ren­dered with large bot­­tom margin)

  • Fixed Is­­sue 410: al­ways in­­­clude full lines in code-blocks (m­­mueller patch)


Contents © 2000-2020 Roberto Alsina