taskMapOSMatic - Tasks: task #11982, Automatically determining...

 
 

task #11982: Automatically determining available paper sizes

Submitter:  Jeroen van Rijn <jvrnix>
Submitted:  Wed 04 Apr 2012 11:17:50 AM UTC
   
 
Should Start On:  Wed 04 Apr 2012 12:00:00 AM UTC Should be Finished on:  Thu 04 Apr 2013 12:00:00 AM UTC
Category:  ocitysmap Priority:  * 3 - Low
Status:  None Privacy:  Public
Assigned to:  None Percent Complete:  0%
Open/Closed:  Open Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 04 Apr 2012 11:17:50 AM UTC, original submission:  

$ paperconf -c -s -p a4 # show size of a4 in centimetres
21 cm 29.7 cm

$ paperconf -m -s -p a4 # show size of a4 in millimetres
210 mm 297 mm

$ paperconf -s # show size of default paper (a4 in my case) in Postscript units (1/72th of an inch)
595.276 841.89

$ paperconf -a # list all paper sizes by name, quite a few

I imagine it wouldn't be hard to write a python class to encapsulate this knowledge. A dict keyed on paper name holding a tuple of dimenions, at its base. The configuration could then be simplified to listing minimum and maximum dimensions you want ocitysmap to tackle, on the basis of design/layout and runtime.

Indeed, if libpaper is installed on the system, this python class might even be built on the fly during a 'make install' pass and defer to a supplied version if libpaper is missing.

So if the ocitysmap configuration to do with paper sizes was limited to:
[paper-sizes-in-mm]
minWidth = 150
minHeight = 150
maxWidth = 4000
maxHeight = 4000

Then ocitysmap could be given a paper size to use which needn't be hardcoded.

Jeroen van Rijn <jvrnix>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jvrnix (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code