You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

alignment.fo 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  2. <fo:layout-master-set>
  3. <fo:simple-page-master master-name="one">
  4. <fo:region-body margin-top="25pt" margin-bottom="25pt" margin-left="20pt" margin-right="20pt" />
  5. </fo:simple-page-master>
  6. </fo:layout-master-set>
  7. <fo:page-sequence master-reference="one">
  8. <fo:flow flow-name="xsl-region-body">
  9. <fo:block><fo:inline font-weight="bold">Ex 1:</fo:inline> This
  10. is a longer line of text that provides a context for the line with the images aligned on it.
  11. This is a line with before-edge
  12. <fo:instream-foreign-object vertical-align="top">
  13. <svg:svg width="25" height="25">
  14. <svg:rect x="0" y="0" width="25" height="25" style="fill:none;stroke:#000000"/>
  15. <svg:line x1="12.5" y1="0" x2="12.5" y2="22" style="stroke:black;stroke-width:1.5"/>
  16. <svg:path d="M5 17l7.5 8l7.5 -8z" style="fill:black"/>
  17. </svg:svg>
  18. </fo:instream-foreign-object><fo:instream-foreign-object vertical-align="top">
  19. <svg:svg width="25" height="50">
  20. <svg:rect x="0" y="0" width="25" height="50" style="fill:none;stroke:#000000"/>
  21. <svg:line x1="12.5" y1="0" x2="12.5" y2="47" style="stroke:black;stroke-width:1.5"/>
  22. <svg:path d="M5 42l7.5 8l7.5 -8z" style="fill:black"/>
  23. </svg:svg>
  24. </fo:instream-foreign-object>, after-edge<fo:instream-foreign-object vertical-align="bottom">
  25. <svg:svg width="25" height="25">
  26. <svg:rect x="0" y="0" width="25" height="25" style="fill:none;stroke:#000000"/>
  27. <svg:line x1="12.5" y1="2" x2="12.5" y2="25" style="stroke:black;stroke-width:1.5"/>
  28. <svg:path d="M5 8l7.5 -8l7.5 8z" style="fill:black"/>
  29. </svg:svg>
  30. </fo:instream-foreign-object><fo:instream-foreign-object vertical-align="bottom">
  31. <svg:svg width="25" height="40">
  32. <svg:rect x="0" y="0" width="25" height="40" style="fill:none;stroke:#000000"/>
  33. <svg:line x1="12.5" y1="2" x2="12.5" y2="40" style="stroke:black;stroke-width:1.5"/>
  34. <svg:path d="M5 8l7.5 -8l7.5 8z" style="fill:black"/>
  35. </svg:svg>
  36. </fo:instream-foreign-object>, middle<fo:instream-foreign-object vertical-align="middle">
  37. <svg:svg width="25" height="25">
  38. <svg:rect x="0" y="0" width="25" height="25" style="fill:none;stroke:#000000"/>
  39. <svg:line x1="12.5" y1="3" x2="12.5" y2="22" style="stroke:black;stroke-width:1.5"/>
  40. <svg:path d="M5 17l7.5 8l7.5 -8z" style="fill:black"/>
  41. <svg:path d="M5 8l7.5 -8l7.5 8z" style="fill:black"/>
  42. </svg:svg>
  43. </fo:instream-foreign-object>, and no<fo:instream-foreign-object>
  44. <svg:svg width="25" height="40">
  45. <svg:rect x="0" y="0" width="25" height="40" style="fill:none;stroke:#000000"/>
  46. <svg:line x1="12.5" y1="0" x2="12.5" y2="40" style="stroke:black;stroke-width:1.5"/>
  47. </svg:svg>
  48. </fo:instream-foreign-object> alignment.
  49. And this is the line of text that follows the line with the aligned objects on it.
  50. And finally, this line illustrates the normal spacing between lines of text in this font.
  51. </fo:block>
  52. <fo:block space-after="15pt"><fo:leader leader-pattern="rule"/></fo:block>
  53. <fo:block><fo:inline font-weight="bold">Ex 2:</fo:inline> This
  54. is a longer line of text that provides a context for the line with the images aligned on it.
  55. This is a line with before-edge
  56. <fo:instream-foreign-object vertical-align="top">
  57. <svg:svg width="25" height="25">
  58. <svg:rect x="0" y="0" width="25" height="25" style="fill:none;stroke:#000000"/>
  59. <svg:line x1="12.5" y1="0" x2="12.5" y2="22" style="stroke:black;stroke-width:1.5"/>
  60. <svg:path d="M5 17l7.5 8l7.5 -8z" style="fill:black"/>
  61. </svg:svg>
  62. </fo:instream-foreign-object><fo:instream-foreign-object vertical-align="top">
  63. <svg:svg width="25" height="50">
  64. <svg:rect x="0" y="0" width="25" height="50" style="fill:none;stroke:#000000"/>
  65. <svg:line x1="12.5" y1="0" x2="12.5" y2="47" style="stroke:black;stroke-width:1.5"/>
  66. <svg:path d="M5 42l7.5 8l7.5 -8z" style="fill:black"/>
  67. </svg:svg>
  68. </fo:instream-foreign-object>, after-edge<fo:instream-foreign-object vertical-align="bottom">
  69. <svg:svg width="25" height="25">
  70. <svg:rect x="0" y="0" width="25" height="25" style="fill:none;stroke:#000000"/>
  71. <svg:line x1="12.5" y1="2" x2="12.5" y2="25" style="stroke:black;stroke-width:1.5"/>
  72. <svg:path d="M5 8l7.5 -8l7.5 8z" style="fill:black"/>
  73. </svg:svg>
  74. </fo:instream-foreign-object><fo:instream-foreign-object vertical-align="bottom">
  75. <svg:svg width="25" height="40">
  76. <svg:rect x="0" y="0" width="25" height="40" style="fill:none;stroke:#000000"/>
  77. <svg:line x1="12.5" y1="2" x2="12.5" y2="40" style="stroke:black;stroke-width:1.5"/>
  78. <svg:path d="M5 8l7.5 -8l7.5 8z" style="fill:black"/>
  79. </svg:svg>
  80. </fo:instream-foreign-object>, middle<fo:instream-foreign-object vertical-align="middle">
  81. <svg:svg width="25" height="25">
  82. <svg:rect x="0" y="0" width="25" height="25" style="fill:none;stroke:#000000"/>
  83. <svg:line x1="12.5" y1="3" x2="12.5" y2="22" style="stroke:black;stroke-width:1.5"/>
  84. <svg:path d="M5 17l7.5 8l7.5 -8z" style="fill:black"/>
  85. <svg:path d="M5 8l7.5 -8l7.5 8z" style="fill:black"/>
  86. </svg:svg>
  87. </fo:instream-foreign-object> alignment.
  88. And this is the line of text that follows the line with the aligned objects on it.
  89. And finally, this line illustrates the normal spacing between lines of text in this font.
  90. </fo:block>
  91. <fo:block space-after="15pt"><fo:leader leader-pattern="rule"/></fo:block>
  92. <fo:block><fo:inline font-weight="bold">Ex 3:</fo:inline> This
  93. is a longer line of text that provides a context for the line with the images aligned on it.
  94. This is a line with before-edge
  95. <fo:instream-foreign-object vertical-align="top">
  96. <svg:svg width="25" height="25">
  97. <svg:rect x="0" y="0" width="25" height="25" style="fill:none;stroke:#000000"/>
  98. <svg:line x1="12.5" y1="0" x2="12.5" y2="22" style="stroke:black;stroke-width:1.5"/>
  99. <svg:path d="M5 17l7.5 8l7.5 -8z" style="fill:black"/>
  100. </svg:svg>
  101. </fo:instream-foreign-object><fo:instream-foreign-object vertical-align="top">
  102. <svg:svg width="25" height="50">
  103. <svg:rect x="0" y="0" width="25" height="50" style="fill:none;stroke:#000000"/>
  104. <svg:line x1="12.5" y1="0" x2="12.5" y2="47" style="stroke:black;stroke-width:1.5"/>
  105. <svg:path d="M5 42l7.5 8l7.5 -8z" style="fill:black"/>
  106. </svg:svg>
  107. </fo:instream-foreign-object>, after-edge<fo:instream-foreign-object vertical-align="bottom">
  108. <svg:svg width="25" height="25">
  109. <svg:rect x="0" y="0" width="25" height="25" style="fill:none;stroke:#000000"/>
  110. <svg:line x1="12.5" y1="2" x2="12.5" y2="25" style="stroke:black;stroke-width:1.5"/>
  111. <svg:path d="M5 8l7.5 -8l7.5 8z" style="fill:black"/>
  112. </svg:svg>
  113. </fo:instream-foreign-object><fo:instream-foreign-object vertical-align="bottom">
  114. <svg:svg width="25" height="40">
  115. <svg:rect x="0" y="0" width="25" height="40" style="fill:none;stroke:#000000"/>
  116. <svg:line x1="12.5" y1="2" x2="12.5" y2="40" style="stroke:black;stroke-width:1.5"/>
  117. <svg:path d="M5 8l7.5 -8l7.5 8z" style="fill:black"/>
  118. </svg:svg>
  119. </fo:instream-foreign-object> alignment.
  120. And this is the line of text that follows the line with the aligned objects on it.
  121. And finally, this line illustrates the normal spacing between lines of text in this font.
  122. </fo:block>
  123. <fo:block space-after="15pt"><fo:leader leader-pattern="rule"/></fo:block>
  124. <fo:block><fo:inline font-weight="bold">Ex 4:</fo:inline> This
  125. is a longer line of text that provides a context for the line with the images aligned on it.
  126. This is a line with before-edge
  127. <fo:instream-foreign-object vertical-align="top">
  128. <svg:svg width="25" height="25">
  129. <svg:rect x="0" y="0" width="25" height="25" style="fill:none;stroke:#000000"/>
  130. <svg:line x1="12.5" y1="0" x2="12.5" y2="22" style="stroke:black;stroke-width:1.5"/>
  131. <svg:path d="M5 17l7.5 8l7.5 -8z" style="fill:black"/>
  132. </svg:svg>
  133. </fo:instream-foreign-object><fo:instream-foreign-object vertical-align="top">
  134. <svg:svg width="25" height="40">
  135. <svg:rect x="0" y="0" width="25" height="40" style="fill:none;stroke:#000000"/>
  136. <svg:line x1="12.5" y1="0" x2="12.5" y2="37" style="stroke:black;stroke-width:1.5"/>
  137. <svg:path d="M5 32l7.5 8l7.5 -8z" style="fill:black"/>
  138. </svg:svg>
  139. </fo:instream-foreign-object>, after-edge<fo:instream-foreign-object vertical-align="bottom">
  140. <svg:svg width="25" height="25">
  141. <svg:rect x="0" y="0" width="25" height="25" style="fill:none;stroke:#000000"/>
  142. <svg:line x1="12.5" y1="2" x2="12.5" y2="25" style="stroke:black;stroke-width:1.5"/>
  143. <svg:path d="M5 8l7.5 -8l7.5 8z" style="fill:black"/>
  144. </svg:svg>
  145. </fo:instream-foreign-object><fo:instream-foreign-object vertical-align="bottom">
  146. <svg:svg width="25" height="50">
  147. <svg:rect x="0" y="0" width="25" height="50" style="fill:none;stroke:#000000"/>
  148. <svg:line x1="12.5" y1="2" x2="12.5" y2="50" style="stroke:black;stroke-width:1.5"/>
  149. <svg:path d="M5 8l7.5 -8l7.5 8z" style="fill:black"/>
  150. </svg:svg>
  151. </fo:instream-foreign-object> alignment.
  152. And this is the line of text that follows the line with the aligned objects on it.
  153. And finally, this line illustrates the normal spacing between lines of text in this font.
  154. </fo:block>
  155. <fo:block space-after="15pt"><fo:leader leader-pattern="rule"/></fo:block>
  156. <fo:block><fo:inline font-weight="bold">Ex 5:</fo:inline> This
  157. is a longer line of text that provides a context for the line with the images aligned on it.
  158. This is a line with before-edge
  159. <fo:instream-foreign-object vertical-align="top">
  160. <svg:svg width="25" height="25">
  161. <svg:rect x="0" y="0" width="25" height="25" style="fill:none;stroke:#000000"/>
  162. <svg:line x1="12.5" y1="0" x2="12.5" y2="22" style="stroke:black;stroke-width:1.5"/>
  163. <svg:path d="M5 17l7.5 8l7.5 -8z" style="fill:black"/>
  164. </svg:svg>
  165. </fo:instream-foreign-object><fo:instream-foreign-object vertical-align="top">
  166. <svg:svg width="25" height="40">
  167. <svg:rect x="0" y="0" width="25" height="40" style="fill:none;stroke:#000000"/>
  168. <svg:line x1="12.5" y1="0" x2="12.5" y2="37" style="stroke:black;stroke-width:1.5"/>
  169. <svg:path d="M5 32l7.5 8l7.5 -8z" style="fill:black"/>
  170. </svg:svg>
  171. </fo:instream-foreign-object>, after-edge<fo:instream-foreign-object vertical-align="bottom">
  172. <svg:svg width="25" height="25">
  173. <svg:rect x="0" y="0" width="25" height="25" style="fill:none;stroke:#000000"/>
  174. <svg:line x1="12.5" y1="2" x2="12.5" y2="25" style="stroke:black;stroke-width:1.5"/>
  175. <svg:path d="M5 8l7.5 -8l7.5 8z" style="fill:black"/>
  176. </svg:svg>
  177. </fo:instream-foreign-object><fo:instream-foreign-object vertical-align="bottom">
  178. <svg:svg width="25" height="50">
  179. <svg:rect x="0" y="0" width="25" height="50" style="fill:none;stroke:#000000"/>
  180. <svg:line x1="12.5" y1="2" x2="12.5" y2="50" style="stroke:black;stroke-width:1.5"/>
  181. <svg:path d="M5 8l7.5 -8l7.5 8z" style="fill:black"/>
  182. </svg:svg>
  183. </fo:instream-foreign-object>, middle<fo:instream-foreign-object vertical-align="middle">
  184. <svg:svg width="25" height="25">
  185. <svg:rect x="0" y="0" width="25" height="25" style="fill:none;stroke:#000000"/>
  186. <svg:line x1="12.5" y1="3" x2="12.5" y2="22" style="stroke:black;stroke-width:1.5"/>
  187. <svg:path d="M5 17l7.5 8l7.5 -8z" style="fill:black"/>
  188. <svg:path d="M5 8l7.5 -8l7.5 8z" style="fill:black"/>
  189. </svg:svg>
  190. </fo:instream-foreign-object> alignment.
  191. And this is the line of text that follows the line with the aligned objects on it.
  192. And finally, this line illustrates the normal spacing between lines of text in this font.
  193. </fo:block>
  194. <fo:block space-after="15pt"><fo:leader leader-pattern="rule"/></fo:block>
  195. </fo:flow>
  196. </fo:page-sequence>
  197. </fo:root>