Maker Pro
Maker Pro

Viewing circuits in mono-spaced-font

I

Ivan Vegvary

Jan 1, 1970
0
Circuits are posted here (much appreciated) suggesting the use of mono-spaced-font for viewing. I've tried cut/paste into OpenOffice and then using a mono-font. Doesn't seem to work. Is there a way to use mono-font in Google Chrome?

Suggestions appreciated.
Ivan Vegvary
 
J

Jon Kirwan

Jan 1, 1970
0
Circuits are posted here (much appreciated) suggesting the
use of mono-spaced-font for viewing. I've tried cut/paste
into OpenOffice and then using a mono-font. Doesn't seem to
work. Is there a way to use mono-font in Google Chrome?

Suggestions appreciated.
Ivan Vegvary

There are lots of great programs. One is PSPAD, which is a
very simple, uncomplicated program editor. And free. But you
can use NotePad, if you are using Windows. Select all the
text and go to the Format edit menu and select Font... under
that. Then select the Courier New font.

In the olden days, fixed spaced fonts (on type balls, for
example) included only three: Courier, Letter Gothic, and
Prestige Elite. These days on PC computers you can add
Courier New, Lucida Console, FixedSys, and probably anything
with "mono" in its name.

For google chrome, see this page to start:

http://support.google.com/chrome/bin/answer.py?hl=en&answer=95416

It covers everything you can do with Chrome, I think.

Jon
 
J

Jon Kirwan

Jan 1, 1970
0
There are lots of great programs. One is PSPAD, which is a
very simple, uncomplicated program editor. And free. But you
can use NotePad, if you are using Windows. Select all the
text and go to the Format edit menu and select Font... under
that. Then select the Courier New font.

In the olden days, fixed spaced fonts (on type balls, for
example) included only three: Courier, Letter Gothic, and
Prestige Elite. These days on PC computers you can add
Courier New, Lucida Console, FixedSys, and probably anything
with "mono" in its name.

For google chrome, see this page to start:

http://support.google.com/chrome/bin/answer.py?hl=en&answer=95416

It covers everything you can do with Chrome, I think.

However, I think you will have to "mess up" all your web
pages to get there with Chrome, by forcing the default to be
fixed (mono) spaced fonts.

Here is an example to try. It's a degenerative amp with a
bootstrap that I'd designed and tried out some years ago:

Vcc
|
|
| Vcc Vcc
| | |
--- | |
- V1 | |
--- 9 \ \
- / R3 / R2
| \ 47k \ 22k
| / /
| | |
| | |
| | +---------> Vout
gnd C1 | |
|| 10u | |
,------||--------------------------, |
| || | | |
| | R6 | |/c Q1
| +---------/\/\----+----| 2N2222
| | 150k |>e
| | |
| | C3 |
| | || .033u +---------,
| +--------------||--------+ |
--- | || | |
- V2 \ \ \
--- 5kHz / R4 / R1 / R5
- .02V p-p \ 10k \ 4.7k \ 1.2k
| / / /
| | | |
| | | |
gnd | | --- C2
| | --- 2.2u
| | |
gnd gnd |
gnd

If you get your fonts right, it should look okay to you.

Jon
 
D

Daniel Pitts

Jan 1, 1970
0
However, I think you will have to "mess up" all your web
pages to get there with Chrome, by forcing the default to be
fixed (mono) spaced fonts.

Here is an example to try. It's a degenerative amp with a
bootstrap that I'd designed and tried out some years ago:

Vcc
|
|
| Vcc Vcc
| | |
--- | |
- V1 | |
--- 9 \ \
- / R3 / R2
| \ 47k \ 22k
| / /
| | |
| | |
| | +---------> Vout
gnd C1 | |
|| 10u | |
,------||--------------------------, |
| || | | |
| | R6 | |/c Q1
| +---------/\/\----+----| 2N2222
| | 150k |>e
| | |
| | C3 |
| | || .033u +---------,
| +--------------||--------+ |
--- | || | |
- V2 \ \ \
--- 5kHz / R4 / R1 / R5
- .02V p-p \ 10k \ 4.7k \ 1.2k
| / / /
| | | |
| | | |
gnd | | --- C2
| | --- 2.2u
| | |
gnd gnd |
gnd

