|
|
|
@@ -45,7 +45,7 @@ public class FormallTess4jTrain { |
|
|
|
|
|
|
|
private static String getBoxFont(String lang,String fontName) { |
|
|
|
String prefix = getprefix(lang,fontName); |
|
|
|
String extractorCmdstr = "unicharset_extractor "+prefix+".box"; |
|
|
|
String extractorCmdstr = "unicharset_extractor "+prefix+".box [other .box files...]"; |
|
|
|
return extractorCmdstr; |
|
|
|
} |
|
|
|
|
|
|
|
@@ -101,11 +101,11 @@ public class FormallTess4jTrain { |
|
|
|
sb.append("第四步:用box文件生成。tr文件 ").append(huanhangstr); |
|
|
|
sb.append(createTranFile(lang,fontName)).append(huanhangstr); |
|
|
|
sb.append("............ ").append(huanhangstr); |
|
|
|
sb.append("@@@!!!!从此处开始,可以处理多个字库处理。如原来的字库现在做升级,需要把老的字库的。tif,.box,.tr文件重新命名也放到同目录文件夹, ").append(huanhangstr); |
|
|
|
sb.append("............ ").append(huanhangstr); |
|
|
|
sb.append("第五步:提取box字符 ").append(huanhangstr); |
|
|
|
sb.append(getBoxFont(lang,fontName)).append(huanhangstr); |
|
|
|
sb.append("............ ").append(huanhangstr); |
|
|
|
sb.append("@@@!!!!从此处开始,可以处理多个字库处理。如原来的字库现在做升级,需要把老的字库的。tif,.box,.tr文件重新命名也放到同目录文件夹, ").append(huanhangstr); |
|
|
|
sb.append("............ ").append(huanhangstr); |
|
|
|
sb.append("第六步:新建font_properties(没有.txt后缀), 把所有box对应的字体特征加进去。").append(huanhangstr); |
|
|
|
sb.append("fontname为字体名称,保持和 图片集文件 .tif 和.box文件的前缀名一致 .<italic> 、<bold> 、<fixed> 、<serif>、 <fraktur>的取值为1或0,表示字体是否具有这些属性。 ").append(huanhangstr); |
|
|
|
sb.append("如以下内容: ").append(huanhangstr); |
|
|
|
@@ -115,7 +115,7 @@ public class FormallTess4jTrain { |
|
|
|
sb.append("............ ").append(huanhangstr); |
|
|
|
sb.append("第六步:批量执行系列命令。多个文件在后面累加。 ").append(huanhangstr); |
|
|
|
String prefix = getprefix(lang,fontName); |
|
|
|
String shapeCmdStr = "shapeclustering -F font_properties -U unicharset "+prefix+".tr [other .tr files...] "; |
|
|
|
String shapeCmdStr = "### shapeclustering -F font_properties -U unicharset "+prefix+".tr [other .tr files...] "; |
|
|
|
sb.append(shapeCmdStr).append(huanhangstr); |
|
|
|
String mftraingCmdstr = "mftraining -F font_properties -U unicharset -O unicharset "+prefix+".tr [other .tr files...] "; |
|
|
|
sb.append(mftraingCmdstr).append(huanhangstr); |
|
|
|
|