tonsky / FiraCode

Free monospaced font with programming ligatures
SIL Open Font License 1.1
76.04k stars 3.07k forks source link

PlantUML arrows #967

Open wanno-drijfhout opened 4 years ago

wanno-drijfhout commented 4 years ago

PlantUml defines a textual notation for a lot of diagrams. Arrow specifications like <-- and <- work really nicely with FiraCode. However, there's also specifications like <. and <.. (and of course .> and ..>) which represent dotted arrow lines. Or <--> etc. It would be amazing if Fira could also provide ligatures for those symbols.

tonsky commented 4 years ago

Hi! I have a feeling those might conflict with math expressions in other languages:

x<.5
1.>x

Adding <--> shold be no problem. If you provide the full list I might implement some that would not interfere with other progamming languages

wanno-drijfhout commented 4 years ago

Hi! Thanks. I looked it up. The definitions seemed a bit scattered in this PDF but I think I found the most important ones.

These pages list the examples and the corresponding graphics far better than I could reproduce here on GitHub, so I hope this is sufficient :-).

tonsky commented 4 years ago
Bob ->x Alice
Bob -> Alice
Bob ->> Alice
Bob -\ Alice
Bob \\- Alice
Bob //-- Alice
Bob ->o Alice
Bob o\\-- Alice
Bob <-> Alice
Bob <->o Alice
Screenshot 2020-03-11 at 13 06 20
:user: --> (Use case 1)
:user: -> (Use case 2)
Screenshot 2020-03-11 at 13 07 10
(Use case 1) <.. :user:
(Use case 2) <- :user:
Screenshot 2020-03-11 at 13 07 46
:user: -left-> (dummyLeft)
:user: -right-> (dummyRight)
:user: -up-> (dummyUp)
:user: -down-> (dummyDown)
Screenshot 2020-03-11 at 13 08 25
Class01 <|-- Class02
Class03 *-- Class04
Class05 o-- Class06
Class07 .. Class08
Class09 -- Class10
Screenshot 2020-03-11 at 13 09 25
Class11 <|.. Class12
Class13 --> Class14
Class15 ..> Class16
Class17 ..|> Class18
Class19 <--* Class20
Screenshot 2020-03-11 at 13 10 27
Class21 #-- Class22
Class23 x-- Class24
Class25 }-- Class26
Class27 +-- Class28
Class29 ^-- Class30
Screenshot 2020-03-11 at 13 11 08