Apertium has moved from SourceForge to GitHub.
If you have any questions, please come and talk to us on #apertium on irc.freenode.net or contact the GitHub migration team.

Difference between revisions of "Tinylex on a Palm"

From Apertium
Jump to navigation Jump to search
(An example of configuration file)
(GitHub migration)
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{TOCD}}
 
{{TOCD}}
   
'''Mobile dictionaries for Palm''' can be generated using the '''dix2tiny''' task in apertium-dixtools package.
+
'''Mobile dictionaries for Palm''' can be generated using the '''dix2tiny''' task in [[Apertium-dixtools|apertium-dixtools]] package.
   
 
[[Image:Palm-os-emulator.png|thumb|300px|right|Palm OS Emulation]]
 
[[Image:Palm-os-emulator.png|thumb|300px|right|Palm OS Emulation]]
Line 7: Line 7:
 
== Requirements ==
 
== Requirements ==
   
  +
* [[Apertium-dixtools|Apertium DixTools]]
* Ant
 
* Java Development Kit 6 (JDK6)
 
* Netbeans (>6.0) (some libraries are needed to build the project)
 
 
* PalmOpenDic
 
* PalmOpenDic
  +
* A Palm device
   
 
== Download and install Apertium DixTools ==
 
== Download and install Apertium DixTools ==
Line 22: Line 21:
 
where:
 
where:
   
* '''dix''': the apertium dictionary (.dix).
+
* '''dix''': an apertium [[Bidix|bilingual dictionary]] (.dix).
* '''lang-pair''': the code for the language pair (es-ca, en-es, etc.)
+
* '''lang-pair''': the code for the [[Language_pair|language pair]] (es-ca, en-es, etc.)
 
* '''lang-pair-text''': the name of the language pair (Spanish-Catalan, English-Catalan, etc.)
 
* '''lang-pair-text''': the name of the language pair (Spanish-Catalan, English-Catalan, etc.)
 
* '''platform''': in this particular case (dictionaries for Palm), the option must be 'palm'.
 
* '''platform''': in this particular case (dictionaries for Palm), the option must be 'palm'.
 
* '''filter''': an XML config file with some filtering rules.
 
* '''filter''': an XML config file with some filtering rules.
  +
  +
Example:
  +
  +
$ apertium-dixtools dix2tiny apertium-en-es.en-es.dix en-es English-Spanish palm config-en-es.xml
  +
  +
This command will generate two files:
  +
  +
* <code>en-es-data.cc</code>
  +
* <code>en-es-apertium-palm.pdb</code>. This is the file required for PalmOpenDic.
  +
  +
=== Stable and nightly builds ===
  +
  +
