Tabnine Logo
Hyphen
Code IndexAdd Tabnine to your IDE (free)

How to use
Hyphen
in
ch.sbs.jhyphen

Best Java code snippets using ch.sbs.jhyphen.Hyphen (Showing top 5 results out of 315)

origin: org.daisy.bindings/jhyphen

/**
 * Free memory
 */
public void close() {
  Hyphen.getLibrary().hnj_hyphen_free(dictionary);
}

origin: org.daisy.pipeline.modules.braille/libhyphen-core

@Reference(
  name = "LibhyphenLibrary",
  unbind = "-",
  service = NativePath.class,
  target = "(identifier=http://hunspell.sourceforge.net/Hyphen/native/*)",
  cardinality = ReferenceCardinality.MANDATORY,
  policy = ReferencePolicy.STATIC
)
protected void bindLibrary(NativePath path) {
  URI libraryPath = path.get("libhyphen").iterator().next();
  Hyphen.setLibraryPath(asFile(path.resolve(libraryPath)));
  logger.debug("Registering libhyphen library: " + libraryPath);
}

origin: org.daisy.bindings/jhyphen

/**
 * Default constructor
 * @param dictPath The path to the hyphenation dictionary file,
 *        e.g. /usr/share/hyphen/hyph_de_DE.dic
 * @throws FileNotFoundException if the dictionary file cannot be found.
 * @throws CompilationException if the encoding of the file is not supported.
 */
public Hyphenator(File dictionaryFile) throws CompilationException, FileNotFoundException {
  if (!dictionaryFile.exists())
    throw new FileNotFoundException("Dictionary file at " +
        dictionaryFile.getAbsolutePath() + " doesn't exist.");
  try {
    charset = getCharset(dictionaryFile);
  } catch(UnsupportedCharsetException e) {
    throw new CompilationException(e);
  }
  dictionary = Hyphen.getLibrary().hnj_hyphen_load(dictionaryFile.getAbsolutePath());
}

origin: org.daisy.bindings/jhyphen

PointerByReference posPointer = new PointerByReference(Pointer.NULL);
PointerByReference cutPointer = new PointerByReference(Pointer.NULL);
Hyphen.getLibrary().hnj_hyphen_hyphenate2(dictionary, wordBytes, wordSize, wordHyphens, null,
                     repPointer, posPointer, cutPointer);
if (repPointer.getValue() != Pointer.NULL)
origin: org.daisy.bindings/jhyphen

PointerByReference posPointer = new PointerByReference(Pointer.NULL);
PointerByReference cutPointer = new PointerByReference(Pointer.NULL);
Hyphen.getLibrary().hnj_hyphen_hyphenate2(dictionary, wordBytes, wordSize, wordHyphens, null,
                     repPointer, posPointer, cutPointer);
ch.sbs.jhyphenHyphen

Most used methods

  • getLibrary
  • setLibraryPath

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • BoxLayout (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now