You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 583542b
Browse filesBrowse the repository at this point in the historyBrowse files
Fix the code-generator Generate button, element-editor Apply text, and over-escaped hints. Make the code dialog resizable and document the output concatenation example.
Co-authored-by: Cursor <cursoragent@cursor.com>
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
11
11
**VisuStruct** is a **structure-chart editor** for **Nassi–Shneiderman** diagrams (desktop, Kotlin / Swing).
12
12
13
-
Under **Settings → Languages** the **user interface** can be set to any of **21 languages** aligned with **VisuStruct-swift** (English, German, Spanish, French, Italian, Polish, Turkish, Korean, Japanese, Greek, Ukrainian, Arabic, Russian, Hebrew, Dutch, Swedish, Danish, Norwegian Bokmål, Chinese Simplified/Traditional, European Portuguese). Stored as `uilanguage` in `visustruct.properties` (e.g. `zh_Hans`, `pt_PT`). UI strings are synced from the Swift app where keys overlap: `python3 tools/sync_java_messages_from_swift.py` (map: `VisuStruct-swift/tools/java_swift_i18n_map.json`). Desktop-only labels may still fall back to English.
13
+
Under **Settings → Languages** the **user interface** can be set to any of **21 languages** aligned with **VisuStruct-swift** (English, German, Spanish, French, Italian, Polish, Turkish, Korean, Japanese, Greek, Ukrainian, Arabic, Russian, Hebrew, Dutch, Swedish, Danish, Norwegian Bokmål, Chinese Simplified/Traditional, European Portuguese). Stored as `uilanguage` in `visustruct.properties` (e.g. `zh_Hans`, `pt_PT`). UI strings are synced from the Swift app where keys overlap: `python3 tools/sync_java_messages_from_swift.py` (map: `tools/java_swift_i18n_map.json`, or `VisuStruct-swift/tools/java_swift_i18n_map.json` if that sibling clone exists). Desktop-only labels may still fall back to English.
14
14
15
15
*Lineage:* Based on the open-source project [kekru/struktogrammeditor](https://github.com/kekru/struktogrammeditor) (Kevin Krummenauer, MIT). Copyright and terms: [LICENSE](LICENSE).
-**Code generator:****Generate** did nothing after the Kotlin port because `JNumberField.isNumeric()` compiled an invalid regex (`PatternSyntaxException`). Indent fields now parse numbers with `toDoubleOrNull()`.
8
+
-**Element editor:****Apply text** crashed on `Regex.split(…, -1)` (Java’s “keep empties” limit is not valid in Kotlin).
9
+
-**Hints:** editor example strings showed long backslash runs after i18n sync doubled `.properties` escapes. Sync/resync now unescape before rewriting.
10
+
-**Palette → Generate code** applies pending editor text first (same as **File → Generate code**).
11
+
12
+
## UI
13
+
14
+
-**Code generator** dialog is **resizable**; the old fixed 498×458 absolute layout no longer clips buttons on HiDPI or with long translations.
15
+
-**Output** hint includes a concatenation example (`output: "Ergebnis: " + ergebnis` / `output: "Result: " + result`).
16
+
17
+
## Internationalization
18
+
19
+
- Further **Swift** string sync for editor/dialog keys; `tools/java_swift_i18n_map.json` is kept in this repo as a fallback map.
20
+
21
+
## Tests
22
+
23
+
-`CodeGenRulesJavaTest`: Java input/output lines and numeric indent fields.
0 commit comments