Subject | Re: [Firebird-Architect] INTL plugins |
---|---|
Author | Adriano dos Santos Fernandes |
Post date | 2005-01-02T03:37:23Z |
Jim Starkey wrote:
Plugins that implement charsets need to implement the collation with the same name.
There is a snippet of fbintl.conf:
<intl_module fbintl>
filename $(root)/intl/fbintl
</intl_module>
<charset NONE>
intl_module fbintl
collation NONE
</charset>
<charset OCTETS>
intl_module fbintl
collation OCTETS
</charset>
<charset WIN1252>
intl_module fbintl
collation WIN1252
collation PXW_INTL
collation PXW_INTL850
collation PXW_NORDAN4
collation PXW_SPAN
collation PXW_SWEDFIN
collation WIN_PTBR
</charset>
If someone implement a new collation for WIN1252 in another plugin it will be:
<charset WIN1252>
intl_module module
collation collation
</charset>
Jim, why not you allow wildcards in "include" in config files?
This make things easy: include $(root)/intl/*.conf
Adriano
>It seems that have a better way to handle the problem.
> That's certainly good enough for starters. If something you like better
> presents itself during development, go for it.
>
Plugins that implement charsets need to implement the collation with the same name.
There is a snippet of fbintl.conf:
<intl_module fbintl>
filename $(root)/intl/fbintl
</intl_module>
<charset NONE>
intl_module fbintl
collation NONE
</charset>
<charset OCTETS>
intl_module fbintl
collation OCTETS
</charset>
<charset WIN1252>
intl_module fbintl
collation WIN1252
collation PXW_INTL
collation PXW_INTL850
collation PXW_NORDAN4
collation PXW_SPAN
collation PXW_SWEDFIN
collation WIN_PTBR
</charset>
If someone implement a new collation for WIN1252 in another plugin it will be:
<charset WIN1252>
intl_module module
collation collation
</charset>
Jim, why not you allow wildcards in "include" in config files?
This make things easy: include $(root)/intl/*.conf
Adriano