Reformatter l'alignement des longues séquences d'attributs
This commit is contained in:
parent
a83e1aba50
commit
663aca2b9c
@ -8,7 +8,8 @@
|
|||||||
Allow the filter to retrieve the languages in the TMX from its
|
Allow the filter to retrieve the languages in the TMX from its
|
||||||
first <tu> element, and create a column for each language. -->
|
first <tu> element, and create a column for each language. -->
|
||||||
<!-- Philippe Tourigny, modified 3-6-2023, version 0.96
|
<!-- Philippe Tourigny, modified 3-6-2023, version 0.96
|
||||||
Streamline namespaces to only those used in the transformation. -->
|
Streamline namespaces to only those used in the transformation.
|
||||||
|
Improve formatting for attributes too long to fit on a single line. -->
|
||||||
<!-- Copyright 2013 Dominique Meeùs, and 2022 Philippe Tourigny.
|
<!-- Copyright 2013 Dominique Meeùs, and 2022 Philippe Tourigny.
|
||||||
This program is free software: you can redistribute it and/or modify it
|
This program is free software: you can redistribute it and/or modify it
|
||||||
under the terms of the GNU Lesser General Public License
|
under the terms of the GNU Lesser General Public License
|
||||||
@ -30,19 +31,23 @@
|
|||||||
|
|
||||||
<office:automatic-styles>
|
<office:automatic-styles>
|
||||||
<!-- PTable properties -->
|
<!-- PTable properties -->
|
||||||
<style:style style:name="ta1" style:family="table" style:master-page-name="Default">
|
<style:style style:name="ta1" style:family="table"
|
||||||
<style:table-properties table:display="true" style:writing-mode="lr-tb"/>
|
style:master-page-name="Default">
|
||||||
|
<style:table-properties table:display="true"
|
||||||
|
style:writing-mode="lr-tb"/>
|
||||||
</style:style>
|
</style:style>
|
||||||
|
|
||||||
<!-- Column properties (for all languages) -->
|
<!-- Column properties (for all languages) -->
|
||||||
<style:style style:name="co1" style:family="table-column">
|
<style:style style:name="co1" style:family="table-column">
|
||||||
<style:table-column-properties fo:break-before="auto" style:column-width="14.000cm"/>
|
<style:table-column-properties fo:break-before="auto"
|
||||||
|
style:column-width="14.000cm"/>
|
||||||
</style:style>
|
</style:style>
|
||||||
|
|
||||||
<!-- Row properties -->
|
<!-- Row properties -->
|
||||||
<!-- All rows are set to “optimal height” -->
|
<!-- All rows are set to “optimal height” -->
|
||||||
<style:style style:name="ro1" style:family="table-row">
|
<style:style style:name="ro1" style:family="table-row">
|
||||||
<style:table-row-properties fo:break-before="auto" style:use-optimal-row-height="true"/>
|
<style:table-row-properties fo:break-before="auto"
|
||||||
|
style:use-optimal-row-height="true"/>
|
||||||
</style:style>
|
</style:style>
|
||||||
|
|
||||||
<!-- Cell properties -->
|
<!-- Cell properties -->
|
||||||
@ -50,15 +55,17 @@
|
|||||||
The language codes are centered and set in bold
|
The language codes are centered and set in bold
|
||||||
in the first column. -->
|
in the first column. -->
|
||||||
<style:style style:name="heading" style:family="table-cell"
|
<style:style style:name="heading" style:family="table-cell"
|
||||||
style:parent-style-name="Default">
|
style:parent-style-name="Default">
|
||||||
<style:table-cell-properties style:text-align-source="fix"
|
<style:table-cell-properties style:text-align-source="fix"
|
||||||
style:repeat-content="false" fo:wrap-option="wrap"/>
|
style:repeat-content="false"
|
||||||
|
fo:wrap-option="wrap"/>
|
||||||
<style:paragraph-properties fo:text-align="center"/>
|
<style:paragraph-properties fo:text-align="center"/>
|
||||||
<style:text-properties fo:font-weight="bold"/>
|
<style:text-properties fo:font-weight="bold"/>
|
||||||
</style:style>
|
</style:style>
|
||||||
|
|
||||||
<!-- Style for cells with the segment text -->
|
<!-- Style for cells with the segment text -->
|
||||||
<style:style style:name="ce2" style:family="table-cell" style:parent-style-name="Default">
|
<style:style style:name="ce2" style:family="table-cell"
|
||||||
|
style:parent-style-name="Default">
|
||||||
<style:table-cell-properties fo:wrap-option="wrap"/>
|
<style:table-cell-properties fo:wrap-option="wrap"/>
|
||||||
</style:style>
|
</style:style>
|
||||||
</office:automatic-styles>
|
</office:automatic-styles>
|
||||||
@ -77,8 +84,9 @@
|
|||||||
<table:table table:style-name="ta1">
|
<table:table table:style-name="ta1">
|
||||||
<!-- Set the format for a number of columns equal to
|
<!-- Set the format for a number of columns equal to
|
||||||
the number of languages in the imported TMX file -->
|
the number of languages in the imported TMX file -->
|
||||||
<table:table-column table:style-name="co1" table:number-columns-repeated="{$numLangs}"
|
<table:table-column table:style-name="co1"
|
||||||
table:default-cell-style-name="ce2"/>
|
table:number-columns-repeated="{$numLangs}"
|
||||||
|
table:default-cell-style-name="ce2"/>
|
||||||
|
|
||||||
<!-- Fill in the language headers in the first row
|
<!-- Fill in the language headers in the first row
|
||||||
The use of the "local-name()" function enables
|
The use of the "local-name()" function enables
|
||||||
|
Loading…
Reference in New Issue
Block a user