Columnizer-jQuery-Plugin icon indicating copy to clipboard operation
Columnizer-jQuery-Plugin copied to clipboard

Usability on text splitting (suggestion)

Open chrisgraham opened this issue 12 years ago • 0 comments

If some text is split mid-paragraph/mid-sentence, it is a nice little touch to add an "mdash" entity at the split point, to make it clear to the reader what has happened.

Columns aren't usual for websites, so pulling out this traditional typographical trick works well to hint to the user what is going on, so they don't need to think.

                var partsUsed = 0;
                while($parentColumn.height() < height && oText.length != 0){
                    ...
                    partsUsed++;
                    ...
                }

                if($parentColumn.height() >= height && latestTextNode != null){
                    ...
                    partsUsed--;
                }
                if(oText.length){
                    ...
                    if (partsUsed != 0)
                    {
                        latestTextNode = document.createTextNode(' \u2014');
                        $putInHere.append(latestTextNode);
                    }

chrisgraham avatar Jan 25 '12 03:01 chrisgraham