Explore
Feeds (atom)

Text formatting on Scriffon

Some additional notes
One minute of reading 353 words – 14 June 2011
English – translation (14 June 2011)
Also available in French (français)

This writ­ing presents a few de­tails re­gard­ing au­to­mat­ic text for­mat­ting on Scri­f­fon. It’s a com­ple­ment to “Add some style to your texts”.

Text align­ment

Texts on Scri­f­fon are jus­ti­fied – all the lines have the same width.

Non-break­able spa­ces are added wher­ev­er it is need­ed. Thus, it is not pos­si­ble to see a ques­tion mark, ex­cla­ma­tion mark, a colon, etc. at the be­gin­ning of a line. The space that sep­a­rate it from the pre­vi­ous word can’t split­ted on two lines.

And a thing that we don’t see of­ten on the web: Line-wrap­ping on Scri­f­fon us­es hy­phen­ation.

Can­celling au­to­mat­ic sub­sti­tu­tions

If by chance you wish to dis­play a ver­ti­cal apos­tro­phe (') or a straight quo­ta­tion mark (") with­out it be­ing au­to­mat­i­cal­ly sub­sti­tut­ed by its ty­po­graph­ic equiv­a­lent (’ “ ”), then dou­ble it:

Two apos­tro­phes side by side '' dis­play a ver­ti­cal apos­tro­phe '
Two quotes side by side "" dis­play a straigth quote "

It’s the same for dis­play­ing an as­ter­isk (star) or an un­der­score (low dash), used re­spec­tive­ly for bold and ital­ic:

Two as­ter­isks side by side ** dis­play one as­ter­isk *
Two un­der­scores side by side __ dis­play an un­der­score _

Note: when present in­side a URL (web ad­dress), these punc­tu­a­tion marks are nev­er re­placed. URLs aren’t al­tered.

More on links and URLs

Punc­tu­a­tion marks at the end of a URL (web ad­dress) are ex­clud­ed from the link. Thus, it’s not need­ed to leave a white space af­ter an URL:

http://ex­am­ple.com/link-fol­lowed-by-a-com­ma,
http://ex­am­ple.com/link-fol­lowed-by-a-dot.

Clos­ing paren­the­ses “)” are tak­en in­to the link on­ly when a cor­re­spond­ing open­ing paren­the­sis “(” is present in the URL:

(http://ex­am­ple.com/link-in­side-paren­the­ses)
http://ex­am­ple.com/link-(with-paren­the­ses)
(http://ex­am­ple.com/link-in­side-paren­the­ses-(with-paren­the­ses))

If un­for­tu­nate­ly you have to in­clude an URL that re­al­ly ends with a dot or an­oth­er punc­tu­a­tion mark, then you must sur­round the whole with chevrons:

<http:​//ex­am­ple.com/link-that-re­al­ly-ends-with-a-dot.​>

In that case, the chevrons won’t be dis­played and the link will con­tain the dot:

http://ex­am­ple.com/link-that-re­al­ly-ends-with-a-dot.​