GithubHelp home page GithubHelp logo

Feature: plain ASCII support about monosketch HOT 8 OPEN

SPYFF avatar SPYFF commented on August 25, 2024
Feature: plain ASCII support

from monosketch.

Comments (8)

tuanchauict avatar tuanchauict commented on August 25, 2024

Sorry for the late response.
Actually, this request is one of my plans because sometimes, I also prefer simple characters like -+| rather than characters like ┐┌.

Luckily, this is not hard, we can add a new stroke style (see PredefinedStraightStrokeStyle).

We can also add a mask to replace the stroke characters with the equivalent ones when doing export.

However, I'm busy with porting the Kotlin code into TypeScript recently (#584) (it sounds crazy but for the future of MonoSketch and also for me to learn new stuffs - MonoSketch is purely a place for practicing engineering).

Sorry for making you keep waiting longer but this request will definitely be implemented.

from monosketch.

SPYFF avatar SPYFF commented on August 25, 2024

Thank you for the detailed response.

No need to hurry, I will be happy when its done. I just recently found this tool and I'm very happy with it as is for illustrating personal notes. Sometimes my colleagues and I need to illustrate internet drafts (every 3-6 months or so) and the ASCII mode would help with that.

A question about the typescript code. Will the whole project be converted to Typescript or just a part of it? From the output it looks like you are rewriting it from scratch. Anyway, keep up the good work and have fun learning!

from monosketch.

tuanchauict avatar tuanchauict commented on August 25, 2024

I didn't want to, but, unfortunately, I'm porting from scratch.
The number of codes of MonoSketch is not big (~19k), so, this is not a heavy task so far. Only some parts are more complicated than others, and most of the code is quite straightforward.

from monosketch.

SPYFF avatar SPYFF commented on August 25, 2024

I see. Hopefully on the long run it might attract more contributors, I assume TS is more popular than Kotlin these days.

from monosketch.

klausdk avatar klausdk commented on August 25, 2024

Not sure its related, but I would love to have the arrows like asciiflow.
This ► instead of ▶

It makes the vertical lines misaligned

You can notice it in the example on the README.md page and below.

Example :
Current :

                 ─       │           ├───────○──┤/  547 │                    
                GND      │           │       │  │ ▶     │                    
                         │           │      ╭┴╮   │     │                    

With suggested arrow :

                 ─       │           ├───────○──┤/  547 │                    
                GND      │           │       │  │ ►     │                    
                         │           │      ╭┴╮   │     │                    
                         

I like the idea that we can keep it as vanilla as possible without having to use fonts like jetbrains mono (even if its a cool font), but can use fonts like monospace or courier.

from monosketch.

tuanchauict avatar tuanchauict commented on August 25, 2024

For ► or ▶, it really depends on the font and there are no correct answers.
For example, ► is in monospace font while ▶ is

On my PC, the font used on GitHub for monospace renders correct size for both text:

image

But this is what it is displayed on my email
image

Btw, let me add a new kinds of arrow later

from monosketch.

klausdk avatar klausdk commented on August 25, 2024

Sounds great!

Up and down arrows are fine :

From notepad++

image

from monosketch.

klausdk avatar klausdk commented on August 25, 2024

Yes.

Seems to work. Thanks ☺

from monosketch.

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.