在< PRE>中使用LineDraw字符很简单吗?模式? [英] Is it simple to use LineDraw characters in <PRE> mode?

查看:39
本文介绍了在< PRE>中使用LineDraw字符很简单吗?模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在准备修改我的Magic Squares页面,目前

显示这种形式的魔术方格:


+ --- + --- + --- + --- + --- + --- + --- + --- + --- + --- + --- +

| 68 | 81 | 94 | 107 | 120 | 1 | 14 | 27 | 40 | 53 | 66 |

+ --- + --- + --- + --- + --- + --- + --- + --- + --- + --- + --- +

| 80 | 93 | 106 | 119 | 11 | 13 | 26 | 39 | 52 | 65 | 67 |

+ --- + --- + --- + --- + --- + --- + --- + --- + --- + --- + --- +

| 92 | 105 | 118 | 10 | 12 | 25 | 38 | 51 | 64 | 77 | 79 |

+ --- + --- + --- + --- + --- + --- + --- + --- + --- + --- + --- +

| 104 | 117 | 9 | 22 | 24 | 37 | 50 | 63 | 76 | 78 | 91 |

+ --- + --- + --- + --- + --- + --- + --- + --- + --- + --- + --- +

| 116 | 8 | 21 | 23 | 36 | 49 | 62 | 75 | 88 | 90 | 103 |

+ --- + --- + --- + --- + --- + --- + --- + --- + --- + - - + --- +

| 7 | 20 | 33 | 35 | 48 | 61 | 74 | 87 | 89 | 102 | 115 |

+ --- + --- + --- + --- + --- + --- + --- + --- + --- + --- + --- +

| 19 | 32 | 34 | 47 | 60 | 73 | 86 | 99 | 101 | 114 | 6 |

+ --- + --- + --- + --- + --- + --- + --- + --- + --- + --- + --- +

| 31 | 44 | 46 | 59 | 72 | 85 | 98 | 100 | 113 | 5 | 18 |

+ --- + --- + --- + --- + --- + --- + --- + --- + --- + --- + --- +

| 43 | 45 | 58 | 71 | 84 | 97 | 110 | 112 | 4 | 17 | 30 |

+ --- + --- + --- + --- + --- + --- + --- + --- + --- + --- + --- +

| 55 | 57 | 70 | 83 | 96 | 109 | 111 | 3 | 16 | 29 | 42 |

+ --- + --- + --- + --- + --- + --- + --- + --- + --- + --- + --- +

| 56 | 69 | 82 | 95 | 108 | 121 | 2 | 15 | 28 | 41 | 54 |

+ --- + --- + --- + --- + --- + --- + --- + --- + --- + --- + --- +


我是否可以使用相当于MS LineDraw

的字符,这样线条就可以是实心的和角落看起来好像

喜欢角落?


理想情况下,我想用一种字体做整个魔术方,一个是
$ b每个位置$ b个字符。每次尝试使用五个字符拼出一个&

代码会增加页面的大小。


感谢您的帮助。


John

I''m getting ready to revamp my Magic Squares pages, which currently
show the magic squares in this form:

+---+---+---+---+---+---+---+---+---+---+---+
| 68| 81| 94|107|120| 1 | 14| 27| 40| 53| 66|
+---+---+---+---+---+---+---+---+---+---+---+
| 80| 93|106|119| 11| 13| 26| 39| 52| 65| 67|
+---+---+---+---+---+---+---+---+---+---+---+
| 92|105|118| 10| 12| 25| 38| 51| 64| 77| 79|
+---+---+---+---+---+---+---+---+---+---+---+
|104|117| 9 | 22| 24| 37| 50| 63| 76| 78| 91|
+---+---+---+---+---+---+---+---+---+---+---+
|116| 8 | 21| 23| 36| 49| 62| 75| 88| 90|103|
+---+---+---+---+---+---+---+---+---+---+---+
| 7 | 20| 33| 35| 48| 61| 74| 87| 89|102|115|
+---+---+---+---+---+---+---+---+---+---+---+
| 19| 32| 34| 47| 60| 73| 86| 99|101|114| 6 |
+---+---+---+---+---+---+---+---+---+---+---+
| 31| 44| 46| 59| 72| 85| 98|100|113| 5 | 18|
+---+---+---+---+---+---+---+---+---+---+---+
| 43| 45| 58| 71| 84| 97|110|112| 4 | 17| 30|
+---+---+---+---+---+---+---+---+---+---+---+
| 55| 57| 70| 83| 96|109|111| 3 | 16| 29| 42|
+---+---+---+---+---+---+---+---+---+---+---+
| 56| 69| 82| 95|108|121| 2 | 15| 28| 41| 54|
+---+---+---+---+---+---+---+---+---+---+---+