If you get your fonts right, it should look okay to you.

Jon
I use Thunderbird to access newsgroups, and that renders just fine for me.
 
J

Jon Kirwan

Jan 1, 1970
0
I use Thunderbird to access newsgroups, and that renders just fine for me.

Just as a note, that ASCII diagram didn't exist until a
little over an hour ago. I produced it using a program I have
that accepts LTspice .ASC files and generates ASCII from
them. So I just popped it in, copied the output into the
paste buffer, and pasted it into the post text and sent it.

Jon
 
J

Jasen Betts

Jan 1, 1970
0
Circuits are posted here (much appreciated) suggesting the use of mono-spaced-font for viewing. I've tried cut/paste into OpenOffice and then using a mono-font. Doesn't seem to work. Is there a way to use mono-font in Google Chrome?

it's real easy, there's three steps.

1: use the old google groups

when you find a diagram to read.

2: click more options
3: click view original


The new google groups has no eqivalent and there appers to be no place
to post complaints about it. If this continues by the next version it
will be unusable eye-candy. I suggest you look for an alternative.
 
M

Mark Zenier

Jan 1, 1970
0
Circuits are posted here (much appreciated) suggesting the use of
mono-spaced-font for viewing. I've tried cut/paste into OpenOffice and
then using a mono-font. Doesn't seem to work. Is there a way to use
mono-font in Google Chrome?

Try adjusting the tab character's column alignment to match what the
circuits's creator used. Computer geeks and business use different
"standards".

ASCII circuits should use strings of blanks instead of tabs, but I
suspect those get messed with when posting or reading through websites
or by the browsers' text editing software.

Mark Zenier [email protected]
Googleproofaddress(account:mzenier provider:eskimo domain:com)
 
M

Michael Robinson

Jan 1, 1970
0
Jon Kirwan said:
Just as a note, that ASCII diagram didn't exist until a
little over an hour ago. I produced it using a program I have
that accepts LTspice .ASC files and generates ASCII from
them. So I just popped it in, copied the output into the
paste buffer, and pasted it into the post text and sent it.

Jon

Jonathan, I would like to get a copy of that program. Can you post a link
or something?
 
T

Tolstoy

Jan 1, 1970
0
Just as a note, that ASCII diagram didn't exist until a

little over an hour ago. I produced it using a program I have

that accepts LTspice .ASC files and generates ASCII from

them. So I just popped it in, copied the output into the

paste buffer, and pasted it into the post text and sent it.



Jon

I would like to use that program. Do you have a link you could post?
 
J

Jon Kirwan

Jan 1, 1970
0
I would like to use that program. Do you have a link you could post?

I need to update it for "modern" Windows 7, 64-bit. I
currently run it under a WinXP VM under Windows 7, because I
wrote it for a 16-bit C compiler (Microsoft VC++ 1.52c, the
last 16-bit C compiler they ever made available to the
public.)

If you are willing to run it under a 32-bit O/S and don't
mind a DOS box execution environment (and the use of DIR/X in
order to get the 8.3 filename required as its input), then
sure. I could send it along. You can even extend or modify
its ASCII symbol library, too, with NOTEPAD. It's not hard.

Let me know if all that is okay. If so, I'll provide a link.

Jon
 
T

Tolstoy

Jan 1, 1970
0
I need to update it for "modern" Windows 7, 64-bit. I

currently run it under a WinXP VM under Windows 7, because I

wrote it for a 16-bit C compiler (Microsoft VC++ 1.52c, the

last 16-bit C compiler they ever made available to the

public.)



If you are willing to run it under a 32-bit O/S and don't

mind a DOS box execution environment (and the use of DIR/X in

order to get the 8.3 filename required as its input), then

sure. I could send it along. You can even extend or modify

its ASCII symbol library, too, with NOTEPAD. It's not hard.



Let me know if all that is okay. If so, I'll provide a link.



Jon

Yes, I'd like to try it. I have a 32-bit computer with WinXP.
 
J

Jon Kirwan

