New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API...
Transcript of New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API...
![Page 1: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/1.jpg)
New ODF Toolkit
from TDF
Svante Schubert
TIRANA | 11 Sept. 2019
![Page 2: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/2.jpg)
ODF Toolkit? What for?
800 pounds sculpture (was stolen) from Healdsburg, Calif.
![Page 3: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/3.jpg)
● ODF document is a ZIP:
● ODF Package (part 3)
● ODF XML (part 1)
● OASIS ODF specification == „Blueprint“ or „Cooking Recipe“
ODF ToolkitODF Basic
![Page 4: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/4.jpg)
![Page 5: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/5.jpg)
● Online Validator (or via commandline) https://odfvalidator.org/
● Running XSLT directly on ODF document (no unzipping XML)
ODF ToolkitUse Cases
![Page 6: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/6.jpg)
● Editing an ODF document (e.g. Cloud)– by API without Layout– for Data Extraction (e.g. Translation)– for Data Insertion (e.g. by Database)
● Collaboration on Documents (ODT)– backend for Web Offices (ODT)
(starting with ver 1.0.0)
ODF ToolkitUse Cases
![Page 8: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/8.jpg)
![Page 9: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/9.jpg)
![Page 10: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/10.jpg)
![Page 11: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/11.jpg)
![Page 12: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/12.jpg)
![Page 13: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/13.jpg)
![Page 14: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/14.jpg)
![Page 15: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/15.jpg)
![Page 16: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/16.jpg)
![Page 17: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/17.jpg)
![Page 18: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/18.jpg)
![Page 19: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/19.jpg)
![Page 20: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/20.jpg)
![Page 21: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/21.jpg)
![Page 22: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/22.jpg)
![Page 23: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/23.jpg)
![Page 24: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/24.jpg)
● In the 80ths: One person on single machine
● Exchanging document by floppy disc or modem
Document Collaboration from 80thsDesign based on former Requirements
![Page 25: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/25.jpg)
● With Smartphones everyone has multiple machines (Smartphone & PC/Laptop)
● Exchanging documents faster via Internet, Mail, Dropbox, etc. willnot solve the merge problem!
● Key Collaboration Question: What have you changed?
Document Collaboration TodayNew Requirements
![Page 26: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/26.jpg)
● Allow collaboration functionality similar as software developers have with repositories
● Exchanging changes (commits) instead of documents (repositories) via Internet, Mail, Dropbox, etc.
● Solving Key Question: What have you changed?
Document Collaboration IdeaNew Change Design
![Page 27: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/27.jpg)
![Page 28: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/28.jpg)
![Page 29: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/29.jpg)
![Page 30: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/30.jpg)
![Page 31: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/31.jpg)
![Page 32: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/32.jpg)
● Prototype of Collaboration of Editors based on ODF Changes (ODFDOM)
● WYSIWYG Editors with different feature set editing same ODT Document:– LibreOffice (ODT) – Emacs (Text) – CKEditor 5 (HTML 5)
ODF Toolkit - ODFDOM Upcoming Goals
![Page 33: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/33.jpg)
● Build your CKEditor5 example:
git clone -b stable https://github.com/ckeditor/ckeditor5-build-classic.git npm installnpm run build
● Open local editor in browser (& add eventlistener from notes)
./sample/index.html
ODF Toolkit – CKEditor5Upcoming Work
![Page 34: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/34.jpg)
● enventinfo[object Object] args[{"baseVersion":12,"position":{"root":"main","path":[0,6],"stickiness":"toNone"},"nodes":[{"data":"X"}],"shouldReceiveAttributes":true,"__className":"InsertOperation"}]
● index.html:48 enventinfo[object Object] args[{"baseVersion":13,"range":{"start":{"root":"main","path"[0,3],"stickiness":"toNext"},"end":{"root":"main","path"[0,7],"stickiness":"toPrevious"}},"key":"italic","oldValue":null,"newValue":true,"__className":"AttributeOperation"}]
ODF Toolkit – CKEditor5Demo results in Chrome console
![Page 35: New ODF Toolkit from TDF (The Document Foundation)...Editing an ODF document (e.g. Cloud) – by API without Layout – for Data Extraction (e.g. Translation) – for Data Insertion](https://reader036.fdocuments.net/reader036/viewer/2022090806/611599d6b6a24a45ab517029/html5/thumbnails/35.jpg)
● Website (in progress):https://odftoolkit.org/ https://tdf.github.io/odftoolkit/docs/ (latest)
● Sources: https://github.com/tdf/odftoolkit
● Online Validator: https://odfvalidator.org/
● ODF Specificationhttp://docs.oasis-open.org/office/v1.2/os/
ODF ToolkitResources