conv(1) – convert data #47

Closed
opened 2024-02-07 20:32:25 -07:00 by emma · 9 comments
Owner

conv(1) should at least support converting between standard Unicode encodings, ASCII, and other international standardized encodings. It should also convert between at least hexadecimal, decimal, octal, and binary.

`conv(1)` should at least support converting between standard Unicode encodings, ASCII, and other international standardized encodings. It should also convert between at least hexadecimal, decimal, octal, and binary.
emma added the
enhancement
help wanted
question
labels 2024-02-07 20:32:25 -07:00
Owner

Why would one tool do both character encoding conversion and number base conversion?

Why would one tool do both character encoding conversion and number base conversion?
Author
Owner

I felt like it made sense as one tool, but if you feel it should be two,
we could do that.

I felt like it made sense as one tool, but if you feel it should be two, we could do that.
Owner

I'm undecided about conv(1) itself. Lately I've been thinking of multiple tools:

  • case(1) - For changing character cases.
  • code(1) - For changing character encodings.
  • base(1) - For changing number bases.
I'm undecided about conv(1) itself. Lately I've been thinking of multiple tools: - case(1) - For changing character cases. - code(1) - For changing character encodings. - base(1) - For changing number bases.
Author
Owner

I am a fan of this

I am a fan of this
Owner

intbase(1), strcase(1), and strcode(1) might be better

intbase(1), strcase(1), and strcode(1) might be better
Owner

Oops, didn't mean to close.

Oops, didn't mean to close.
trinity reopened this issue 2024-05-23 23:33:54 -06:00
Author
Owner

intbase(1), strcase(1), and strcode(1) might be better

I am really not a fan of these names, though.

> intbase(1), strcase(1), and strcode(1) might be better I am really not a fan of these names, though.

strcode(1)

strenc(1) might be better for string encoding.

> strcode(1) strenc(1) might be better for string encoding.
Author
Owner

This is too general, for sure. I am closing this for neatness for now but we should revisit conversions at a later time.

This is too general, for sure. I am closing this for neatness for now but we should revisit conversions at a later time.
emma closed this issue 2024-12-16 15:56:58 -07:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bonsai/harakit#47
No description provided.