ODF 1.2, xml:id attribute

Olivier Hallot olivier.hallot at libreoffice.org
Wed Mar 4 18:23:34 UTC 2020


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


More information about the LibreOffice mailing list