Bitcoin Forum
May 08, 2024, 06:37:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Long words in SMF should use <wbr>  (Read 887 times)
mrb (OP)
Legendary
*
Offline Offline

Activity: 1512
Merit: 1027


View Profile WWW
January 23, 2013, 02:52:20 AM
 #1

SMF breaks up long words by inserting a space every 79 characters (it is a space in a <span> with a negative margin). Example: here are 120 'a' characters:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

When copying/pasting the chars, the space is visible at the 80th position, which is very annoying...

Instead, SMF should insert the standardized <wbr> tag (word break opportunity) already recognized by most browsers. In theory <wbr> is identical to U+200B (ZERO-WIDTH SPACE) but this is false; for example the current Chrome version on Linux (Version 23.0.1271.97) replaces U+200B with '#' when copying & pasting to a non-UTF8 application, whereas <wbr> is nicely invisible...
1715193460
Hero Member
*
Offline Offline

Posts: 1715193460

View Profile Personal Message (Offline)

Ignore
1715193460
Reply with quote  #2

1715193460
Report to moderator
1715193460
Hero Member
*
Offline Offline

Posts: 1715193460

View Profile Personal Message (Offline)

Ignore
1715193460
Reply with quote  #2

1715193460
Report to moderator
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715193460
Hero Member
*
Offline Offline

Posts: 1715193460

View Profile Personal Message (Offline)

Ignore
1715193460
Reply with quote  #2

1715193460
Report to moderator
1715193460
Hero Member
*
Offline Offline

Posts: 1715193460

View Profile Personal Message (Offline)

Ignore
1715193460
Reply with quote  #2

1715193460
Report to moderator
Maged
Legendary
*
Offline Offline

Activity: 1204
Merit: 1015


View Profile
January 24, 2013, 04:40:20 PM
 #2

However, it's a bitch and a half when the browser doesn't recognize it, because instead of having to find and delete a space when you copy text, you have to find and delete a character that you can't even see.

mrb (OP)
Legendary
*
Offline Offline

Activity: 1512
Merit: 1027


View Profile WWW
January 24, 2013, 04:59:48 PM
 #3

No, browsers that don't support <wbr> degrade very nicely: they act as if <wbr> was not present. No special char needs to be removed.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!