Re:WordPerfect for Unix Character Terminals
by ksenzee on Wednesday April 12, 2023 @03:14AM
(#35536037)
There is _still_ no other word processor I'm aware of that can properly convert to title case. Not to mention Reveal Codes. I... might actually use this, not just play with it.
[ Parent
| on HN ]
Re:WordPerfect for Unix Character Terminals
by 2b3a51 on Wednesday April 12, 2023 @05:10AM
(#35536861)
Equation editor and outlines with 'move family' type functionality as well. Those are not exclusive features but interesting for a terminal application.
Re:WordPerfect for Unix Character Terminals
by boffinAudio on Wednesday April 12, 2023 @06:29AM
(#35537483)
vim: select your text, press the ~ key until you get the case you want ..
Re:WordPerfect for Unix Character Terminals
by throw0101c on Wednesday April 12, 2023 @07:19AM
(#35537871)
> until you get the case you want
The GP was talking about a particular type of formatting:
Re:WordPerfect for Unix Character Terminals
by tambourine_man on Wednesday April 12, 2023 @07:48AM
(#35538162)
Yeah, I love vim, but that’s not its forte
Re:WordPerfect for Unix Character Terminals
by boffinAudio on Wednesday April 12, 2023 @09:05AM
(#35539008)
: help case
To turn one line into title caps, make every first letter of a word
uppercase: :s/\v<(.)(\w*)/\u\1\L\2/g
Re:WordPerfect for Unix Character Terminals
by vulcan01 on Wednesday April 12, 2023 @09:25AM
(#35539264)
That's not title case - you don't capitalize words such as a, the, of, etc. unless they are at the beginning of the title.
Re:WordPerfect for Unix Character Terminals
by tablespoon on Wednesday April 12, 2023 @10:20AM
(#35540126)
> That's not title case - you don't capitalize words such as a, the, of, etc. unless they are at the beginning of the title.
Exactly. Capitalizing every letter is the lazy, half-ass pseudo title case that I always have to correct. Unfortunately its becoming normalized because many major companies that should know better don't even bother to do it right.
Re:WordPerfect for Unix Character Terminals
by amcpu on Wednesday April 12, 2023 @08:31AM
(#35538595)
You could also use the vim :%!python3 your_script.py (where your_script.py does the work to format the text) command that takes the text of the buffer as stdin to the script and replaces the buffer contents with stdout of the script. This can also be combined with visual mode linewise to only replace specific lines of the buffer (must work on entire lines selected).
Re:WordPerfect for Unix Character Terminals
by tablespoon on Wednesday April 12, 2023 @09:42AM
(#35539497)
> There is _still_ no other word processor I'm aware of that can properly convert to title case. Not to mention Reveal Codes. I... might actually use this, not just play with it.
Like this?
Re:WordPerfect for Unix Character Terminals
by ksenzee on Wednesday April 12, 2023 @04:23PM
(#35546247)
Yep. They're complicated rules to memorize but you can definitely reduce them to an algorithm.
Re:WordPerfect for Unix Character Terminals
by currency on Wednesday April 12, 2023 @03:11PM
(#35545128)
I was a computer labs staffer in the early 90s, and for a lot of students our labs were their first exposure to word processors, and man, I hated supporting WordPerfect for DOS. Students couldn't figure out how to apply formatting correctly. Trying to change something's format, they would would reveal codes and delete half of a formatting code pair. I spent so much time explaining why half their paper was now in italics or bold.
WYSIWYG works so much better for most people.