Giter VIP home page Giter VIP logo

Comments (8)

np1 avatar np1 commented on July 28, 2024

Yes, that bugs me. If someone could tell me how to fix that I'd be grateful! It looks like some characters are taking two spaces. Need to work out how many there are in each line and adjust the formatting accordingly.

from yewtube.

 avatar commented on July 28, 2024

I'm not sure if this fixable without performing some hard settings to make sure the columns always start at a certain location. Reading through the following pages seems to indicate that there is nothing we can do to make the characters behave:

https://stackoverflow.com/questions/586503/complete-monospaced-unicode-font
http://www.mail-archive.com/[email protected]/msg08599.html

from yewtube.

np1 avatar np1 commented on July 28, 2024

I have improved the alignment in https://github.com/np1/mps-youtube/commit/34f0435f7b370b6a57255a93ecaa2b8f50b304d8 on the develop branch, it's better but still not perfect with many search results.
screenshot

I have tested with Python2.7.5 and 3.3. If someone could also test on Windows that would be great.

from yewtube.

 avatar commented on July 28, 2024

I'm not on windows but on my Ubuntu machine Japanese and Korean characters are pretty good. Thai was a little mangled as was a listing that had no non-latin characters that I could see:

bug

Some symbols are still causing some issue:

bug2

from yewtube.

np1 avatar np1 commented on July 28, 2024

Thanks for testing. I have spent quite a lot of time on this and haven't been able to get it any better. Yes it's weird that result 7 of your first screenshot is misaligned. I have tested this in the current version on branch master by searching for "north korean song" and it's also misaligned there so it seems I haven't made anything worse. I just hope I didn't break anything on Win!

from yewtube.

zgrimshell avatar zgrimshell commented on July 28, 2024

hm maybe pprint module could be used to force output width=80 (or some other way to make it default to 80 which should always be default for terminal outputs)

from yewtube.

np1 avatar np1 commented on July 28, 2024

I doubt pprint can help with this but would be happy to be proved wrong!

from yewtube.

ids1024 avatar ids1024 commented on July 28, 2024

The problem with the north Korean song is that there is a \ufeff BOM between "of" and " revolution".

from yewtube.

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.