Skip to content

Commit

Permalink
bugfix: nouvelles conventions ORFEO
Browse files Browse the repository at this point in the history
  • Loading branch information
cerisara committed Oct 6, 2016
1 parent fa12fae commit c35669d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fr/loria/synalp/jtrans/markup/in/RawTextLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ public static String normalizeText(String text) {
freespace = text.indexOf(' ', j);
if (freespace < 0) System.out.println("ERROR no free space to add a comment: " + text);
else {
String s = text.substring(0, i) + text.substring(j + 1, freespace) + " {" + text.substring(i, j + 1) + "} ";
String s = text.substring(0, i) + text.substring(j + 1, freespace) + " [" + text.substring(i, j + 1) + "] ";
k=s.length();
text = s + text.substring(freespace + 1);
textmodified = true;
}
} else {
String s = text.substring(0, freespace) + " {" + text.substring(i, j + 1) + "} " + text.substring(freespace + 1, i);
String s = text.substring(0, freespace) + " [" + text.substring(i, j + 1) + "] " + text.substring(freespace + 1, i);
k=s.length();
text = s + text.substring(j + 1);
textmodified = true;
Expand Down Expand Up @@ -85,14 +85,14 @@ public static String normalizeText(String text) {
System.out.println("ERROR no free space to add a comment: " + text);
else {
// on place le commentaire apres
String s = text.substring(0, i) + firstAlt + " " + text.substring(j + 1, freespace) + " {" + text.substring(i, j + 1) + "} ";
String s = text.substring(0, i) + firstAlt + " " + text.substring(j + 1, freespace) + " [" + text.substring(i, j + 1) + "] ";
k = s.length();
text = s + text.substring(freespace + 1);
textmodified = true;
}
} else {
// on place le commentaire avant
String s = text.substring(0, freespace) + " {" + text.substring(i, j + 1) + "} " + text.substring(freespace + 1, i) + firstAlt + " ";
String s = text.substring(0, freespace) + " [" + text.substring(i, j + 1) + "] " + text.substring(freespace + 1, i) + firstAlt + " ";
k = s.length();
text = s + text.substring(j + 1);
textmodified = true;
Expand Down

0 comments on commit c35669d

Please sign in to comment.