Hello IPS experts.
I have questions about IPS, but first let me explain why I am asking 
those questions.

I am working on proposal of a new interface which provides information 
about G11n (Globalization) elements, e.g. languages and locales. 
Including information about packaging of those elements, in order to be 
able to install/remove them in OpenSolaris.

Consumer of the interface is for example Package manager. It will get 
list of available languages/locales from the interface. Later on, when 
user decides to install additional languages, the interface will provide 
IPS filter (or list of packages) which installs selected languages and 
locales on the system.
Here is example of a filter, which installs localization for French 
Canadian locale (fr_CA):

   language=fr
   territory=CA
   encoding=UTF-8 | encoding=ISO8859-1 | encoding=ISO8859-15
   message=true

Implementation of the interface will define/store G11n-related data at 
IPS as attributes and tags. The interface will be querying that data 
from IPS image and network repository.
Here is example of data I plan to store at IPS (SUNWlang-fr package):

   Package attributes:
     set name=language value=fr
     set name=encoding value=UTF-8
     depend fmri=pkg:/SUNWlang-common type=require

   File tags (ULL=usr/lib/locale):
     PATH                        LANGUAGE TERRITORY ENCODING MESSAGE
     $ULL/fr.UTF-8/LC_MESSAGES         fr             UTF-8   true
     $ULL/fr.UTF-8/LC_MESSAGES/*.mo    fr             UTF-8   true
     $ULL/fr_FR.UTF-8/fr_FR.UTF-8.so.3 fr    FR       UTF-8
     $ULL/fr_CA.UTF-8/fr_CA.UTF-8.so.3 fr    CA       UTF-8

See more details and examples in attached document.


Now my questions come. Can you please do me a favor and help me answer them?

1) Does IPS currently (or will in 2008.11) support custom tags, 
attributes, and filters from examples described above?
Also, will interface consumers be able to use IPS filters for 
packages/files installation and removal?

2) Is there (Python) IPS interface, which I can call to retrieve the 
custom package attributes and file tags?

3) Where can I define and modify custom attributes & tags for our (G11n) 
packages, which were delivered to pkg.opensolaris.org and LiveCD?


I also welcome any comments on design of the proposed interface. You may 
see a way how to make it simpler, more efficient, etc.
For example, I am not sure if using Image and Repository Python objects 
as input, and Filter object as output of the interface is the best thing 
to do.

Thank you,
Jan

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: design.txt
URL: 
<http://mail.opensolaris.org/pipermail/i18n-discuss/attachments/20080814/01f4d480/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: high-level.png
Type: image/png
Size: 32294 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/i18n-discuss/attachments/20080814/01f4d480/attachment.png>

Reply via email to