Difference between revisions of "User:Le Forgeron/galley"
Jump to navigation
Jump to search
Le Forgeron (talk | contribs) (creation of page) |
Le Forgeron (talk | contribs) (→Galley) |
||
(One intermediate revision by the same user not shown) | |||
Line 21: | Line 21: | ||
GALLEY_MODIFIERS= ( thickness FLOAT | width FLOAT | leading FLOAT | spacing FLOAT | indentation FLOAT | wrap BOOL )* | GALLEY_MODIFIERS= ( thickness FLOAT | width FLOAT | leading FLOAT | spacing FLOAT | indentation FLOAT | wrap BOOL )* | ||
+ | |||
+ | <table class="matte" cellpadding="0" cellspacing="10" border="1"> | ||
+ | <tr> | ||
+ | <td>[[Image:LeForgeronGalleyModifiers.png]] | ||
+ | </td></tr></table> | ||
* <code>ttf FONT_NAME</code> or <code>internal FONT_NUMBER</code> are identical to the ones for <code>text{}</code> (also with experimental <code>cmap</code> and <code>charset</code>). | * <code>ttf FONT_NAME</code> or <code>internal FONT_NUMBER</code> are identical to the ones for <code>text{}</code> (also with experimental <code>cmap</code> and <code>charset</code>). | ||
+ | |||
+ | * <code>indentation FLOAT</code> is the adjustment on the left margin for the first line of a paragraph. Positive value shifts to the right. | ||
+ | * <code>leading FLOAT</code> is the leading of the text, on the y direction. Traditional value should be 1.2. | ||
+ | * <code>spacing FLOAT</code> is the spacing when a "\n" is encountered. Traditional value should be 1, 1.5 or 2 time the leading ( 1.2, 1.8, 2.4 ). | ||
* <code>thickness FLOAT</code> is identical to the ones for <code>text{}</code>, just specified with a keyword. | * <code>thickness FLOAT</code> is identical to the ones for <code>text{}</code>, just specified with a keyword. | ||
* <code>width FLOAT</code> is the desired width of the text on which to fold the text. Default is 0, which disable folding. | * <code>width FLOAT</code> is the desired width of the text on which to fold the text. Default is 0, which disable folding. | ||
− | |||
− | |||
− | |||
* <code>wrap BOOL</code> is false for word wrapping (do not cut words, ragged right side, width can be overruled), true for letter folding (cut words, enforce the width) | * <code>wrap BOOL</code> is false for word wrapping (do not cut words, ragged right side, width can be overruled), true for letter folding (cut words, enforce the width) | ||
+ | |||
* the string of text can use \n to start a new paragraph. | * the string of text can use \n to start a new paragraph. | ||
Latest revision as of 15:17, 9 June 2019
- Everything about HgPovray38 in User:Le_Forgeron/HgPovray38
- Code is available on branch hgpovray38 at https://github.com/LeForgeron/povray
Galley
Similar to text, with formatting as traditional printing galley.
Syntax is
galley { ttf FONT_NAME [cmap VALUE, VALUE [charset VALUE]] [GALLEY_MODIFIERS] "string of text" [OBJECT_MODIFIERS] }
galley { internal FONT_NUMBER [cmap VALUE, VALUE [charset VALUE]] [GALLEY_MODIFIERS] "string of text" [OBJECT_MODIFIERS] }
GALLEY_MODIFIERS= ( thickness FLOAT | width FLOAT | leading FLOAT | spacing FLOAT | indentation FLOAT | wrap BOOL )*
ttf FONT_NAME
orinternal FONT_NUMBER
are identical to the ones fortext{}
(also with experimentalcmap
andcharset
).
indentation FLOAT
is the adjustment on the left margin for the first line of a paragraph. Positive value shifts to the right.leading FLOAT
is the leading of the text, on the y direction. Traditional value should be 1.2.spacing FLOAT
is the spacing when a "\n" is encountered. Traditional value should be 1, 1.5 or 2 time the leading ( 1.2, 1.8, 2.4 ).thickness FLOAT
is identical to the ones fortext{}
, just specified with a keyword.width FLOAT
is the desired width of the text on which to fold the text. Default is 0, which disable folding.wrap BOOL
is false for word wrapping (do not cut words, ragged right side, width can be overruled), true for letter folding (cut words, enforce the width)
- the string of text can use \n to start a new paragraph.
wrap : true indentation : +2 |
wrap : false indentation : +2 |
wrap : true indentation : 0 |
wrap : false indentation : 0 |
wrap : true indentation : -2 |
wrap : false indentation : -2 |
#version 3.8;
global_settings{ charset utf8 assumed_gamma 1.0 }
#default{ finish { emission 1 diffuse 0 } }
#declare Teo="Li Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores.\n At solmen va esser necessi far uniform grammatica, pronunciation e plu commun paroles. Ma quande lingues coalesce, li grammatica del resultant lingue es plu simplic e regulari quam ti del coalescent lingues. Li nov lingua franca va esser plu simplic e regulari quam li existent Europanlingues. It va esser tam simplic quam Occidental in fact, it va esser Occidental. A un Angleso it va semblar un simplificat Angles, quam un skeptic Cambridge amico dit me que Occidental es. ";
#declare mar=0.181;
#declare k=30;
#declare heig=8.5;
#for(i,0,1,1)
#for(j,-2,2,2)
galley{ internal 2 thickness 0.01 spacing 1.8 wrap i width k leading 1.2 indentation j Teo
translate (heig*j+8)*y-(k+3)*i*x no_shadow
}
cylinder { -(heig*2-1)*y,2*y,mar texture { pigment { color green 1 } } translate (j)*x-(k+3)*i*x +6*z+(heig*j+8)*y }
#end
cylinder { -40*y,40*y,mar texture { pigment { color rgbf <1,1,0,0.5> } } translate -(k+3)*i*x +5*z }
cylinder { -40*y,40*y,mar texture { pigment { color rgb <0,1,1> } } translate +k*x-(k+3)*i*x +5*z }
#end
camera { orthographic
location <0,2,-30>
up y
right image_width/image_height*x
direction z
look_at 2*y
angle 100
}
#declare IS=texture { pigment { color srgb <253,248,242>/255 } } ;
plane { z,0 texture { IS } translate 10*z }
|