Hi Volker,

I proceeded as you suggested.
I installed from mercurial the dev versions of mwlib, mwlib.ext, mwlib.rl

I removed the older non-dev versions, and managed to check that I used indeed the new versions.

Then I modified in the new version the line to become text_align=TA_JUSTIFY
This was done both in pdfstyles.py AND in customconfig.py.

Unfortunately, the margin justification is still left adjusted... It looks like this text_align var is unused of overwritten elsewhere...

Maybe this ?:

rlwriter.py:        elements = self.renderMixed(cell, text_style(in_table=self.tableNestingLevel, text_align=cell.attributes.get('align')))


Best regards,

Philippe




Volker Haas wrote:
Hi Philippe

pg wrote:
  
Hi Volker,

How do I get the new versions of mwlib and mwlib-rl ?
    
There is no new version of mwlib/mwlib.rl that you can get with 
easy_install. If you want the latest development version you need to use 
our mercurial repository. Basically you need to install mercurial (with 
e.g. aptitude) and then check out the development versions with
 * hg clone http://code.pediapress.com/hg/mwlib
 * python setup.py install

 From then on you can obtain the newest version with hg pull in the 
mwlib directory.
For more detailed instructions see 
http://code.pediapress.com/wiki/wiki/mwlib-install

After that you can install mwlib.ext and mwlib.rl in the same way
  
On ubuntu 8.10, the command "sudo easy_install mwlib.rl" does not 
upgrade : the version is still 0.9.1.
Should I patch some files ? Would you sent me the updated version of 
pdfstyles.py & mwlib.ext ? And where should mwlib.ext be placed ?

Best regards,

Philippe


Volker Haas wrote:
    
Hi Philippe

pg wrote:
  
      
Is there a place where I can define the default paragraph margin 
adjustment as *"justified" ?*
    
        
I added the following to pdfstyles.py (override in customconfig.py):

text_align = TA_LEFT # default alignment of text outside of tables 
TA_LEFT, TA_JUSTIFY, TA_RIGHT, TA_CENTER are valid
table_text_align = TA_LEFT # ... inside of tables

You also need to update mwlib.ext, because there was a problem with 
reportlab and justification that I patched.

Regards,
Volker


  
      
    

  


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "mwlib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/mwlib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to