Testing forum display and formatting

For stuff that really doesn't have ANYTHING to do with Puppy
Post Reply
Message
Author
User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

Testing forum display and formatting

#1 Post by greengeek »

This is just a test of how the forum formats excess space characters and tab characters so that I can understand how best to format posts.

Test of space and tabs:

-------|
|
|
|

EDIT: note that the spaces and tabs are lost
Attachments
LooksLikeThisOriginally.jpg
(10.43 KiB) Downloaded 77 times
Last edited by greengeek on Sat 11 Apr 2020, 21:32, edited 1 time in total.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#2 Post by greengeek »

Test of color:

This text is red.
Attachments
red.jpg
(4.57 KiB) Downloaded 73 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#3 Post by greengeek »

Test of other bbCode colors
eg Lightsteelblue

Lightsteelblue

Lightsteelblue

Ok, that's quite useful as i can almost make some characters invisible
Attachments
Lightsteelblue.jpg
(13.2 KiB) Downloaded 69 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#4 Post by greengeek »

Going back to my original example:

-------|
........|
........|
........|

If I find a colour that better matches the forum blue then i should be able to make the formatting (spacer) dots disappear altogether.
Attachments
Formatting_with_Lightsteelblue_and_dots.jpg
(9.26 KiB) Downloaded 68 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#5 Post by greengeek »

Let's try "silver":

-------|
........|
........|
........|

williams2
Posts: 337
Joined: Fri 14 Dec 2018, 22:18

#6 Post by williams2 »

Using gcolor2, the forum blue is #DEE3E7

(Click the eyedropper icon then click the forum page.)

Closest color name is: Pattens Blue #D3E5EF
according to https://www.htmlcsscolor.com/hex/DEE3E7

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#7 Post by greengeek »

Thank you!
Let me give that a try:

-------|
........|
........|
........|
Attachments
PattensBlue.jpg
(6.69 KiB) Downloaded 56 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#8 Post by greengeek »

Let me try that with the hex code:

-------|
........|
........|
........|

.
Last edited by greengeek on Sat 11 Apr 2020, 21:56, edited 1 time in total.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#9 Post by greengeek »

Woohoo!! Thanks!

Now I will go back to my ascii schematic and add in the new colour and spacing characters:

Back in 5...

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#10 Post by greengeek »

Hmmm - just noticed that alternate posts are in different colours. Have to take that into account.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#11 Post by greengeek »

Ok, well here is my schematic - which would not display correctly because of the stripping of spaces and tabs. Now I have added fullstop dots as space holders.

----------
.........|........................................................----------------
.........|........................................................|...Mains......|
.........|..........+......-...........------------------.........|..Inverter....|.../---------\
"12v"...|..........-------- ..........|................|.........|------- ......|...|.........|
solar...|_________|..18v...|__________|....Highpower...|_________|.......|......|___| Aircon..|
panel...| 18v out |..store.| 18v out |....DC-DC.......| 12v out |..12v..|......|...|.........|
.........|.........|________|..........|....converter...|.........| Batt? |......|...\_________/
.........|.........(emulated)..........|................|.........|.......|......|
----------..........(battery)......... ------------------.........----------------

Not sure why it displays so badly. Looks fine in leafpad.

Never mind - next i will add color tags to hide dots and see where that gets me.
Attachments
SchematicPlusDotPlaceholders.jpg
(27.5 KiB) Downloaded 45 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#12 Post by greengeek »

Let me try this:


----------
.........|........................................................----------------
.........|........................................................|...Mains......|
.........|..........+......-...........------------------.........|..Inverter....|.../---------\
"12v"...|..........--------...........|................|.........|-------.......|...|.........|
solar...|_________|..18v...|__________|....Highpower...|_________|.......|......|___| Aircon..|
panel...| 18v out |..store | 18v out..|....DC-DC.......| 12v out |..12v..|......|...|.........|
.........|.........|________|..........|....converter...|.........| Batt? |......|...\_________/
.........|.........(emulated)..........|................|.........|.......|......|
----------..........(battery)..........------------------.........----------------