Jan 1, 1970
0
Yes, I'd like to try it. I have a 32-bit computer with WinXP.

http://www.infinitefactors.org/misc/asc32.zip

There is another version at:

http://www.infinitefactors.org/misc/asc16.zip

The first one I just recompiled under Visual Studio 2012
Professional in Release mode. This was under Win7 64-bit. I
then tested this console32 application under a WinXP VM and
it seems to work and it seems to accept long file names, as
well (quoted, if they have spaces in them, of course.)

The second one is the old version compiled under 1.52c, which
is the last 16-bit C compiler that Microsoft made. It does
not accept long file names. So you need to use DIR/X first to
see the short names that it will accept (8.3).

In either case, make certain that ASC.EXE and ASC.SYM are in
the same directory. Easiest would be to just put both of them
into the LTspice directory where you keep the .ASC files.

Hopefully, you will find them useful. There is much more
work to be done. I need to expand the ASC.SYM file. But it is
NOTEPAD editable and you can edit it if you want to add more
ASCII equivalents (or modify the existing ones.)

I have already started a project that will automatically read
up the symbol files of LTspice and, through a somewhat
complex algorithm, "figure out" ASCII characters to use in
drawing symbols. I think I can get close enough to what a
human would do that it will be acceptable. The idea would
then be to allow the ASC.SYM file to override the automatic
generation from symbol graphic files, but if the ASC.SYM file
doesn't include an override, then the automatic process would
take over and give it a reasonable shot.

Jon
 
J

Jon Kirwan

Jan 1, 1970
0
Jonathan, I would like to get a copy of that program. Can you post a link
or something?

http://www.infinitefactors.org/misc/asc32.zip

There is another version at:

http://www.infinitefactors.org/misc/asc16.zip

The first one I just recompiled under Visual Studio 2012
Professional in Release mode. This was under Win7 64-bit. I
then tested this console32 application under a WinXP VM and
it seems to work and it seems to accept long file names, as
well (quoted, if they have spaces in them, of course.)

The second one is the old version compiled under 1.52c, which
is the last 16-bit C compiler that Microsoft made. It does
not accept long file names. So you need to use DIR/X first to
see the short names that it will accept (8.3).

In either case, make certain that ASC.EXE and ASC.SYM are in
the same directory. Easiest would be to just put both of them
into the LTspice directory where you keep the .ASC files.

Hopefully, you will find them useful. There is much more
work to be done. I need to expand the ASC.SYM file. But it is
NOTEPAD editable and you can edit it if you want to add more
ASCII equivalents (or modify the existing ones.)

I have already started a project that will automatically read
up the symbol files of LTspice and, through a somewhat
complex algorithm, "figure out" ASCII characters to use in
drawing symbols. I think I can get close enough to what a
human would do that it will be acceptable. The idea would
then be to allow the ASC.SYM file to override the automatic
generation from symbol graphic files, but if the ASC.SYM file
doesn't include an override, then the automatic process would
take over and give it a reasonable shot.

Jon
 
J

Jasen Betts

Jan 1, 1970
0

the ms-dos version runs just fine under linux dosemu (and slightly
slower under wine) wine. the PE32 version also works under wine.

here's a patch to make it compile and work the same under linux.
(it should probably work slightly differently under linux.)

I have tried to break as few rules as possible without massive rewrites.
Also I haven't implemented any of the clipboard stuff, so that stuff
is all jut stubs.


$ diff ASC.C ASC.c
308c308,312
<
---
#ifdef __unix__
#include <strings.h>
#define _strnicmp(a,b,n) strncasecmp(a,b,n)
#else
#endif 326a331,347
#ifndef __max
# define max(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; })
#else
# define max(a,b) __max(a,b)
#endif

#ifndef __min
# define min(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a <= _b ? _a : _b; })
#else
# define min(a,b) __min(a,b)
#endif 569a591
#ifndef __unix__ 591a614,619
#else
auto const char *p=strrchr(s,'/');
p = p ? p + 1 : s ;
return strdup(p);
#endif
603a632
#ifndef __unix__ 623a653,672
#else
auto char *r,*p,*in=strdup(fdir);
auto char *n=strrchr(in,'/'); // last slash
auto char *e=strchr(n?n:in,'.'); // first
auto const char *rn,*re;