* There's also a '''nightly build''' for each language pair to download from [http://www.apertium.org/files/palm/ www.apertium.org/files/palm].
  +
* '''Stable''' versions of the dictionaries (.pdb files) are available in the [https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-mobile/apertium-tinylex-palm/ apertium-tinylex-palm] SVN directory. '''Note:''' After Apertium's migration to GitHub, this tool is '''read-only''' on the SourceForge repository and does not exist on GitHub. If you are interested in migrating this tool to GitHub, see [[Migrating tools to GitHub]].
   
 
=== An example of configuration file ===
 
=== An example of configuration file ===
Line 37: Line 50:
   
 
<!-- force to preserve the following tags -->
 
<!-- force to preserve the following tags -->
<entry key="preserveTags"></entry>
+
<entry key="preserveTags">n,adj,adv,vblex</entry>
   
 
<!-- force to ignore the following tags -->
 
<!-- force to ignore the following tags -->
Line 58: Line 71:
 
</pre>
 
</pre>
   
== Old notes ==
+
== Screenshots ==
   
  +
<gallery>
There is a lot of people out there who use Palm handhelds and could benefit from Apertium bilingual dictionaries.
 
  +
Image:Palm-os-emulator.png|Searching dictionary entries
  +
Image:Pose-example.png|Example of dictionary entry
  +
</gallery>
   
  +
== Video demo ==
There is an opensource application for Palms called [http://pzdbview.sourceforge.net/palmopendic.html PalmOpenDic] that can handle dictionaries.
 
   
  +
<videoflash>o9o1wtb5jGc</videoflash>
Dictionaries in a rather easy text-like format such as the one used by [http://dict.cc dict.cc] (see [http://www1.dict.cc/translation_file_request.php the file request page of dict.cc]) can be converted with a Java application (for the desktop) inside PalmOpenDic into the Palm database format used by PalmOpenDic.
 
 
Apertium bilingual dictionaries could easily be converted, using ltexpand, into a dict.cc-like format and then distributed with PalmOpenDic.
 
 
Mikel has tried to install a the resulting, converted file into his Zire 22 Palm but got a message when using [http://www.jpilot.org/ jpilot] to install ("Instal·lació de DictCC.pdf ha fallat"). This was probably because the file was too large. After converting just a section, it worked nicely.
 
   
 
== Related software ==
 
== Related software ==
   
 
* [[Apertium-tinylex|Apertium TinyLex]]: a J2ME (Java 2 Micro Edition) program for mobile devices which looks up dictionary entries.
 
* [[Apertium-tinylex|Apertium TinyLex]]: a J2ME (Java 2 Micro Edition) program for mobile devices which looks up dictionary entries.
  +
* [[Apertium Android|Apertium Android]]
  +
  +
== External links ==
  +
  +
* [http://www.tinylex.com/download_palm.php TinyLex.com:] Apertium TinyLex binaries for Palm at tinylex.com.
 
* [http://pzdbview.sourceforge.net/palmopendic.html PalmOpenDic]: PalmOS dictionary application for PalmOS 3.5 or higher. It can be used to view (and search in) dictionaries which are stored on your Palm.
 
* [http://pzdbview.sourceforge.net/palmopendic.html PalmOpenDic]: PalmOS dictionary application for PalmOS 3.5 or higher. It can be used to view (and search in) dictionaries which are stored on your Palm.
  +
* [http://sourceforge.net/projects/pose/ Palm OS Emulator] is used for writing, testing, and debugging Palm OS applications.
  +
* [http://www.jpilot.org/ J-Pilot]: a desktop organizer application for PalmOS devices.
  +
  +
[[Category:Tools]]
  +
[[Category:User interfaces]]
  +
[[Category:Mobile]]

Latest revision as of 05:03, 8 March 2018

Mobile dictionaries for Palm can be generated using the dix2tiny task in apertium-dixtools package.

Palm OS Emulation

Requirements[edit]

Download and install Apertium DixTools[edit]

Generating dictionaries for PalmOpenDic[edit]

$ apertium-dixtools dix2tiny <dix> <lang-pair> <lang-pair-text> <platform> [<filter>]

where:

  • dix: an apertium bilingual dictionary (.dix).
  • lang-pair: the code for the language pair (es-ca, en-es, etc.)
  • lang-pair-text: the name of the language pair (Spanish-Catalan, English-Catalan, etc.)
  • platform: in this particular case (dictionaries for Palm), the option must be 'palm'.
  • filter: an XML config file with some filtering rules.

Example:

$ apertium-dixtools dix2tiny apertium-en-es.en-es.dix en-es English-Spanish palm config-en-es.xml

This command will generate two files:

  • en-es-data.cc
  • en-es-apertium-palm.pdb. This is the file required for PalmOpenDic.

Stable and nightly builds[edit]

  • There's also a nightly build for each language pair to download from www.apertium.org/files/palm.
  • Stable versions of the dictionaries (.pdb files) are available in the apertium-tinylex-palm SVN directory. Note: After Apertium's migration to GitHub, this tool is read-only on the SourceForge repository and does not exist on GitHub. If you are interested in migrating this tool to GitHub, see Migrating tools to GitHub.

An example of configuration file[edit]

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
    <comment>Configuration</comment>

    <!-- force to preserve the following tags -->
    <entry key="preserveTags">n,adj,adv,vblex</entry>

    <!-- force to ignore the following tags -->
    <entry key="ignoreTags">GD,ND,cm</entry>

    <!-- ignore tags not listed in 'preserveTags' and 'ignoreTags' properties -->
    <entry key="ignoreNotListedTags">no</entry>

    <!-- characters to remove -->
    <entry key="removeCharacters">\\*</entry>

    <!-- characters to replace with blank -->
    <entry key="replaceCharactersWithBlank">_</entry>

    <entry key="rename_n">noun</entry>
    <entry key="rename_adv">adverb</entry>
    <entry key="rename_adj">adjective</entry>
    ...
</properties>

Screenshots[edit]

Video demo[edit]

<videoflash>o9o1wtb5jGc</videoflash>

Related software[edit]

External links[edit]

  • TinyLex.com: Apertium TinyLex binaries for Palm at tinylex.com.
  • PalmOpenDic: PalmOS dictionary application for PalmOS 3.5 or higher. It can be used to view (and search in) dictionaries which are stored on your Palm.
  • Palm OS Emulator is used for writing, testing, and debugging Palm OS applications.
  • J-Pilot: a desktop organizer application for PalmOS devices.