I wrote this small library to export/get DSL articles as *.html
content. To read more about DSL format use the following resources:
- English: http://lingvo.helpmax.net/en/troubleshooting/dsl-compiler/dsl-dictionary-structure/
- Russian (much more comprehended): https://anatoly314.github.io/dsl-manual/
- Example how to save translation result as
*.html
files:
import entrypoints.Dsl2Html;
public class main {
public static void main(String[] args){
String dictPathsArray[] = { ... }; //paths to DSL dictionaries
String[] wordsToTranslate = {"angel","peace","world","brother"}; //list of words to translate
String outputDirectoryPath = "test-output"; //output folder path
Dsl2Html.saveTranslationsToFiles(dictPathsArray, wordsToTranslate, outputDirectoryPath);
}
}
- Not all DSL specification implemented yet. It supports right now only subset of DSL tags. Meanwhile it's enough to get to work with it.
- Font Awesome customized by: https://icomoon.io
- woff to base64 by: https://www.browserling.com/tools/file-to-base64
- Expiration how to cause Font Awesome works in base64 mode taken from here: https://gitlab.com/tecnos/font-awesome-base64#README