Alexey wrote:How indented/outdented types- work with right/center align?
pls example in monospaced fonts (type in Cuda, paste here).
Okay. A normal, indented paragraph should have the first line indented as compared to the other lines. This makes sense with left- or full-justification. With right-justification, the first line can still be indented more than the others, but that is subjective.
Left:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ultricies
sagittis orci, nec consequat dolor consequat ac. Nulla eleifend rutrum semper.
Sed fringilla, ligula eu gravida tempor, quam magna blandit dolor, quis
imperdiet sapien erat eu nibh. Nunc rutrum pulvinar nulla in facilisis.
Quisque feugiat purus in leo condimentum non congue eros consectetur. Praesent
dictum consequat nulla, bibendum rhoncus enim adipiscing et. Pellentesque mi
tellus, ornare id mattis ac, sollicitudin a erat. Maecenas sit amet vehicula
odio.
Full:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ultricies
sagittis orci, nec consequat dolor consequat ac. Nulla eleifend rutrum semper.
Sed fringilla, ligula eu gravida tempor, quam magna blandit dolor, quis
imperdiet sapien erat eu nibh. Nunc rutrum pulvinar nulla in facilisis.
Quisque feugiat purus in leo condimentum non congue eros consectetur. Praesent
dictum consequat nulla, bibendum rhoncus enim adipiscing et. Pellentesque mi
tellus, ornare id mattis ac, sollicitudin a erat. Maecenas sit amet vehicula
odio.
Right:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam
ultricies sagittis orci, nec consequat dolor consequat ac. Nulla eleifend
rutrum semper. Sed fringilla, ligula eu gravida tempor, quam magna blandit
dolor, quis imperdiet sapien erat eu nibh. Nunc rutrum pulvinar nulla in
facilisis. Quisque feugiat purus in leo condimentum non congue eros
consectetur. Praesent dictum consequat nulla, bibendum rhoncus enim adipiscing
et. Pellentesque mi tellus, ornare id mattis ac, sollicitudin a erat. Maecenas
sit amet vehicula odio.
An outdented paragraph has all lines but the first, indented as compared to the first. This makes sense with left- and full-justification, and again with right-justification is a bit subjective.
Left:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ultricies
sagittis orci, nec consequat dolor consequat ac. Nulla eleifend rutrum
semper. Sed fringilla, ligula eu gravida tempor, quam magna blandit dolor,
quis imperdiet sapien erat eu nibh. Nunc rutrum pulvinar nulla in
facilisis. Quisque feugiat purus in leo condimentum non congue eros
consectetur. Praesent dictum consequat nulla, bibendum rhoncus enim
adipiscing et. Pellentesque mi tellus, ornare id mattis ac, sollicitudin a
erat. Maecenas sit amet vehicula odio.
Full:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ultricies
sagittis orci, nec consequat dolor consequat ac. Nulla eleifend rutrum
semper. Sed fringilla, ligula eu gravida tempor, quam magna blandit dolor,
quis imperdiet sapien erat eu nibh. Nunc rutrum pulvinar nulla in
facilisis. Quisque feugiat purus in leo condimentum non congue eros
consectetur. Praesent dictum consequat nulla, bibendum rhoncus enim
adipiscing et. Pellentesque mi tellus, ornare id mattis ac, sollicitudin a
erat. Maecenas sit amet vehicula odio.
Right:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ultricies
sagittis orci, nec consequat dolor consequat ac. Nulla eleifend
rutrum semper. Sed fringilla, ligula eu gravida tempor, quam magna
blandit dolor, quis imperdiet sapien erat eu nibh. Nunc rutrum
pulvinar nulla in facilisis. Quisque feugiat purus in leo
condimentum non congue eros consectetur. Praesent dictum consequat
nulla, bibendum rhoncus enim adipiscing et. Pellentesque mi tellus,
ornare id mattis ac, sollicitudin a erat. Maecenas sit amet
vehicula odio.
In all the examples above, I have chosen an indent of five spaces, and a column width of 80. The problem with right-justification on indented/outdented paragraphs is that the first-line indent does not necessarily match the author-chosen indent. So, the algorithm should ensure that the indent is at a minimum, the chosen indent, and may be more as necessary for the chosen alignment.
Alternatively, the algorithm can simply disallow right-justification with indented/outdented paragraphs.
With block-indented right-justification, the first line is no different than the other lines; so the algorithm simply ensures that every line has a minimum of the chosen amount of indentation:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ultricies
sagittis orci, nec consequat dolor consequat ac. Nulla eleifend rutrum
semper. Sed fringilla, ligula eu gravida tempor, quam magna blandit dolor,
quis imperdiet sapien erat eu nibh. Nunc rutrum pulvinar nulla in
facilisis. Quisque feugiat purus in leo condimentum non congue eros
consectetur. Praesent dictum consequat nulla, bibendum rhoncus enim
adipiscing et. Pellentesque mi tellus, ornare id mattis ac, sollicitudin a
erat. Maecenas sit amet vehicula odio.
With center-justification, neither indented- nor outdented-pargraphs make any sense, since the objective is to have each line centered:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ultricies
sagittis orci, nec consequat dolor consequat ac. Nulla eleifend rutrum semper.
Sed fringilla, ligula eu gravida tempor, quam magna blandit dolor, quis
imperdiet sapien erat eu nibh. Nunc rutrum pulvinar nulla in facilisis.
Quisque feugiat purus in leo condimentum non congue eros consectetur. Praesent
dictum consequat nulla, bibendum rhoncus enim adipiscing et. Pellentesque mi
tellus, ornare id mattis ac, sollicitudin a erat. Maecenas sit amet vehicula
odio.
Center-justification is also fine with a block-indented paragraph:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ultricies
sagittis orci, nec consequat dolor consequat ac. Nulla eleifend rutrum
semper. Sed fringilla, ligula eu gravida tempor, quam magna blandit dolor,
quis imperdiet sapien erat eu nibh. Nunc rutrum pulvinar nulla in
facilisis. Quisque feugiat purus in leo condimentum non congue eros
consectetur. Praesent dictum consequat nulla, bibendum rhoncus enim
adipiscing et. Pellentesque mi tellus, ornare id mattis ac, sollicitudin a
erat. Maecenas sit amet vehicula odio.
There is still another paragraph formatting option, a variation on the block-indent which some call quoted-block, in which the paragraph is indented from both the left
and right margins. This works fine with center-justification:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam
ultricies sagittis orci, nec consequat dolor consequat ac. Nulla
eleifend rutrum semper. Sed fringilla, ligula eu gravida tempor, quam
magna blandit dolor, quis imperdiet sapien erat eu nibh. Nunc rutrum
pulvinar nulla in facilisis. Quisque feugiat purus in leo condimentum
non congue eros consectetur. Praesent dictum consequat nulla,
bibendum rhoncus enim adipiscing et. Pellentesque mi tellus, ornare
id mattis ac, sollicitudin a erat. Maecenas sit amet vehicula odio.
With left-justification:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam
ultricies sagittis orci, nec consequat dolor consequat ac. Nulla
eleifend rutrum semper. Sed fringilla, ligula eu gravida tempor, quam
magna blandit dolor, quis imperdiet sapien erat eu nibh. Nunc rutrum
pulvinar nulla in facilisis. Quisque feugiat purus in leo condimentum
non congue eros consectetur. Praesent dictum consequat nulla,
bibendum rhoncus enim adipiscing et. Pellentesque mi tellus, ornare
id mattis ac, sollicitudin a erat. Maecenas sit amet vehicula odio.
Also with right-justification:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam
ultricies sagittis orci, nec consequat dolor consequat ac. Nulla
eleifend rutrum semper. Sed fringilla, ligula eu gravida tempor, quam
magna blandit dolor, quis imperdiet sapien erat eu nibh. Nunc rutrum
pulvinar nulla in facilisis. Quisque feugiat purus in leo condimentum
non congue eros consectetur. Praesent dictum consequat nulla,
bibendum rhoncus enim adipiscing et. Pellentesque mi tellus, ornare
id mattis ac, sollicitudin a erat. Maecenas sit amet vehicula odio.
And of course, with full-justification:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam
ultricies sagittis orci, nec consequat dolor consequat ac. Nulla
eleifend rutrum semper. Sed fringilla, ligula eu gravida tempor, quam
magna blandit dolor, quis imperdiet sapien erat eu nibh. Nunc rutrum
pulvinar nulla in facilisis. Quisque feugiat purus in leo condimentum
non congue eros consectetur. Praesent dictum consequat nulla,
bibendum rhoncus enim adipiscing et. Pellentesque mi tellus, ornare
id mattis ac, sollicitudin a erat. Maecenas sit amet vehicula odio.
With any full-justification, the algorithm would pad each line with additional spaces as required, to make every line the required length. For each paragraph, a typical algorithm would start at the right end of odd-numbered lines, and at the left end of even-numbered lines (that is, odd- or even-numbered
within the paragraph, not absolute line numbers), and would insert one space before the first word, then one space before the next word, until the required length is reached; or if the end of the line is reached first, then go back and add an additional space before each word to reach required length. The reason for starting at different ends, is so that the additional white-space is more evenly distributed, giving a more balanced appearance.
Other variations are possible, such as indented/outdented block or quote-block paragraphs. How many variations to implement is up to you.
Frankly, I don't think that I ever use right-justification, nor out-dented paragraphs (though some people do). But left-and full-justification with indented, and with block-indented/quoted-block (with or without a first-line indent) seem to me to be most important, followed by center-justification.
What do you and others think?