Codota Logo
Hyphen
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now