-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended bracket and color handling #78
Conversation
@@ -233,6 +248,11 @@ private static String getColorString(String color) { | |||
int partialBodenLength = 2; | |||
while (partialBodenLength <= forColorSeparation.length()) { | |||
String partialTermForColor = forColorSeparation.substring(forColorSeparation.length() - partialBodenLength); | |||
if (partialTermForColor.endsWith("=")) { | |||
bodenTerm = "lich" + bodenTerm; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wanhoff Ist die Reihenfolge ("lich" + bodenTerm) korrekt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ja, der String wird von hinten beginnend ausgewertet. In Zeile 258 werden die normalen Übersetzungen genauso gebildet.
@@ -82,7 +82,7 @@ public void verifyFremdDatenfeldExamples() { | |||
public void verifySepExamples(String df, String propFile) { | |||
JavaConnector.setPropertiesFile(DBPROPFILENAME); | |||
JavaConnector.setDf(df); | |||
Properties properties = loadPropertiesFromFile(propFile, "="); | |||
Properties properties = loadPropertiesFromFile(propFile, " = "); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wanhoff Was ist der Hintergrund für diese Änderung?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hintergrund ist, dass '=' nun in den auszuwertenden Zeichenketten vorkommen kann. Es wird bei Farben als 'lich' übersetzt. Daher kann es nicht mehr als einzelnes Zeichen in .properties-Dateien verwendet werden (Ein Doppelpunkt kann auch in den Zeichenketten vorkommen). Daher trenne ich für die Tests nun mit einem in Leerzeichen eingerahmten '='.
Grammar extended for improved bracket and color handling.