de.vandermeer.translation.combinations.Text2Html Maven / Gradle / Ivy
/* Copyright 2016 Sven van der Meer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.vandermeer.translation.combinations;
import de.vandermeer.skb.interfaces.translators.CombinedTranslator;
/**
* Combined translator translating from text to HTML.
*
* @author Sven van der Meer <[email protected]>
* @version v0.0.2 build 170404 (04-Apr-17) for Java 1.8
* @since v0.0.1
*/
public class Text2Html implements CombinedTranslator {
@Override
public String translateCharacters(String input) {
return new de.vandermeer.translation.characters.Text2Html().translateCharacters(input);
}
@Override
public String text2tmp(String input) {
return new de.vandermeer.translation.helements.Text2Html().text2tmp(input);
}
@Override
public String tmp2target(String input) {
return new de.vandermeer.translation.helements.Text2Html().tmp2target(input);
}
@Override
public String translate(String input) {
String ret = this.text2tmp(input);
ret = this.translateCharacters(ret);
ret = this.tmp2target(ret);
return ret;
}
@Override
public String translateHtmlElements(String input) {
return new de.vandermeer.translation.helements.Text2Html().translateHtmlElements(input);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy