2013-12-20

‎List of LibreOffice ODF extensions: contextual-spacing and versions

← Older revision

Revision as of 2013-12-20T21:25:02

(One intermediate revision by one user not shown)

Line 66:

Line 66:

 

=== Extension namespaces ===

 

=== Extension namespaces ===

 

 



Elements and attributes that are not defined in an ODF specification yet, even if already submitted as a proposal to the OASIS ODF-TC, '''have''' to be written with an extension namespace, otherwise validators will complain about invalid elements or attributes. For example, instead of <code>text:new-attribute</code> it needs to be <code>loext:new-attribute</code>. There are predefined extension namespaces available, the most common is <code>XML_NAMESPACE_LO_EXT</code> that maps to the ''loext'' of the example, which you would use instead of <code>XML_NAMESPACE_TEXT</code>. (See <code>XML_NAMESPACE_EXT</code> in include/xmloff/xmlnmspe.hxx for definitions of namespaces)

+

Elements and attributes that are not defined in an ODF specification yet, even if already submitted as a proposal to the OASIS ODF-TC, '''have''' to be written with an extension namespace, otherwise validators will complain about invalid elements or attributes. For example, instead of <code>text:new-attribute</code> it needs to be <code>loext:new-attribute</code>. There are predefined extension namespaces available, the most common is <code>XML_NAMESPACE_LO_EXT</code> that maps to the ''loext'' of the example, which you would use instead of <code>XML_NAMESPACE_TEXT</code>. (See <code>XML_NAMESPACE_EXT</code> in
<tt>
include/xmloff/xmlnmspe.hxx
</tt>
for definitions of namespaces)

 

 

 

In the ODF reader prepare to import '''both''' namespaces, in this example the ''loext'' that is written and the proposed future namespace, here ''text''. If you don't do this then the current version will not be able to read documents that use the proposed attribute once it was accepted by the OASIS ODF-TC. For example by using

 

In the ODF reader prepare to import '''both''' namespaces, in this example the ''loext'' that is written and the proposed future namespace, here ''text''. If you don't do this then the current version will not be able to read documents that use the proposed attribute once it was accepted by the OASIS ODF-TC. For example by using

Line 110:

Line 110:

 

|-

 

|-

 

| [http://cgit.freedesktop.org/libreoffice/core/commit/?id=2efcf2da2055ad1cb3b00031b19145f8b104b122 2efcf2da2055ad1cb3b00031b19145f8b104b122]

 

| [http://cgit.freedesktop.org/libreoffice/core/commit/?id=2efcf2da2055ad1cb3b00031b19145f8b104b122 2efcf2da2055ad1cb3b00031b19145f8b104b122]



| css3t cell alignment, css3t:text-justify, 'distribute' value and loext:vertical-justify (to-be style:vertical-justify)

+

| css3t cell alignment, css3t:text-justify, 'distribute' value and loext:vertical-justify (
<=4.2 and
to-be style:vertical-justify)

 

| Horizontal 'distributed' alignment and vertical 'justified' and 'distributed' alignments for cell contents in Calc. Uses CSS3 markup. CJK feature.

 

| Horizontal 'distributed' alignment and vertical 'justified' and 'distributed' alignments for cell contents in Calc. Uses CSS3 markup. CJK feature.

 

| [http://tools.oasis-open.org/issues/browse/OFFICE-2317 OASIS JIRA report distributed text justification]

 

| [http://tools.oasis-open.org/issues/browse/OFFICE-2317 OASIS JIRA report distributed text justification]

Line 185:

Line 185:

 

|-

 

|-

 

| [http://cgit.freedesktop.org/libreoffice/core/commit/?id=9f4bb5bd4f55b4a80544413efde26391849b1d7f 9f4bb5bd4f55b4a80544413efde26391849b1d7f]

 

| [http://cgit.freedesktop.org/libreoffice/core/commit/?id=9f4bb5bd4f55b4a80544413efde26391849b1d7f 9f4bb5bd4f55b4a80544413efde26391849b1d7f]



| new boolean paragraph property: style:contextual-spacing

+

| new boolean paragraph property:
loext:contextual-spacing (<=4.2 and to-be
style:contextual-spacing
)

 

| Ignore spacing above and below when using identical styles ([http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.contextualspacing.aspx Word interop]). See {{bnc|750757}}.

 

| Ignore spacing above and below when using identical styles ([http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.contextualspacing.aspx Word interop]). See {{bnc|750757}}.

 

| [https://tools.oasis-open.org/issues/browse/OFFICE-3767 OASIS JIRA report contextual spacing of paragraphs]

 

| [https://tools.oasis-open.org/issues/browse/OFFICE-3767 OASIS JIRA report contextual spacing of paragraphs]

Line 195:

Line 195:

 

|-

 

|-

 

| [http://cgit.freedesktop.org/libreoffice/core/commit/?id=c2a73a4780dbab2abdfb4654ddc2bf1356127eb0 c2a73a4780dbab2abdfb4654ddc2bf1356127eb0]

 

| [http://cgit.freedesktop.org/libreoffice/core/commit/?id=c2a73a4780dbab2abdfb4654ddc2bf1356127eb0 c2a73a4780dbab2abdfb4654ddc2bf1356127eb0]



| <loext:sender-initials> element inside <office:annotation> (to-be <text:sender-initials>)

+

| <loext:sender-initials> element inside <office:annotation> (
<=4.2 and
to-be <text:sender-initials>)

 

| store initials of comment author ([http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.comment.initials Word interop])

 

| store initials of comment author ([http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.comment.initials Word interop])

 

| [https://tools.oasis-open.org/issues/browse/OFFICE-3776 OASIS JIRA report initials of annotation authors]

 

| [https://tools.oasis-open.org/issues/browse/OFFICE-3776 OASIS JIRA report initials of annotation authors]

Show more