Hmmmph. Must be a difference in font kerning. Back to the drawing board.
Attachments
WithColorTags.jpg
(45.73 KiB) Downloaded 42 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#13 Post by greengeek »

Let me try that again but replacing dots with hyphens:


----------
---------|------------------------------------------------------------------------
---------|--------------------------------------------------------|---Mains------|
---------|----------+---------------------------------------------|--Inverter----|---/---------\
"12v"---|-----------------------------|----------------|---------|--------------|---|---------|
solar---|_________|--18v---|__________|----Highpower---|_________|-------|------|___| Aircon--|
panel---| 18v out |--store | 18v out--|----DC-DC-------| 12v out |--12v--|------|---|---------|
---------|---------|________|----------|----converter---|---------| Batt? |------|---\_________/
---------|---------(emulated)----------|----------------|---------|-------|------|
--------------------(battery)-----------------------------------------------------


Getting closer but no cigar yet.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#14 Post by greengeek »

----------
@@@@@@@@@|@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@----------------
@@@@@@@@@
|@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|@@@Mains@@@@@@|
@@@@@@@@@|@@@@@@@@@@+@@@@@@-@@@@@@@@@@@------------------@@@@@@@@@|@@Inverter@@@@|@@@/---------\
"12v"@@@|@@@@@@@@@@--------@@@@@@@@@@@|@@@@@@@@@@@@@@@@|@@@@@@@@@|-------@@@@@@@|@@@|@@@@@@@@@|
solar@@@|_________|@@18v@@@|__________|@@@@Highpower@@@|_________|@@@@@@@|@@@@@@|___| Aircon@@|
panel@@@| 18v out |@@store | 18v out@@|@@@@DC-DC@@@@@@@| 12v out |@@12v@@|@@@@@@|@@@|@@@@@@@@@|
@@@@@@@@@|@@@@@@@@@|________|@@@@@@@@@@|@@@@converter@@@|@@@@@@@@@| Batt? |@@@@@@|@@@\_________/
@@@@@@@@@|@@@@@@@@@(emulated)@@@@@@@@@@|@@@@@@@@@@@@@@@@|@@@@@@@@@|@@@@@@@|@@@@@@|
----------@@@@@@@@@@(battery)@@@@@@@@@@------------------@@@@@@@@@----------------

enrique
Posts: 595
Joined: Sun 10 Nov 2019, 00:10
Location: Planet Earth

#15 Post by enrique »

I know you are in the space stuff.

But characters modifiers survive in [ quote ]
Lightsteelblue

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#16 Post by MochiMoppel »

greengeek wrote:Not sure why it displays so badly. Looks fine in leafpad.
You know the difference between fixed font (in Leafpad) and proportional font (in your browser), don't you? :wink:

Use the code tag if you a want to preserve fixed character widths and whitespace

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#17 Post by greengeek »

MochiMoppel wrote:
greengeek wrote:Not sure why it displays so badly. Looks fine in leafpad.
You know the difference between fixed font (in Leafpad) and proportional font (in your browser), don't you?
Actually, no. Some research in order... :-)

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#18 Post by greengeek »

enrique wrote:I know you are in the space stuff.

But characters modifiers survive in [ quote ]
Lightsteelblue
Thanks - For some reason I am seeing a difference between my "offline" leafpad results and my "online" browser results - even if I use

Code: Select all

 tags or [quote] tags.

Especially if I view the browser results on different devices (eg Blackberry browser).

I think I have more than one issue. Need to understand best font and size selection and also understand the reasons that phpBB fora wrap text outside and inside of quote and code tags. (seems different on different browsers!)

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#19 Post by greengeek »

MochiMoppel wrote:Use the code tag if you a want to preserve fixed character widths and whitespace
Seems to work in some browsers but not on some devices/browsers (eg Blackberry phone)

Post Reply