mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 19:42:17 +02:00
simplified bitknights dictionary support code
This commit is contained in:
parent
7757b0720a
commit
7f73bee6f1
2 changed files with 2 additions and 28 deletions
|
@ -3,131 +3,105 @@
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Brazilian/Portuguese English Dictionary"
|
title="BK Brazilian/Portuguese English Dictionary"
|
||||||
package="com.bitknights.dict.engbra"
|
package="com.bitknights.dict.engbra"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Bulgarian English Dictionary"
|
title="BK Bulgarian English Dictionary"
|
||||||
package="com.bitknights.dict.engbul"
|
package="com.bitknights.dict.engbul"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Croatian English Dictionary"
|
title="BK Croatian English Dictionary"
|
||||||
package="com.bitknights.dict.engcro"
|
package="com.bitknights.dict.engcro"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Czech English Dictionary"
|
title="BK Czech English Dictionary"
|
||||||
package="com.bitknights.dict.engcze"
|
package="com.bitknights.dict.engcze"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Danish English Dictionary"
|
title="BK Danish English Dictionary"
|
||||||
package="com.bitknights.dict.engdan"
|
package="com.bitknights.dict.engdan"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Dutch English Dictionary"
|
title="BK Dutch English Dictionary"
|
||||||
package="com.bitknights.dict.engdut"
|
package="com.bitknights.dict.engdut"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Esperanto English Dictionary"
|
title="BK Esperanto English Dictionary"
|
||||||
package="com.bitknights.dict.engesp"
|
package="com.bitknights.dict.engesp"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Finnish English Dictionary"
|
title="BK Finnish English Dictionary"
|
||||||
package="com.bitknights.dict.engfin"
|
package="com.bitknights.dict.engfin"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK French English Dictionary"
|
title="BK French English Dictionary"
|
||||||
package="com.bitknights.dict.engfre"
|
package="com.bitknights.dict.engfre"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK German English Dictionary"
|
title="BK German English Dictionary"
|
||||||
package="com.bitknights.dict.engger"
|
package="com.bitknights.dict.engger"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Greek English Dictionary"
|
title="BK Greek English Dictionary"
|
||||||
package="com.bitknights.dict.enggre"
|
package="com.bitknights.dict.enggre"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Hungarian English Dictionary"
|
title="BK Hungarian English Dictionary"
|
||||||
package="com.bitknights.dict.enghun"
|
package="com.bitknights.dict.enghun"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Italian English Dictionary"
|
title="BK Italian English Dictionary"
|
||||||
package="com.bitknights.dict.engita"
|
package="com.bitknights.dict.engita"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Latin English Dictionary"
|
title="BK Latin English Dictionary"
|
||||||
package="com.bitknights.dict.englat"
|
package="com.bitknights.dict.englat"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Polish English Dictionary"
|
title="BK Polish English Dictionary"
|
||||||
package="com.bitknights.dict.engpol"
|
package="com.bitknights.dict.engpol"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Romanian English Dictionary"
|
title="BK Romanian English Dictionary"
|
||||||
package="com.bitknights.dict.engrom"
|
package="com.bitknights.dict.engrom"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Russian English Dictionary"
|
title="BK Russian English Dictionary"
|
||||||
package="com.bitknights.dict.engrus"
|
package="com.bitknights.dict.engrus"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Slovak English Dictionary"
|
title="BK Slovak English Dictionary"
|
||||||
package="com.bitknights.dict.engslo"
|
package="com.bitknights.dict.engslo"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Spanish English Dictionary"
|
title="BK Spanish English Dictionary"
|
||||||
package="com.bitknights.dict.engspa"
|
package="com.bitknights.dict.engspa"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Swedish English Dictionary"
|
title="BK Swedish English Dictionary"
|
||||||
package="com.bitknights.dict.engswe"
|
package="com.bitknights.dict.engswe"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Turkish English Dictionary"
|
title="BK Turkish English Dictionary"
|
||||||
package="com.bitknights.dict.engtur"
|
package="com.bitknights.dict.engtur"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Ukraine English Dictionary"
|
title="BK Ukraine English Dictionary"
|
||||||
package="com.bitknights.dict.engukr"
|
package="com.bitknights.dict.engukr"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK French Italian Dictionary"
|
title="BK French Italian Dictionary"
|
||||||
package="com.bitknights.dict.freita"
|
package="com.bitknights.dict.freita"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK German Hungarian Dictionary"
|
title="BK German Hungarian Dictionary"
|
||||||
package="com.bitknights.dict.gerhun"
|
package="com.bitknights.dict.gerhun"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Spanish French Dictionary"
|
title="BK Spanish French Dictionary"
|
||||||
package="com.bitknights.dict.spafre"
|
package="com.bitknights.dict.spafre"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
<dictionary
|
<dictionary
|
||||||
title="BK Spanish Italian Dictionary"
|
title="BK Spanish Italian Dictionary"
|
||||||
package="com.bitknights.dict.spaita"
|
package="com.bitknights.dict.spaita"
|
||||||
pattern="%s"
|
|
||||||
/>
|
/>
|
||||||
</dictionaries>
|
</dictionaries>
|
||||||
|
|
|
@ -142,7 +142,7 @@ public abstract class DictionaryUtil {
|
||||||
attributes.getValue("title"),
|
attributes.getValue("title"),
|
||||||
Intent.ACTION_VIEW,
|
Intent.ACTION_VIEW,
|
||||||
null,
|
null,
|
||||||
attributes.getValue("pattern")
|
"%s"
|
||||||
);
|
);
|
||||||
if (PackageUtil.canBeStarted(mContext, getDictionaryIntent(info, "test"), false)) {
|
if (PackageUtil.canBeStarted(mContext, getDictionaryIntent(info, "test"), false)) {
|
||||||
ourInfos.put(info, FLAG_SHOW_AS_DICTIONARY | FLAG_INSTALLED_ONLY);
|
ourInfos.put(info, FLAG_SHOW_AS_DICTIONARY | FLAG_INSTALLED_ONLY);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue