Multiple dictionaries on the same extension.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Multiple dictionaries on the same extension.

massimeddu
Hi Lingucomponent Project,

I'm developing an extension for OOo 3 for Sardinian spell checker.
I would like put in the same extension 2 spell checker for the two writing
standards of sardinian (LSC and GSC). So, in the dictionaries.xcu I put this
lines:

[...]

<node oor:name="HunSpellDic_sc_gsc" oor:op="fuse">
  <prop oor:name="Locations" oor:type="oor:string-list">
    <value>%origin%/sc_gsc/sc-GSC.aff %origin%/sc_gsc/sc-GSC.dic</value>
  </prop>
  <prop oor:name="Format" oor:type="xs:string">
    <value>DICT_SPELL</value>
  </prop>
  <prop oor:name="Locales" oor:type="oor:string-list">
    <value>sc-GSC</value>
  </prop>
</node>
<node oor:name="HunSpellDic_sc_lsc" oor:op="fuse">
  <prop oor:name="Locations" oor:type="oor:string-list">
    <value>%origin%/sc_lsc/sc-LSC.aff %origin%/sc_lsc/sc-LSC.dic</value>
  </prop>
  <prop oor:name="Format" oor:type="xs:string">
    <value>DICT_SPELL</value>
  </prop>
  <prop oor:name="Locales" oor:type="oor:string-list">
    <value>sc-LSC</value>
  </prop>
</node>

[...]

So, the extension successfully install, but the two dictionaries are merged
(are correct at the same time the words generated by the first and the
second dictionary), but I would can choose between the two standards (as for
English (US) and English (UK) ).

How I can fix it?

Thanks,
Massimeddu.
Reply | Threaded
Open this post in threaded view
|

Re: Multiple dictionaries on the same extension.

thomas.lange

Hi

Massimeddu


> Hi Lingucomponent Project,
>
> I'm developing an extension for OOo 3 for Sardinian spell checker.
> I would like put in the same extension 2 spell checker for the two writing
> standards of sardinian (LSC and GSC). So, in the dictionaries.xcu I put this
> lines:
>
> [...]
>
> <node oor:name="HunSpellDic_sc_gsc" oor:op="fuse">
>   <prop oor:name="Locations" oor:type="oor:string-list">
>     <value>%origin%/sc_gsc/sc-GSC.aff %origin%/sc_gsc/sc-GSC.dic</value>
>   </prop>
>   <prop oor:name="Format" oor:type="xs:string">
>     <value>DICT_SPELL</value>
>   </prop>
>   <prop oor:name="Locales" oor:type="oor:string-list">
>     <value>sc-GSC</value>
>   </prop>
> </node>
> <node oor:name="HunSpellDic_sc_lsc" oor:op="fuse">
>   <prop oor:name="Locations" oor:type="oor:string-list">
>     <value>%origin%/sc_lsc/sc-LSC.aff %origin%/sc_lsc/sc-LSC.dic</value>
>   </prop>
>   <prop oor:name="Format" oor:type="xs:string">
>     <value>DICT_SPELL</value>
>   </prop>
>   <prop oor:name="Locales" oor:type="oor:string-list">
>     <value>sc-LSC</value>
>   </prop>
> </node>
>
> [...]
>
> So, the extension successfully install, but the two dictionaries are merged
> (are correct at the same time the words generated by the first and the
> second dictionary), but I would can choose between the two standards (as for
> English (US) and English (UK) ).
>
> How I can fix it?
>  

 From the lines above it looks correct and I do not see any reason for
it to fail.
Can you mail me the extension? I will then have a look at the rest of it.

Thomas



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Multiple dictionaries on the same extension.

Mathias Bauer
In reply to this post by massimeddu
massimeddu wrote:

> Hi Lingucomponent Project,
>
> I'm developing an extension for OOo 3 for Sardinian spell checker.
> I would like put in the same extension 2 spell checker for the two writing
> standards of sardinian (LSC and GSC). So, in the dictionaries.xcu I put this
> lines:
>
> [...]
>
> <node oor:name="HunSpellDic_sc_gsc" oor:op="fuse">
>   <prop oor:name="Locations" oor:type="oor:string-list">
>     <value>%origin%/sc_gsc/sc-GSC.aff %origin%/sc_gsc/sc-GSC.dic</value>
>   </prop>
>   <prop oor:name="Format" oor:type="xs:string">
>     <value>DICT_SPELL</value>
>   </prop>
>   <prop oor:name="Locales" oor:type="oor:string-list">
>     <value>sc-GSC</value>
>   </prop>
> </node>
> <node oor:name="HunSpellDic_sc_lsc" oor:op="fuse">
>   <prop oor:name="Locations" oor:type="oor:string-list">
>     <value>%origin%/sc_lsc/sc-LSC.aff %origin%/sc_lsc/sc-LSC.dic</value>
>   </prop>
>   <prop oor:name="Format" oor:type="xs:string">
>     <value>DICT_SPELL</value>
>   </prop>
>   <prop oor:name="Locales" oor:type="oor:string-list">
>     <value>sc-LSC</value>
>   </prop>
> </node>
>
> [...]
>
> So, the extension successfully install, but the two dictionaries are merged
> (are correct at the same time the words generated by the first and the
> second dictionary), but I would can choose between the two standards (as for
> English (US) and English (UK) ).
>
> How I can fix it?

Maybe the reason is that OOo only knows "sc-IT" and so some fallback
takes place.

Regards,
Mathias

--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[hidden email]".
I use it for the OOo lists and only rarely read other mails sent to it.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Multiple dictionaries on the same extension.

massimeddu