1   package org.daisy.pipeline.braille.liblouis;
2   
3   import org.daisy.pipeline.braille.common.BrailleTranslator;
4   import org.daisy.pipeline.braille.common.BrailleTranslatorProvider;
5   
6   public interface LiblouisTranslator extends BrailleTranslator {
7   	
8   	public LiblouisTable asLiblouisTable();
9   	
10  	public FromTypeformedTextToBraille fromTypeformedTextToBraille();
11  	
12  	public interface FromTypeformedTextToBraille {
13  		
14  		/**
15  		 * @param text The text segments to be translated.
16  		 * @param typeform The typeform. Array must have the same length as <code>text</code>.
17  		 * @return The translated text segments. Has the same length as <code>text</code>.
18  		 */
19  		public String[] transform(String[] text, String[] typeform);
20  		
21  	}
22  	
23  	public interface Provider extends BrailleTranslatorProvider<LiblouisTranslator> {}
24  	
25  }