Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localized paper sizes



To follow up on this topic, a few of guidelines for PM developers ...

- When you generate your list of supported paper sizes, use Apple's
names for "standard" sizes. Apple follows the IPP specification for
paper names (ref. RFC 2566). They are defined in PMPrinterModule.h.
Using different names for the standard paper sizes creates
inconsistencies in the Page Setup dialog and can be confusing to users.

- For paper sizes not defined in PMPrinterModule.h, your PM is
responsible for providing localized names. We call these
"non-standard" paper sizes. We recommend you provide
Localizable.strings files for all the Mac OS X supported languages.
See <http://developer.apple.com/intl/> for more information about our
international technologies.

- As I mentioned in my previous email, do not customize the paper list
according to the current user's language setting. For non-standard
paper sizes, use the English names in your CreatePrinterTickets() code.
In our sample code, look at the hpCreatePMTemplate and AddPaperToList
functions for guidance.

- Why should you use the English paper names when you create your
JobTemplate? The reason is that our PageAttributes PDE takes care of
paper name localization when it builds the Paper Size menu. For this
to work, your PM bundle must contain translations for your non-standard
paper sizes in its Localizable.strings files.

- Last but not least, as of 10.2.4, the paper size popup is
hierarchical. The code to do this loops through your PaperInfo array
looking for other entries with the same paper rect but different page
rects. If there are multiple entries with the same paper rect, the
name of the first entry is used for the main Paper Size menu item. The
submenu is composed of the names of all the entries sharing the same
paper rect. That means you may need to change the order of your
PaperInfo array. For example, if you support A4, A4 banner, A4
borderless, you should make sure the A4 entry precedes the other two in
the array.

I hope this helps.

-Paul

BTW in my earlier email, I said the paper list was stored in the
PrinterInfo ticket. It's actually stored in the JobTemplate. Sorry.




On Wednesday, February 19, 2003, at 5:14 PM, Paul Danbold wrote:

Jim,

When you say "not showing up" do you mean they are not in the Paper
Size popup? If so, was the queue created automatically via makequeues,
or manually in Print Center? Remember that makequeues runs as root,
with root's language preference. That's why it is not a good idea for
a PM to customize it's list of paper sizes (in the PrinterInfo ticket)
according to the current language.

-Paul


On Wednesday, February 19, 2003, at 04:16 PM, Jim Leno wrote:

> Are localized paper sizes that a vendor adds to their PM supported on
> 10.2?
> They are showing up for me in 10.1.5, but not 10.2. Thanks.

_______________________________________________
printing mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/printing Do not post admin
requests to the list. They will be ignored.
_______________________________________________
printing mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/printing
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.