Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Publicaciones sobre python (publicaciones antiguas, página 84)

Rst2pdf 0.93 released

A bit ahead of sche­du­le, I just uploaded ver­sion 0.93 of rs­t2­pdf a tool to con­vert res­truc­tu­red text in­to PDF fi­le­s.

He­re are so­me of the chan­ges in this ver­sio­n:

  • Fixed Is­­sue 447: Dou­­ble-­­si­­ded alwa­­ys sta­r­­ts on the ri­­ght (By Rob Lu­­dwi­­ck)

    • Re­­­mo­­­­­ved --­­­fi­r­s­­­t-­­­pa­­­ge-e­­­ven as it was not us­ed an­­­ywhe­­­re.

    • Added --­­­fi­r­s­­­t-­­­pa­­­ge-o­­­n-­­­ri­­­ght

  • Fixed Is­­sue 464: su­­pport ali­g­n­­ment via :cla­ss: in ima­­ge di­­re­c­­ti­­ve­s.

  • Fixed Is­­sue 482: Li­­ne blo­­­cks wi­­th in­­den­ted pa­r­­ts get ex­­tra­­neous spa­­cing

  • Fixed Is­­sue 470: Su­­pport for :ta­r­­ge­­t: in fi­­gu­­res.

  • New sty­­le "i­­ma­­ge" to be applied to ima­­ge di­­re­c­­ti­­ve­s.

  • Fixed Is­­sue 485: Be­­­tter sty­­ling su­­pport for fi­­gu­­res/i­­ma­­ges (s­­pa­­ce­­Be­­­fo­­­re/A­­fte­­r)

  • Su­­pport rs­­t2­­pdf [inf [ou­­tf]] syn­­tax to be mo­­­re co­m­­pa­­ti­­ble wi­­th rs­­t2*

  • Im­­ple­­men­ted Is­­sue 389: New --s­­tri­­p-e­­le­­men­­t-wi­­th-­­cla­ss op­­tion

  • Fixed Is­­sue 474: Ce­­ll­S­­ty­­le1 is not the­­re in re­­po­r­­tlab 2.6

  • Re­­mo­­­ved de­­fault pa­­dding from De­­la­­ye­­dTa­­ble, whi­­ch looked bad on hea­­de­r­s/­­foote­r­s.

  • Im­­pro­­­ve­­men­­ts to the ma­­th di­­re­c­­ti­­ve (font co­­­lor and si­­ze)

  • Be­­­tter su­­pport for sty­­ling li­­te­­ra­l­s.

  • Fixed Is­­sue 454 (S­­pli­­tting fai­­lu­­re)

  • Re­­gress­ed Is­­sue 374 (so­­­me li­­te­­ral blo­­­cks get overspli­­t)

  • Swi­­tched from sv­­glib to sv­­g2rlg

  • Re­­mo­­­ved uni­­co­n­­ve­r­­tor su­­pport

  • Fixed Is­­sue 477: Si­nk footno­­­te se­­pa­­ra­­tor (pa­­tch by ase­r­­ma­­x)

  • Fixed Is­­sue 473: Su­­pport "co­­­de" di­­re­c­­ti­­ve like an alias of co­­­de-­­blo­­­ck.

  • Fixed Is­­sue 472: Im­­ple­­men­ted MyI­­ma­­ge._un­­Res­­tri­c­­tSi­­ze

  • Fixed Is­­sue 471: Res­­pect cla­ss in li­­ne­­blo­­­cks.

  • Fixed Is­­sue 455: New pi­s­a/­­xh­t­­m­­l2­­pdf has ve­­ry di­­ffe­­rent im­­po­r­­ts

  • Ma­­rked Is­­sue 358 as fixe­­d.

  • Fixed Is­­sue 410: alwa­­ys in­­clu­­de fu­­ll li­­nes in co­­­de-­­blo­­­cks (m­­mue­­ller pa­­tch)

Nikola is Python 2 1/2 ready

On my free ti­me, lun­ch hour­s, and su­ch I ha­ve been tweaking Niko­la, my sta­tic si­te ge­ne­ra­tor to make it py­thon 3 friend­l­y. We­ll, I so­mewha­t-ac­ci­den­ta­ll­y-­m­y-­do­g-­ma­de-­me-­do­-it may ha­ve co­m­mi­tted a lot of that in­to mas­te­r.

So, ri­ght no­w, things may be so­mewhat bro­ken on py­tho­n2 and so­mewhat wo­rking a li­ttle on py­tho­n3.

In any ca­se, feel free to try it ou­t, and let me know what to fix.

Rst2pdf progress

I ha­ve set for myself a prio­ri­ty list of bugs that bo­ther me in rs­t2­pdf, my tool to con­vert res­truc­tu­red text in­to PDFs in or­der of de­crea­sing sha­me­ful­ness.

I ha­ve been fi­xing a few to­day (ear­ly mor­ning + la­te ni­ght ha­ck) so the fo­llo­wing is now co­rrec­t:

  • Use of in­­clu­­ded sty­­le­s­hee­­ts

  • Ve­r­­ti­­cal spa­­cing of in­­den­ted li­­ne­­blo­­­cks

  • Use of :ta­r­­ge­­t: in fi­­gu­­re di­­re­c­­ti­­ves

