SQLiteInteractiveEngine
io.github.nicheapplab.tcodeengine.SQLiteInteractiveEngine
class SQLiteInteractiveEngine(jdbc_prefix: String, tcode_tbl_path: String, mazegaki_path: String, bushu_path: String) extends InteractiveEngine, SQLiteStrokes
To use SQLite databases as dictionaries, it must be provided with file path for the database files. If any of the database files don't exist, the missing database file will be created from zip archived dictionary.
scala> import io.github.nicheapplab.tcodeengine._
scala> val tcode_tbl_path = System.getProperty("java.io.tempdir") ++ "/.t-code-engine/tcode_tbl.db"
scala> val mazegaki_path = System.getProperty("java.io.tempdir") ++ "/.t-code-engine/mazegaki.db"
scala> val bushu_path = System.getProperty("java.io.tempdir") ++ "/.t-code-engine/bushu.db"
scala> val jdbc_prefix = "jdbc:sqlite"
scala> val ie = new SQLiteInteractiveEngine(jdbc_prefix, tcode_tbl_path, mazegaki_path, bushu_path) with QwertyLayout
scala> "fjyijstt".foreach(ie.put(_))
scala> ie.inflexRight()
scala> ie.convert()
scala> ie.selectCandidate(0)
scala> ie.commit()
val res0: String = "記者"
Attributes
- Graph
-
- Supertypes
- Self type
Members list
In this article