Coder Social home page Coder Social logo

add support to escape char about svgbob HOT 5 CLOSED

ivanceras avatar ivanceras commented on July 28, 2024
add support to escape char

from svgbob.

Comments (5)

ivanceras avatar ivanceras commented on July 28, 2024

Yes the - is chained together with o and interpreted as line with circle endpoint.
You can escape it by using " ie: "co-edit"

from svgbob.

chaseleinart avatar chaseleinart commented on July 28, 2024

Hey there @ivanceras,
It does seem that escaping the "o character" when chained between adjacent text is problematic. when by itself, it seems to be escaped fine, but when the _o falls in the middle of a string of characters without any spaces, it doesn't seem like it can be escaped without some odd spaces being displayed.

Input
"_o"

 foo_bar_opq_id 
                                                                                        
 fo"o_"bar"_o"pq_id                                                                                                       

Output
image

from svgbob.

virtualirfan avatar virtualirfan commented on July 28, 2024

@chaseleinart why not just:

"foo_bar_opq_id"

instead of

fo"o_"bar"_o"pq_id                                                                                                       

from svgbob.

makaleks avatar makaleks commented on July 28, 2024

Yes the - is chained together with o and interpreted as line with circle endpoint.
You can escape it by using " ie: "co-edit"

Thanks for this tip, it is not used widely in demo. The problem is that it does not saves alignment for inherited text. For example, when I print

 +----------+
 |"BIOS RAM"|
 +----------+
      /\
     '  '
    /    \
+----+  +----+
|"ПО"|  |"БД"|
+--o-+  +----+

it results into
Screenshot-2019-10-21 Screenshot

If I replace quotes with spaces, all is normal. But I need these escape-quotes in other places of diagram and the missed alignment seems to be a bigger problem

Thanks

from svgbob.

ivanceras avatar ivanceras commented on July 28, 2024

This has been fixed in svgbob 0.5.5

Try this out on the online editor

 +----------+
 |"BIOS RAM"|
 +----------+
      /\
     /  \
    /    \
+----+  +----+
|"ПО"|  |"БД"|
+--o-+  +----+

 "foo_bar_opq_id" 
                                                                                        
"(some remark)"
some text

from svgbob.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.