Skip to content
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

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

tfr42
Copy link
Member

@tfr42 tfr42 commented Apr 2, 2024

Grammar extended for improved bracket and color handling.

@tfr42 tfr42 added the enhancement New feature or request label Apr 2, 2024
@tfr42 tfr42 added this to the 0.1.0 milestone Apr 2, 2024
@@ -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;
Copy link
Contributor

@lgoltz lgoltz Apr 9, 2024

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?

Copy link
Collaborator

@wanhoff wanhoff Apr 9, 2024

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, " = ");
Copy link
Contributor

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?

Copy link
Collaborator

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 '='.

@tfr42 tfr42 merged commit 2e1f864 into main Apr 10, 2024
3 checks passed
@tfr42 tfr42 deleted the feature/extendedBracketAndColorHandling branch April 10, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants