Git Product home page Git Product logo

Comments (5)

zoltar9264 avatar zoltar9264 commented on July 19, 2024 2

Chinese characters usually occupy two positions
image

from asciitable.

haukee avatar haukee commented on July 19, 2024

It works alright if u use a fixed width font like GNU Unifont

from asciitable.

fengkuok avatar fengkuok commented on July 19, 2024

The same issue

from asciitable.

tokazio avatar tokazio commented on July 19, 2024

The String .length() from java causes problem like this.
I'm french, when i use the word 'Désignation' java count 12 char instead of 11!

This code is a better 'length' calculator (found it partially on stackoverflow):

private static int len(String s){
        List<String> characters=new ArrayList<String>();
        Pattern pat = Pattern.compile("\\d|\\.|\\s|\\p{L}\\p{M}*");
        Matcher matcher = pat.matcher(s);
        while (matcher.find()) {
            characters.add(matcher.group());
        }
        return characters.size();
    }

I've not found where to place it in the renderer...

from asciitable.

kingj1261 avatar kingj1261 commented on July 19, 2024

same issue

from asciitable.

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.