cslarsen / cslarsen/jp2a

jp2a with half carriage feed?

Open
#14 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
1.1k
Forks
83
PR merge metrics
No merged PRs in 30d

Description

I had a bit of nostalgia recently and started a quest to find pre-ascii typewriter art using half carriage feeds to partially overlap lines.

I did find some folks do overstrike art, re-running the full line with text overstrikes.

I have not yet dug into your jp2a utility, but I wonder if you think this could be a possible (easy) modification or option? I am not super familiar with the area so this may already exist. Overstrike, half returns, etc.

A half return would complicate things because we can't display easily so you have to have a display app or write the resulting output to PDF maybe?

I am a MATLAB junkie, so I copied in an example of what I am talking about. I tested it in octave online as well and it seems to render for me with a half step. https://octave-online.net/

Thanks for your utility!

Ed Gatzke

BTW, I tried to email csl@csl.name and it bounced. ???

subplot(2,1,1);subplot(1,1,1)
f=figure(1)
axis off
axis([0 1 0 1])
fs=14
% Draw some text:
t=text(.1,.7,'This is a test','FontName','Arial','FontSize',fs)

% Draw some two-line text:
t=text(.1,.5,sprintf('This is a test \nThis is a test'),'FontName','Arial','FontSize',fs)

% Overlap two lines, need sprintf as it affects text placemnt
t=text(.27,.5,sprintf('This is a test \n '),'FontName','Arial','FontSize',fs)
dy=.063 % This value depends on figure size, WTF?
t=text(.27,.5-dy,sprintf('This is a test \n '),'FontName','Arial','FontSize',fs)

t=text(.1,.2,sprintf('This is a test \n '),'FontName','Arial','FontSize',fs)
t=text(.1,.2-dy/2,sprintf('This is a test \n '),'FontName','Arial','FontSize',fs)
t=text(.1,.2-dy,sprintf('This is a test \n '),'FontName','Arial','FontSize',fs)

![image](https://user-images.githubusercontent.com/7977817/119507549-ec97f080-bd3c-11eb-93ef-ec1dfb1235cd.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing jp2a's current command-line output behavior alongside the MATLAB/Octave example in the issue. Determine whether the request targets overstrike text, half carriage feeds, or another output format; the work is done only when the supported behavior and its display or file-output expectations are explicitly defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.