p=in;
n=strrchr(in,'/'); // last slash
if (*n){ *n=0; ++n; }else { n=p; p=".";};
e=strchr(n,'.'); // first dot
if (*e){ *e=0; ++e; } else e="";
if (fname) rn=fname ; else rn=n;
if (fext) re=fext ; else re=e;

r=malloc(strlen(p)+strlen(rn)+strlen(re)+3);
sprintf(r,"%s/%s.%s",p,rn,re);

return r;
#endif
806,809c855,858
< *xmin= __min( __min( *xmin, x1 ), x2 );
< *xmax= __max( __max( *xmax, x1 ), x2 );
< *ymin= __min( __min( *ymin, y1 ), y2 );
< *ymax= __max( __max( *ymax, y1 ), y2 );
---
*xmin= min( min( *xmin, x1 ), x2 );
*xmax= max( max( *xmax, x1 ), x2 );
*ymin= min( min( *ymin, y1 ), y2 );
*ymax= max( max( *ymax, y1 ), y2 );
824,827c873,876
< *xmin= __min( *xmin, x );
< *xmax= __max( *xmax, x );
< *ymin= __min( *ymin, y );
< *ymax= __max( *ymax, y );
---
*xmin= min( *xmin, x );
*xmax= max( *xmax, x );
*ymin= min( *ymin, y );
*ymax= max( *ymax, y );
858,861c907,910
< *xmin= __min( *xmin, x );
< *xmax= __max( *xmax, x );
< *ymin= __min( *ymin, y );
< *ymax= __max( *ymax, y );
---
*xmin= min( *xmin, x );
*xmax= max( *xmax, x );
*ymin= min( *ymin, y );
*ymax= max( *ymax, y );
880,883c929,932
< *xmin= __min( *xmin, x );
< *xmax= __max( *xmax, x );
< *ymin= __min( *ymin, y );
< *ymax= __max( *ymax, y );
---
*xmin= min( *xmin, x );
*xmax= max( *xmax, x );
*ymin= min( *ymin, y );
*ymax= max( *ymax, y );
900,903c949,952
< *xmin= __min( __min( *xmin, ulx ), lrx );
< *xmax= __max( __max( *xmax, ulx ), lrx );
< *ymin= __min( __min( *ymin, uly ), lry );
< *ymax= __max( __max( *ymax, uly ), lry );
---
 
J

Jon Kirwan

Jan 1, 1970
0
the ms-dos version runs just fine under linux dosemu (and slightly
slower under wine) wine. the PE32 version also works under wine.

here's a patch to make it compile and work the same under linux.
(it should probably work slightly differently under linux.)

I have tried to break as few rules as possible without massive rewrites.
Also I haven't implemented any of the clipboard stuff, so that stuff
is all jut stubs.


$ diff ASC.C ASC.c
308c308,312
<
---
806,809c855,858
< *xmin= __min( __min( *xmin, x1 ), x2 );
< *xmax= __max( __max( *xmax, x1 ), x2 );
< *ymin= __min( __min( *ymin, y1 ), y2 );
< *ymax= __max( __max( *ymax, y1 ), y2 );
---
824,827c873,876
< *xmin= __min( *xmin, x );
< *xmax= __max( *xmax, x );
< *ymin= __min( *ymin, y );
< *ymax= __max( *ymax, y );
---
858,861c907,910
< *xmin= __min( *xmin, x );
< *xmax= __max( *xmax, x );
< *ymin= __min( *ymin, y );
< *ymax= __max( *ymax, y );
---
880,883c929,932
< *xmin= __min( *xmin, x );
< *xmax= __max( *xmax, x );
< *ymin= __min( *ymin, y );
< *ymax= __max( *ymax, y );
---
900,903c949,952
< *xmin= __min( __min( *xmin, ulx ), lrx );
< *xmax= __max( __max( *xmax, ulx ), lrx );
< *ymin= __min( __min( *ymin, uly ), lry );
< *ymax= __max( __max( *ymax, uly ), lry );
---

I'll look it over, thanks.

Jon
 
Top