Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

inline_word-spacing.xml 3.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- $Id$ -->
  17. <testcase>
  18. <info>
  19. <p>
  20. This test checks inline level word-spacing.
  21. </p>
  22. </info>
  23. <fo>
  24. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  25. <fo:layout-master-set>
  26. <fo:simple-page-master master-name="normal" page-width="5in" page-height="6in">
  27. <fo:region-body/>
  28. </fo:simple-page-master>
  29. </fo:layout-master-set>
  30. <fo:page-sequence master-reference="normal" white-space-collapse="true">
  31. <fo:flow flow-name="xsl-region-body">
  32. <fo:block>In all the following tests the &lt;fo:inline&gt; is wrappped around the
  33. first and last words of the block and this section of text:
  34. of the glyph-area obtained by formatting the current fo:character whose</fo:block>
  35. <fo:block>Next block inlines have word-spacing="normal":</fo:block>
  36. <fo:block><fo:inline word-spacing="normal">Default </fo:inline>space between words is defined to be the inline-progression-dimension
  37. <fo:inline word-spacing="normal">of the glyph-area obtained by formatting the current fo:character whose</fo:inline>
  38. treat-as-word-space trait has the value<fo:inline word-spacing="normal"> "true".</fo:inline></fo:block>
  39. <fo:block>Next block inlines have word-spacing="0pt":</fo:block>
  40. <fo:block><fo:inline word-spacing="0pt">Default </fo:inline>space between words is defined to be the inline-progression-dimension
  41. <fo:inline word-spacing="0pt">of the glyph-area obtained by formatting the current fo:character whose</fo:inline>
  42. treat-as-word-space trait has the value<fo:inline word-spacing="0pt"> "true".</fo:inline></fo:block>
  43. <fo:block>Next block inlines have word-spacing="-2pt":</fo:block>
  44. <fo:block><fo:inline word-spacing="-2pt">Default </fo:inline>space between words is defined to be the inline-progression-dimension
  45. <fo:inline word-spacing="-2pt">of the glyph-area obtained by formatting the current fo:character whose</fo:inline>
  46. treat-as-word-space trait has the value<fo:inline word-spacing="-2pt"> "true".</fo:inline></fo:block>
  47. <fo:block>Next block inlines have word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt":</fo:block>
  48. <fo:block><fo:inline word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt">Default </fo:inline>space between words is defined to be the inline-progression-dimension
  49. <fo:inline word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt">of the glyph-area obtained by formatting the current fo:character whose</fo:inline>
  50. treat-as-word-space trait has the value<fo:inline word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt"> "true".</fo:inline></fo:block>
  51. </fo:flow>
  52. </fo:page-sequence>
  53. </fo:root>
  54. </fo>
  55. <checks>
  56. </checks>
  57. </testcase>