mIRC Home    About    Download    Register    News    Help

Print Thread
#61009 18/11/03 11:22 PM
Joined: Jan 2003
Posts: 23
P
Pomax Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Jan 2003
Posts: 23
is there any way at all to pad a line with spaces ($chr(32)) outside of the window editbox? I need to add single-space pads to strings of japanese for a proper alignment in a two-line context, and the fontset does not allow for the use of the non-breaking space (it's a big fat black block instead of nothing so that's no go).

as an example, it needs to be able to do for instance this

<line1> word
<line2> word word word word

there's a particular double byte code for japanese spaces (which render correctly) but that leaves a very nasty alignement if two word are of unequal length by a single twin-byte value. instead it would be perfect to simply add 1 space to the longer word and align the two words using half the width of multibyte characters.

problem is mirc uses $chr(32) internally for parameter tokenisation for passing to aliasses and functions, and I sort of need to get around that or this will just keep looking ugly =/

Last edited by Pomax; 18/11/03 11:32 PM.
#61010 19/11/03 06:40 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Maybe the $chr(160) ?


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#61011 19/11/03 01:20 PM
Joined: Jan 2003
Posts: 23
P
Pomax Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Jan 2003
Posts: 23
that would work, were it not that annoyingly $chr(160) is not a space in the japanese version of fixedsys, but a black square.

#61012 19/11/03 02:15 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
You can add a pair of CTRL+B after every space, for example: //echo $str($chr(32) $str($chr(2),2),10) word

#61013 01/12/03 11:16 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Also, did you try $chr(255)? It's a non-breaking space in high-ASCII fonts (I don't know if this has anything to do with the matter, but you might want to give it a try).


* cold edits his posts 24/7

Link Copied to Clipboard