Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overflowing text #60

Open
betseg opened this issue Nov 27, 2015 · 5 comments
Open

Overflowing text #60

betseg opened this issue Nov 27, 2015 · 5 comments
Milestone

Comments

@betseg
Copy link

betseg commented Nov 27, 2015

Is it possible to cut the overflowed text in half so that the end of the text is visible?

@randomdude999
Copy link

see issue #53

@schachmat
Copy link
Owner

Be patient, I'm halfway through finally fixing #1. It's just a little regression to fix, which should be done by christmas. Then you are free to build frontends to your liking, changing all the rendering stuff and achieve happiness and joy for everyone.

@randomdude999
Copy link

That'd be great. Maybe I'd make a gnome toolbar extension based on it!

@rgarrigue
Copy link

Just another thanks for the great job @schachmat, and a 👍 on this topic :-)

@schachmat schachmat added this to the 3.0 milestone Apr 9, 2016
@YarnSphere
Copy link

YarnSphere commented Jan 25, 2017

I just realised that I probably created an issue in the wrong repository: chubin/wttr.in#65 😛

Basically, I wanted different table sizes depending on the width of the terminal; I'll just copy-paste what I wrote in the other thread, since I believe it is relevant:

WIDTH >= 125:

                                                       ┌─────────────┐                                                       
┌──────────────────────────────┬───────────────────────┤ Wed 25. Jan ├───────────────────────┬──────────────────────────────┐
│           Morning            │             Noon      └──────┬──────┘    Evening            │            Night             │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│     \   /     Sunny          │     \   /     Sunny          │               Cloudy         │      .-.      Light drizzle  │
│      .-.      10 – 11 °C     │      .-.      15 °C          │      .--.     11 – 12 °C     │     (   ).    10 – 12 °C     │
│   ― (   ) ―   ↖ 7 – 9 km/h   │   ― (   ) ―   ↑ 13 – 14 km/h │   .-(    ).   ↑ 14 – 22 km/h │    (___(__)   ↑ 15 – 24 km/h │
│      `-’      10 km          │      `-’      10 km          │  (___.__)__)  10 km          │     ‘ ‘ ‘ ‘   2 km           │
│     /   \     0.0 mm | 0%    │     /   \     0.0 mm | 0%    │               0.0 mm | 0%    │    ‘ ‘ ‘ ‘    0.5 mm | 95%   │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘

63 <= WIDTH < 125:

                        ┌─────────────┐
┌───────────────────────┤ Wed 25. Jan ├───────────────────────┐
│           Morning     └──────┬──────┘      Noon             │
├──────────────────────────────┼──────────────────────────────┤
│     \   /     Sunny          │     \   /     Sunny          │
│      .-.      10 – 11 °C     │      .-.      15 °C          │
│   ― (   ) ―   ↖ 7 – 9 km/h   │   ― (   ) ―   ↑ 13 – 14 km/h │
│      `-’      10 km          │      `-’      10 km          │
│     /   \     0.0 mm | 0%    │     /   \     0.0 mm | 0%    │
├──────────────────────────────┼──────────────────────────────┤
│           Evening            │            Night             │
├──────────────────────────────┼──────────────────────────────┤
│               Cloudy         │      .-.      Light drizzle  │
│      .--.     11 – 12 °C     │     (   ).    10 – 12 °C     │
│   .-(    ).   ↑ 14 – 22 km/h │    (___(__)   ↑ 15 – 24 km/h │
│  (___.__)__)  10 km          │     ‘ ‘ ‘ ‘   2 km           │
│               0.0 mm | 0%    │    ‘ ‘ ‘ ‘    0.5 mm | 95%   │
└──────────────────────────────┴──────────────────────────────┘

WIDTH < 63 (only looks good if WIDTH >= 32):

┌─────────────┐
│ Wed 25. Jan │
├─────────────┴────────────────┐
│           Morning            │
├──────────────────────────────┤
│     \   /     Sunny          │
│      .-.      10 – 11 °C     │
│   ― (   ) ―   ↖ 7 – 9 km/h   │
│      `-’      10 km          │
│     /   \     0.0 mm | 0%    │
├──────────────────────────────┤
│             Noon             │
├──────────────────────────────┤
│     \   /     Sunny          │
│      .-.      15 °C          │
│   ― (   ) ―   ↑ 13 – 14 km/h │
│      `-’      10 km          │
│     /   \     0.0 mm | 0%    │
├──────────────────────────────┤
│           Evening            │
├──────────────────────────────┤
│               Cloudy         │
│      .--.     11 – 12 °C     │
│   .-(    ).   ↑ 14 – 22 km/h │
│  (___.__)__)  10 km          │
│               0.0 mm | 0%    │
├──────────────────────────────┤
│            Night             │
├──────────────────────────────┤
│      .-.      Light drizzle  │
│     (   ).    10 – 12 °C     │
│    (___(__)   ↑ 15 – 24 km/h │
│     ‘ ‘ ‘ ‘   2 km           │
│    ‘ ‘ ‘ ‘    0.5 mm | 95%   │
└──────────────────────────────┘

Note: I aligned the date in this last example to the left, but maybe try something else!

Keep up the good work! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants