Le vendredi 27 juillet 2018, 17:24:27 CEST Peter Saint-Andre a écrit : > On 7/27/18 8:03 AM, Goffi wrote: > > Hello, > > > > I'm currently working on OMEMO implementation in Salut à Toi thanks to > > the work of Syndace (https://github.com/Syndace/python-omemo), and I > > have two issues with it: > > > > - SàT is using xml:lang attribute, and I don't see a way to specify it > > with OMEMO, how should I do? What are business rules when several > > bodies are available (I know it's not common, but it's allowed by > > RFCs)? > > Could you describe in more detail what you're trying to accomplish? > Section 5.2.3 of RFC 6121 talks about xml:lang for message bodies, but > perhaps you need more information. > > Peter
An (animated) picture worth thousand words :) https://repos.goffi.org/sat_docs/raw-file/tip/screenshots/0.7/ language_filtering.gif The experimental language detection put aside, I'm using xml:lang here to display the language used, and this allow language filtering, which is really useful in a multilingual room. This data can also be used to propose translation, and probably other neat features. With OMEMO I'm loosing the xml:lang (the <body> disappear), and I'm not sure where I could put it (I think this information should be encrypted too). thanks Goffi _______________________________________________ Standards mailing list Info: https://mail.jabber.org/mailman/listinfo/standards Unsubscribe: standards-unsubscr...@xmpp.org _______________________________________________