The­re are 46 open is­sues but I am not plan­ning on fi­xing them all. My per­so­nal hi­tlist has 10 mo­re bugs in it, but re­gard­le­ss of how many I fix, I in­tend to re­lea­se an­ywa­y, be­cau­se:

  • Last re­­lea­­se is bro­­ken wi­­th la­­test re­­po­r­­tlab

  • Last re­­lea­­se is a bit bro­­ken wi­­th do­­­cu­­tils 0.10 whi­­ch wi­­ll be out soon

  • Last re­­lea­­se was over six mo­n­­ths ago

And that last one is the cri­ti­cal one. Wo­rking at Ca­no­ni­cal has sho­wn me that re­lea­se ca­den­ce is good. Spe­cia­lly in a pro­ject whe­re trunk is ve­ry ra­re­ly bro­ken (like rs­t2­pdf) the­re is no rea­son for slow re­lea­se cy­cle­s. Rs­t2­pdf should re­lea­se mon­th­l­y.

I fu­lly in­tend to take that appro­ach, so the next re­lea­se wi­ll be do­ne on De­cem­ber 21s­t.

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

Spa­nish post be­cau­se it's about a vi­deo in spa­nis­h. Fe­ll free to wa­tch it an­ywa­y, of cour­se ;-)


Gra­cias a los or­ga­ni­za­do­res de Py­Con Ar­gen­ti­na 2012, ya es­tá dis­po­ni­ble el vi­deo de mi char­la "¡­P­y­thon 2 de­be mo­ri­r!".

Si quie­ren ir si­guien­do los sli­des, es­tán acá

Y acá es­tá el vi­deo:

No es­toy su­per fe­liz con mi char­la, me veo con­fu­so, con pro­ble­mas de ma­ne­jo de tiem­po, y muy pe­la­do. Vean los vi­deos de las otras char­la­s, que es­tán muy bue­no­s! :-)

Rst2PDF Release Plans

I ha­ve spent a li­ttle ti­me on rs­t2­pdf the­se last few da­ys. It does­n't look too ba­d, con­si­de­ring the long ne­glec­t, but the­re is so­me breaka­ge.

After going over al­most 300 in­te­gra­tion tes­ts by han­d, I iden­ti­fied a few re­gres­sions (and a cou­ple of bugs that fixed the­msel­ve­s, ya­y).

So, in or­der to do a re­lea­se, I am ho­ping to fix the­s­e:

I pro­ba­bly wi­ll not fix them all, and trunk wo­rks mu­ch be­tter for many ca­ses than 0.92 so I should not blo­ck a re­lea­se on any of the­s­e, rea­ll­y. I wi­ll gi­ve myself a cou­ple of weeks to see how many (if an­y) I can get do­ne.

On the other han­d, if an­yo­ne rea­ding this feels ad­ven­tu­rous, and wan­ts to lend a han­d, help is alwa­ys wel­co­me.

In the meanti­me, this is a list of wha­t's chan­ged in trunk from ver­sion 0.92:

  • Su­­pport rs­­t2­­pdf [inf [ou­­tf]] syn­­tax to be mo­­­re co­m­­pa­­ti­­ble wi­­th rs­­t2*

  • Im­­ple­­men­ted Is­­sue 389: New --s­­tri­­p-e­­le­­men­­t-wi­­th-­­cla­ss op­­tion

  • Fixed Is­­sue 474: Ce­­ll­S­­ty­­le1 is not the­­re in re­­po­r­­tlab 2.6

  • Re­­mo­­­ved de­­fault pa­­dding from De­­la­­ye­­dTa­­ble, whi­­ch looked bad on hea­­de­r­s/­­foote­r­s.

  • Im­­pro­­­ve­­men­­ts to the ma­­th di­­re­c­­ti­­ve (font co­­­lor and si­­ze)

  • Be­­­tter su­­pport for sty­­ling li­­te­­ra­l­s.

  • Fixed Is­­sue 454 (S­­pli­­tting fai­­lu­­re)

  • Swi­­tched from sv­­glib to sv­­g2rlg

  • Re­­mo­­­ved uni­­co­n­­ve­r­­tor su­­pport

  • Fixed Is­­sue 477: Si­nk footno­­­te se­­pa­­ra­­tor (pa­­tch by ase­r­­ma­­x)

  • Fixed Is­­sue 473: Su­­pport "co­­­de" di­­re­c­­ti­­ve like an alias of co­­­de-­­blo­­­ck.

  • Fixed Is­­sue 472: Im­­ple­­men­ted MyI­­ma­­ge._un­­Res­­tri­c­­tSi­­ze

  • Fixed Is­­sue 471: Res­­pect cla­ss in li­­ne­­blo­­­cks.

  • Fixed Is­­sue 455: New pi­s­a/­­xh­t­­m­­l2­­pdf has ve­­ry di­­ffe­­rent im­­po­r­­ts

  • Ma­­rked Is­­sue 358 as fixed (Li­­te­­ral blo­­­cks ren­­de­­red wi­­th la­r­­ge bo­­­ttom ma­r­­gi­n)

  • Fixed Is­­sue 410: alwa­­ys in­­clu­­de fu­­ll li­­nes in co­­­de-­­blo­­­cks (m­­mue­­ller pa­­tch)


Contents © 2000-2023 Roberto Alsina