Would it be possible for me to use the equivalent of the MS LineDraw
characters so that the lines would be solid and the corners would look
like corners?

Ideally, I''d like to do the entire magic square in one font, with one
character per position. Trying to use five characters to spell out an &
code each time would increase the size of the page too much.

Thanks for any help.

John

推荐答案

2005年8月13日18:21:47 -0700," ;约翰" < Go ****************** @ gmail.com>

写道:
On 13 Aug 2005 18:21:47 -0700, "John" <Go******************@gmail.com>
wrote:
会不会我可以使用相当于MS LineDraw
的字符,这样线条就会变得坚固,角落看起来像角落一样吗?
Would it be possible for me to use the equivalent of the MS LineDraw
characters so that the lines would be solid and the corners would look
like corners?




为什么不使用桌子呢?



Why not use a table?


我想到了这一点,但当我到达31x31魔方或

a 49x49魔法时方块,我在想所有表格的开销将会大大增加html的大小。


一张31x31的表格会增加[ TD]和[/ TD] 961次,[TR]和[/ TR] 31

次。这是9K大,不计算中心的额外角色

文本等等。


这就是我喜欢的原因尝试使用带有字符的字符,如果它是可行的。


但是我可能会决定用表来试试看它的外观。我估计我仍然有这种拨号心态(我在阿肯色州的农村,所以我是少数仍然使用拨号的b $ b因为宽带不可用

这里,即使我们和WalMart总部在同一个县。


John

I thought about that, but by the time I get to a 31x31 magic square or
a 49x49 magic square, I''m thinking that the overhead of all the table
cells will increase the size of the html tremendously.

A 31x31 table would add [TD] and [/TD] 961 times and [TR] and [/TR] 31
times. That''s 9K larger, not counting the extra characters to center
the text, etc.

That''s why I''d love to experiment with the linedraw characters if it''s
workable.

But I might decide to try it with tables just to see how it looks. I
guess I still have this dialup mentality (I''m in rural Arkansas, so I''m
in the minority still using dialup because broadband in not available
here yet, even if we''re in the same county as WalMart HQ.

John

< br>

2005年8月13日21:32:10 -0700,John< Go ****************** @ gmail.com>写道:
On 13 Aug 2005 21:32:10 -0700, "John" <Go******************@gmail.com> wrote:
我想到了这一点,但当我到达一个31x31魔方或一个49x49魔方时,我在想所有桌子的开销
单元格会极大地增加html的大小。

一个31x31的表会增加[TD]和[/ TD] 961次,[TR]和[/ TR] 31 时间。这是9K大,不计算额外的字符居中
文本等等

这就是为什么我喜欢尝试使用带有字符的字符如果它是可行的。


不要以为你能做到这一点,使用线条绘制字符,希捷做,

访问他们的网站,看看他们告诉你什么,用户需要下载

并安装字体。
但是我可能会决定用表来试试看它的样子。我
I thought about that, but by the time I get to a 31x31 magic square or
a 49x49 magic square, I''m thinking that the overhead of all the table
cells will increase the size of the html tremendously.

A 31x31 table would add [TD] and [/TD] 961 times and [TR] and [/TR] 31
times. That''s 9K larger, not counting the extra characters to center
the text, etc.

That''s why I''d love to experiment with the linedraw characters if it''s
workable.
Don''t think you can do that, use line draw characters, Seagate do,
visit their site and see what they tell you, user needs to download
and install a font.
But I might decide to try it with tables just to see how it looks. I




您可以使用表格,如果下载时间困扰您,可以尝试在

javascript中生成表格代码。你现在可能会使用

某种脚本来制作表格吗?


更现代的方法是使用CSS,如果MSIE将

虽然在那个上与你合作。


我很懒,用过< pre>和| - + charset :)给我lyx可读表:

http://bugsplatter.mine.nu/test/linux-2.4/

干杯,

格兰特。



You can do it with tables, perhaps try generate table code in
javascript if the download time bother you. You probably use
some sort of script to make the table now?

A more modern approach would be to use CSS, dunno if MSIE would
cooperate with you on that one though.

I''m lazy, used <pre> and |-+ charset :) Gives me lynx readable table:

http://bugsplatter.mine.nu/test/linux-2.4/

Cheers,
Grant.


这篇关于在&lt; PRE&gt;中使用LineDraw字符很简单吗?模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