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.

character.fo 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!-- example for a simple fo file. At the beginning the page layout is set.
  3. Below fo:root there is always
  4. - a single fo:layout-master-set which defines one or more page layouts
  5. - an optional fo:declarations
  6. - and a sequence of one or more fo:page-sequences containing the text and formatting instructions
  7. -->
  8. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  9. <fo:layout-master-set>
  10. <!-- fo:layout-master-set defines in its children the page layout:
  11. the pagination and layout specifications
  12. - page-masters: have the role of describing the intended subdivisions
  13. of a page and the geometry of these subdivisions
  14. In this case there is only a simple-page-master which defines the
  15. layout for all pages of the text
  16. -->
  17. <!-- layout information -->
  18. <fo:simple-page-master master-name="simple"
  19. page-height="29.7cm"
  20. page-width="21cm"
  21. margin-top="1cm"
  22. margin-bottom="2cm"
  23. margin-left="2.5cm"
  24. margin-right="2.5cm">
  25. <fo:region-body margin-top="3cm"/>
  26. <fo:region-before extent="3cm"/>
  27. <fo:region-after extent="1.5cm"/>
  28. </fo:simple-page-master>
  29. </fo:layout-master-set>
  30. <!-- end: defines page layout -->
  31. <!-- start page-sequence
  32. here comes the text (contained in flow objects)
  33. the page-sequence can contain different fo:flows
  34. the attribute value of master-name refers to the page layout
  35. which is to be used to layout the text contained in this
  36. page-sequence-->
  37. <fo:page-sequence master-reference="simple">
  38. <!-- start fo:flow
  39. each flow is targeted
  40. at one (and only one) of the following:
  41. xsl-region-body (usually: normal text)
  42. xsl-region-before (usually: header)
  43. xsl-region-after (usually: footer)
  44. xsl-region-start (usually: left margin)
  45. xsl-region-end (usually: right margin)
  46. ['usually' applies here to languages with left-right and top-down
  47. writing direction like English]
  48. in this case there is only one target: xsl-region-body
  49. -->
  50. <fo:flow flow-name="xsl-region-body"
  51. text-align="justify">
  52. <!-- each paragraph is encapsulated in a block element
  53. the attributes of the block define
  54. font-family and size, line-heigth etc. -->
  55. <!-- this defines normal text -->
  56. <fo:block font-size="12pt"
  57. font-family="sans-serif"
  58. line-height="15pt"
  59. space-after.optimum="3pt"
  60. >
  61. 1. Why <fo:character character="T" font-size="16pt" color="red"/><fo:character character="E" font-size="16pt" color="blue"/><fo:character character="I" font-size="16pt" color="green"/>? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too.
  62. Why T<fo:character character="E"/>I? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too.
  63. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too.
  64. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too.
  65. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too.
  66. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too.
  67. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. <fo:character character="Y"/>ou should use it too.
  68. </fo:block>
  69. <!-- this defines normal text -->
  70. <fo:block font-size="12pt"
  71. font-family="sans-serif"
  72. line-height="15pt"
  73. space-after.optimum="3pt"
  74. >
  75. 1. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too.
  76. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too.
  77. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too.
  78. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too.
  79. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too.
  80. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too.
  81. Why TEI? I know, you know, I know (Paul Grice). Using TEI is quite a challenge. ou should use it too.
  82. </fo:block>
  83. <!-- this defines normal text -->
  84. <fo:block font-size="12pt"
  85. font-family="sans-serif"
  86. line-height="15pt"
  87. space-after.optimum="3pt"
  88. >
  89. 1. Why TEI? Using <fo:inline text-decoration="underline">TEI</fo:inline> is quite a challenge. <fo:character character="Y" font-size="16pt" />ou should use it too.
  90. </fo:block>
  91. </fo:flow> <!-- closes the flow element-->
  92. </fo:page-sequence> <!-- closes the page-sequence -->
  93. </fo:root>