ODF 1.2, xml:id attribute

Michael H cmahte at gmail.com
Wed Mar 4 19:03:22 UTC 2020


fodt and odt are pretty much the same.. they differ only in their
containers, and .fodt has extra stuff to turn non textual items (pictures,
etc.) into ascii-fied datastreams in the long text document, instead of
embedded files.


(hint to developers, I would really love that selecting "linking" turns
this encoded text stream off, and keeps linking to the files instead of
text encoded blocks of data in the files. There is zero usefulness in
converting binary objects into text streams, and it really affects
performance and file size.. The usefulness in fodt is about editability and
tracking changes. There should at least be an option to keep the images out
of the .fodt file.)




On Wed, Mar 4, 2020 at 12:23 PM Olivier Hallot <
olivier.hallot at libreoffice.org> wrote:

> Hi
>
> Machine translation or any other usage of an uniquely identified
> paragraph/heading/other in a document.
>
> FWIW, I already discovered that if a <text:p> contains the xml:id
> attribute, it survives save/load/conversion of fodt or odt.
>
> Regards
> Olivier
>
>
> Em 04/03/2020 14:39, Michael H escreveu:
> >> a roundtrip of translation of an odt / fodt
> >
> > Do you mean a converting an ODT into  FODT then returning to ODT?
> >
> > OR
> >
> > Do you mean machine translation of the words inside either an ODT or
> > FODT from one human language to another,  then returning to the first?
> >
> >
> > On Wed, Mar 4, 2020 at 11:09 AM Olivier Hallot
> > <olivier.hallot at libreoffice.org <mailto:olivier.hallot at libreoffice.org>>
> > wrote:
> >
> >     HI Regina
> >
> >     I'm on very early stage of investigating a way to do a roundtrip of
> >     translation of an odt / fodt by identifying each of its translatable
> >     content. Borrowed the idea from the Help XHP and applying to a rich
> text
> >     document.
> >
> >     Regards
> >
> >     Em 04/03/2020 10:38, Regina Henschel escreveu:
> >     > Hi Olivier,
> >     >
> >     > what do you want to do with 'xml:id'? Its value is unique in a
> >     document,
> >     > but it need not be stable in the lifetime of a document.
> >     >
> >     > Kind regards
> >     > Regina
> >     >
> >     > Olivier Hallot schrieb am 03-Mar-20 um 22:42:
> >     >> Hi
> >     >>
> >     >> Is there a widget in the user interface or API to assign the
> >     xml:id [1]
> >     >> attribute to an object?
> >     >>
> >     >> for example, I'd like to add xml:id to every <txt:p> element in a
> >     file.
> >     >>
> >     >>
> >     >> [1] 19.914 xml:id
> >     >> The xml:id attribute is standardized by the W3C [XML-ID] and
> gives an
> >     >> element a unique identification in its XML file.
> >     >>
> >     >> Kind regards
> >     >>
> >     >
> >     > _______________________________________________
> >     > LibreOffice mailing list
> >     > LibreOffice at lists.freedesktop.org
> >     <mailto:LibreOffice at lists.freedesktop.org>
> >     > https://lists.freedesktop.org/mailman/listinfo/libreoffice
> >
> >     --
> >     Olivier Hallot
> >     LibreOffice Documentation Coordinator
> >     Comunidade LibreOffice
> >     Rio de Janeiro - Brasil - Local Time: UTC-03:00
> >     http://tdf.io/joinus
> >     _______________________________________________
> >     LibreOffice mailing list
> >     LibreOffice at lists.freedesktop.org
> >     <mailto:LibreOffice at lists.freedesktop.org>
> >     https://lists.freedesktop.org/mailman/listinfo/libreoffice
> >
>
> --
> Olivier Hallot
> LibreOffice Documentation Coordinator
> Comunidade LibreOffice
> Rio de Janeiro - Brasil - Local Time: UTC-03:00
> http://tdf.io/joinus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20200304/5a202e22/attachment.htm>


More information about the LibreOffice mailing list