corrected possible error with the '-' being used as both marker separating definition and definiendum and valid wylie character (transliterated sanskrit).
This commit is contained in:
parent
cc0097f2ae
commit
1fb425c6cd
1 changed files with 42 additions and 42 deletions
|
@ -35,7 +35,7 @@ public class BinaryFileGenerator extends LinkedList
|
||||||
{
|
{
|
||||||
private long posHijos;
|
private long posHijos;
|
||||||
private String sil, def[];
|
private String sil, def[];
|
||||||
private static char delimiter;
|
private static String delimiter;
|
||||||
|
|
||||||
/** Number of dictionary. If 0, partial word (no definition).
|
/** Number of dictionary. If 0, partial word (no definition).
|
||||||
*/
|
*/
|
||||||
|
@ -47,7 +47,7 @@ public class BinaryFileGenerator extends LinkedList
|
||||||
{
|
{
|
||||||
wordRaf = null;
|
wordRaf = null;
|
||||||
defRaf = null;
|
defRaf = null;
|
||||||
delimiter = '-';
|
delimiter = " - ";
|
||||||
}
|
}
|
||||||
|
|
||||||
public BinaryFileGenerator()
|
public BinaryFileGenerator()
|
||||||
|
@ -110,7 +110,7 @@ public class BinaryFileGenerator extends LinkedList
|
||||||
boolean markerNotFound;
|
boolean markerNotFound;
|
||||||
|
|
||||||
// used for acip dict
|
// used for acip dict
|
||||||
if (delimiter==' ')
|
if (delimiter==null)
|
||||||
{
|
{
|
||||||
outAHere:
|
outAHere:
|
||||||
while (true)
|
while (true)
|
||||||
|
@ -547,11 +547,11 @@ public class BinaryFileGenerator extends LinkedList
|
||||||
if (args[0].charAt(0)=='-')
|
if (args[0].charAt(0)=='-')
|
||||||
{
|
{
|
||||||
if (args[0].equals("-tab"))
|
if (args[0].equals("-tab"))
|
||||||
delimiter='\t';
|
delimiter="\t";
|
||||||
else if (args[0].equals("-acip"))
|
else if (args[0].equals("-acip"))
|
||||||
delimiter=' ';
|
delimiter=null;
|
||||||
else
|
else
|
||||||
delimiter=args[0].charAt(1);
|
delimiter=args[0].substring(1);
|
||||||
if (args.length>2)
|
if (args.length>2)
|
||||||
{
|
{
|
||||||
printSintax();
|
printSintax();
|
||||||
|
@ -576,14 +576,14 @@ public class BinaryFileGenerator extends LinkedList
|
||||||
if (args[i].charAt(0)=='-')
|
if (args[i].charAt(0)=='-')
|
||||||
{
|
{
|
||||||
if (args[i].equals("-tab"))
|
if (args[i].equals("-tab"))
|
||||||
delimiter='\t';
|
delimiter="\t";
|
||||||
else if (args[i].equals("-acip"))
|
else if (args[i].equals("-acip"))
|
||||||
delimiter=' ';
|
delimiter=null;
|
||||||
else
|
else
|
||||||
delimiter=args[i].charAt(1);
|
delimiter=args[i].substring(1);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
else delimiter='-';
|
else delimiter=" -";
|
||||||
sl.addFile(args[i] + ".txt", n);
|
sl.addFile(args[i] + ".txt", n);
|
||||||
n++; i++;
|
n++; i++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue