(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 26 Oct 2020, 15:45
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Creating an ASCII table
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Author Message
rufwoof


Joined: 24 Feb 2014
Posts: 3725

PostPosted: Mon 07 Oct 2019, 10:28    Post subject:  

MochiMoppel wrote:
@rufwoof: "aspell is in /sbin"? Shocked Are you sure you mean the directory aspell and not the executable file with the same name?

Directory/folder for aspell is /usr/lib/aspell-0.60/

There's also a aspell file in /usr/bin, that has the exact same filesize as the one in /sbin.

_________________
( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb

echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 1352

PostPosted: Mon 07 Oct 2019, 17:55    Post subject:  

MochiMoppel wrote:
> I hope that this script works in all Puppies

It works in Fatdog64, with the caveat that iconv prints some weird character in front of the good one, see the screenshot. Btw, the script requires gawk due to strtonum not being POSIX awk.
codepage-20191007-001.png
 Description   
 Filesize   39.94 KB
 Viewed   417 Time(s)

codepage-20191007-001.png


_________________
Fatdog64-810|+Packages|Kodi|gtkmenuplus
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 2084
Location: Japan

PostPosted: Mon 07 Oct 2019, 21:41    Post subject:  

Not only does your iconv print weird characters (┬ U+252C and ├ U+251C) in front of the good ones, it even stops printing good ones. Starting with dec 192 it stops printing BOX DRAWINGS and prints what should start with dec 80 (see my previous screenshot).
What happens when you use the iconv command of the first script (CP1252) and leave the rest as is? Should produce wrong names but good characters. I'm using iconv (GNU libc) 2.15

Thanks for mentioning the gawk requirement. Here awk is symlinked to gawk so I would never notice.
Back to top
View user's profile Send private message 
some1

Joined: 17 Jan 2013
Posts: 123

PostPosted: Tue 08 Oct 2019, 08:08    Post subject:  

Just a hunch/idea reading the latest posts.
1. set LC_ALL=C gawk
2. check the manual about (s)printf %c
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 2084
Location: Japan

PostPosted: Tue 08 Oct 2019, 11:00    Post subject:  

some1 wrote:

1. set LC_ALL=C gawk

Oh yes, sorry. Forgot that in the second script (it's in the first and that made it work for step).

The reason for using LC_ALL=C: gawk 4.1.4 or newer requires the -b option (--characters-as-bytes) when printing extended ASCII. Older gawks (like mine) don't need and know such option and produce a syntax error when it is used.
LC_ALL=C comes to the rescue and removes the need for an option.

I edited the script. Should work now. Thanks for your reminder.
Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 1352

PostPosted: Fri 11 Oct 2019, 17:24    Post subject:  

Confirmed working on Fatdog64 - chars 000 through 255. Thanks.
_________________
Fatdog64-810|+Packages|Kodi|gtkmenuplus
Back to top
View user's profile Send private message 
mfb

Joined: 22 Mar 2016
Posts: 94

PostPosted: Sun 13 Oct 2019, 04:37    Post subject:  

Yesterday I sent MochiMoppel a PM thanking him for his scripts «which work well here», but admitting my ignorance and seeking his help on how and where to make use of them.

Here is the important extract from his most helpful reply:
Quote:
If you need to enter it with your keyboard you should use its Unicode codepoint. Press Ctrl+Shift+U00a3 and then Enter.
Not all browsers support Unicode input, but most do.


I tried quite a few (not 00A3) in abiword, to good effect - thanks again MochiMoppel (especially as you may be affected by the typhoon).
snap(1).jpg
 Description   
 Filesize   23.79 KB
 Viewed   361 Time(s)

snap(1).jpg

Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 2084
Location: Japan

PostPosted: Mon 14 Oct 2019, 08:08    Post subject:  

step wrote:
Confirmed working on Fatdog64
Thanks. I'm relieved that it passed Puppy's acid test Laughing

mfb wrote:
I tried quite a few (not 00A3) in abiword, to good effect
Works also in leafpad. Abiword's "Insert Symbol" dialog can be useful to generate Unicode characters that are not on your keyboard but it won't give you the codepoints.

mfb wrote:
you may be affected by the typhoon
Thanks for your concerns. When even the convenience stores close you know it will be bad. It was windy, wet and scary but fortunately, apart from uprooted trees, no major damages here.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1336s ][ Queries: 13 (0.0715s) ][ GZIP on ]