Comments (5)
If it's the [Person]
text that you're referring to, you can change this via the terminology keyword. For example:
workspace {
model {
user = person "用户1"
}
views {
systemLandscape "MyDiagramKey" {
include *
}
terminology {
person "xxx"
}
}
}
Here's an example.
from export.
I think point is that userId (alias) is rendered with error: see "as 1" fragment in result.
I get same issue with russian names ob objects.
As I could understand reasons - thats from https://github.com/structurizr/export/blob/main/src/main/java/com/structurizr/export/plantuml/AbstractPlantUMLExporter.java#L159
filter function - it's delete any non [a-zA-Z_0-9] characters.
But - it's not realy nessesary in PlantUML to make so strict rules for Ids: see https://plantuml.com/ru/unicode
My suggest for patch is: change regexp puttern to unicode aware: from "\W" to "(?U)\W".
see for explanation: https://stackoverflow.com/questions/4304928/unicode-equivalents-for-w-and-b-in-java-regular-expressions
from export.
Do you have an example DSL that doesn't work?
from export.
Here is example:
workspace {
model {
user = person "Пользователь"
}
views {
systemLandscape "MyDiagramKey" {
include *
}
terminology {
person "xxx"
}
}
}
command for export:
structurizr.bat export -workspace test\workspace.dsl -format plantuml -output .\export
result plantUML file:
@startuml
title System Landscape
top to bottom direction
skinparam {
shadowing false
arrowFontSize 10
defaultTextAlignment center
wrapWidth 200
maxMessageSize 100
}
hide stereotype
skinparam rectangle<<>> {
BackgroundColor #dddddd
FontColor #000000
BorderColor #9a9a9a
}
rectangle "==Пользователь\n<size:10>[Person]</size>" <<>> as
@enduml
Take a note for empty alias and stereotype name in difinitions.
from export.
Thanks ... I think this is different from the original issue, so I've changed the title.
from export.
Related Issues (20)
- Dark mode interfaces not well supported by Mermaid exporter HOT 1
- Add a network diagram (nwdiag) exporter based on the deployment specification
- Mermaid diagrams have a yellow border
- Export for filtered views HOT 6
- WebSequenceDiagrams exporter only shows relationship descriptions defined in the dynamic view
- WebSequenceDiagrams exporter has a triple >>> ending the stereotype
- Different fonts in Linux and Mac HOT 9
- Use Plantuml stdlib C4 include syntax rather than Github URL based HOT 2
- Only add the model elements tags to the elements in the generated C4Plantuml files HOT 1
- Show additional properties / details in deploymentNode diagrams HOT 5
- StructurizrPlantUMLExporter crashes when used in native binaries
- Internal property 'structurizr.dsl.identifier' on exported diagrams should be hidden HOT 2
- shadow property for both plantuml exporters HOT 2
- Export workspace as DSL.json
- link to further down diagram HOT 1
- Multiple groups with same name not rendered correctly (PlantUML) HOT 3
- Support for C4-PlantUML's ComponentDb and ComponentQueue in C4PlantUMLExporter?
- C4PlantUMLExporter mistakes container and component description for technologies when only description is present HOT 1
- Export the model to DSL or JSON format HOT 1
- support c4plantuml sequence diagrams HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from export.