Repository navigation
This release reads Word 97-2003 and PowerPoint 97-2003 files on a machine without LibreOffice. A reader in Python takes the text, tables with their merged cells, headings, notes, links, list numbers and bold and italic of a .doc, and the titles, texts, tables, equations and speaker notes of a .ppt, PowerPoint 95 included; both were refused before. On 254 public documents the .doc reader keeps 99.6% of the words the LibreOffice route writes, and with LibreOffice installed both formats still go through it. Equation Editor 3.0 and MathType equations are written as LaTeX, and a WMF or EMF picture keeps the words drawn in it. In PDF, web links are written as [text](url), the document's outline names its headings (57% of outline titles are headings, from 38%), a header or footer marked as an artifact is written once, a word divided at a line end is put together where the document writes it whole, and tables without rules, price lists and lists of amounts keep their rows. On the public PDF benchmark OpenDocKit scores 0.891, from 0.889 in 0.4.0. An HTML element hidden by a <style> rule is left out. The benchmark has a seventh tool, DocVortex, and a round of PDFs drawn by a public random number after every tool was released, scored against the documents' own tags: OpenDocKit, kordoc and Docling are level there (0.804, 0.806, 0.804). Converting the same documents gives different text in the places named above: a PDF now carries its links (keep_links=False gives the text as before), and a .doc or .ppt without LibreOffice gives a result with a warning instead of an error. No option, default or dependency of a plain install changed.
Added
-
Word 97-2003 (.doc) files are read without LibreOffice. A machine without LibreOffice refused every .doc. A reader in Python now takes its text, paragraphs, tables, headings, footnotes and endnotes, field results and text boxes, with one warning that pictures and headers and footers are left out (the entries below add links, emphasis, list numbers and merged cells); Word 6.0 / 95 files give their text. On 254 public government documents it keeps 99.6% of the words the LibreOffice route writes, about a hundred times faster. With LibreOffice installed the document still goes through it.
-
PowerPoint 97-2003 (.ppt) files are read without LibreOffice. They were refused too. Each slide's title, texts, tables, equations and speaker notes are now read in Python and written as from a PPTX, with one warning that pictures and charts are left out. On 207 public government presentations it keeps 99.1% of the words the LibreOffice route writes, in 0.7 s against 369 s.
-
Equation Editor 3.0 and MathType equations are written as LaTeX. In DOCX, PPTX and .ppt such an equation was a picture, or
[OLE object]with pictures off. It is now read from its own data and written like a Word equation ($\frac{a^2}{b}$). On the 508 equations of 21 public government presentations, 506 are read (the other 2 are empty), and every one that the LibreOffice route also writes is read the same or more completely. A.docread without LibreOffice does not have its equations. -
WMF and EMF pictures keep their words. A chart, a diagram or an object's icon kept as a Windows metafile cannot be drawn here and was left as
[Image]. Without alt text it is now[Image: …]with the text the picture draws — chart labels, the boxes of a diagram, the caption of an icon — in the code page of each font. 38 of the 58 metafiles of the office test corpora draw text. The picture itself is still not drawn, and the warning that counts such pictures stays. -
.pptwithout LibreOffice: bold, italic, raised and lowered characters. A presentation read in Python wrotex2for x squared andH2Owithout its lowered 2, and nothing of what was bold or italic. The look of each run is now read and written as from a PPTX (**bold**,*italic*,x^2,H_2O; titles and notes stay plain). 136 of 207 public presentations change, by marks only; 1,857 of the 1,892 lines that change are now the line the LibreOffice route writes. -
PowerPoint 95 without LibreOffice. A presentation saved for PowerPoint 95 was refused on a machine without LibreOffice. One saved for both versions is now read from the PowerPoint 97 copy it holds, slide by slide; one that is not gives its text, in the order of its slides, with a warning that the slides are not told apart. Two of 207 public presentations are such files, and they held three quarters of the words the reader lost.
-
.pptwithout LibreOffice: tables. A table of a PowerPoint 97-2003 presentation read in Python is written as a table: it was a list of its cells from the last to the first. The rows, columns and merged cells come from the places of the cells. All 36 presentations with a table among 207 public ones now have theirs, 584 of 607 rows the same text as through LibreOffice. A group that holds text outside its cells is read as before, so no text is lost. -
.docwithout LibreOffice: hyperlinks. The result of a HYPERLINK field is a link to its address, in paragraphs, headings, table cells and notes: 239 addresses in 62 of 254 public documents, each of which was its text alone. -
.docwithout LibreOffice: bold, italic, strike-through, superscript and subscript. The characters of a Word 97-2003 document read in Python are written as DOCX writes them: what a run sets itself, and the character styles Strong and Emphasis. Of 254 public documents 147 now have their bold, 133 their italic and 5 their strike-through, with 97% of the bold characters and 98% of the italic ones where LibreOffice has them; the text is unchanged (the marks count towardmax_chars). The warning of the reader no longer lists formatting among what is left out. -
.docwithout LibreOffice: the numbers and bullets of lists. A paragraph that is an item of a list is written with its bullet or its number, counted as in DOCX (levels, start numbers, lists that count on together), and a heading with the number its style gives it; a paragraph that is hidden or deleted with the changes tracked is not counted. Of 254 public documents 101 gain their bullets and 88 their numbers; of the numbered lines LibreOffice writes, 9,755 now carry the same number (6,949 before). The warning of the reader no longer lists numbering among what is left out. -
.docwithout LibreOffice: a table inside a cell. A table in a cell of another table is written as a table in that cell, as in DOCX; its cells were lines of the outer cell. -
.docwithout LibreOffice: merged cells. A table is drawn with the cells that cover several columns or rows, from the edges and the merge marks of each row, as the merged tables of every other format are. The tables of 51 of 254 public documents change; no word leaves a table.
Fixed
-
.docwithout LibreOffice: hidden and deleted text is left out. Text that is hidden, or deleted with the changes tracked, is no longer written, as in DOCX, and a paragraph whose mark is deleted runs on into the next. In 11 of 254 public documents 3,431 words leave, 3,422 of which the LibreOffice route does not write either. -
.pptwithout LibreOffice: Greek letters, arrows and signs. A character written in a symbol font (Symbol, Wingdings) was left out or came out as a box:290 mfor 290 μm,Ga■for Gaμν. The font each character is written in is now read, and the character it shows is written, as in PPTX. 37 of 207 public presentations change; all 1,236 such characters LibreOffice reads from them are now there (401 before). -
.docwithout LibreOffice: notes marked by hand. A footnote or endnote whose mark the author typed (*,**) instead of the automatic number was dropped, and its mark stayed in the text: a brief lost its seven notes, 527 words. Such a note is now written like any other. 2 of 254 real documents have them. -
.docwithout LibreOffice: a symbol was a(. A character inserted as a symbol (Symbol, Wingdings, the symbol fonts of WordPerfect) was read as the bracket that stands for it in the text —the question(s intent,120 (F,28 U.S.C. ( 158: it is now the character of its number in its font, as a DOCXw:symis. In DOCX the known numbers of the WordPerfect fonts are their characters too, and the others are left out (question=sbefore); the faces of Wingdings and a dash made of the extender of Symbol are read in both. -
PDF: the header and footer a document marks as such are written once. What a PDF marks as no part of its content (
/Artifact) and repeats on two pages or more, wherever it stands on them, keeps its first copy where it is and loses the later ones: a title four lines deep over each page, the footer of a two-page letter. Page numbers marked so go from every page. On 4,157 tagged real PDFs 1,483 repeated lines go from 246 documents; nothing is added or moved, and no word besides page counts is lost. No scorecard moves.remove_repeated_page_lines=Falsekeeps every copy. -
PDF: a word divided at the end of a line is written whole where the document writes it a second time. 'implemen-' / 'tation' is 'implementation' when the document has that word elsewhere, and 'long-' / 'term' keeps its hyphen when the document writes 'long-term'; a word found neither way stays as the page has it. Of 2,139 such line ends in 388 real PDFs, 1,279 are put right. The benchmark's references keep such a word as the page prints it, so its overall score falls from 0.8915 to 0.8913 and its word score from 0.953 to 0.951.
-
PDF: an outline title over several lines is one heading, also beside other text. A title in a box beside the text, or over two lines of one column of a paper, has the other column's lines between its own down the page and was not found; a title whose lines stood far apart came out as two or three headings ('# 1' / '# Introduction'). Titles are now also looked for in the order the lines are read, and the lines of one title stay one heading. Of the outline titles of the real PDFs, 104 more are written as headings, none is lost, and no scorecard moves.
-
PDF: a numbered section the outline names is a heading. The outline names a section 'Statistical Analysis' where the page sets '2.6. Statistical Analysis', so the line was not found and stayed body text. A line that starts with its section's number now holds the title after the number. Of the outline titles of the real PDFs, 53 more are written as headings, none is lost, and no scorecard moves.
-
PDF: links in tables and in rows joined later are written. A link was a mark on a line, and every step that made new lines or table cells after the marks were set dropped it: a footer of three links lost all three, and a timetable kept one of its eleven 'Click here to join'. The page now keeps its links and gives them back where the page is written; in a table a link is written only when its text and order are certain, the order taken from the cells of a ruled table. Of the 4,832 web addresses of 2,604 real PDFs, 17.9% are in no output, down from 24.7%; none that was written is lost, and no scorecard moves.
-
PDF: a price list keeps each price with its item. A menu, a fee schedule or a bill sets each item's price far to the right, often with a line of description under the item and no rules: read line by line, the prices came apart from their items and stood together after the text. Such a list is now a table of items, with their descriptions, and prices, under the header over the prices where there is one. On the data tables of tagged office PDFs the table score rises from 0.71 to 0.73 on documents kept apart from the rules; no scorecard moves.
-
PDF: a date alone is no heading. The date on the cover of a report or over a letter ('June 2023', 'Le 19 janvier 2021', '29. März 2019') was set large and written as a heading of the text. A line that is only a date with its month, in seven languages, is now body text; a year alone (a timeline) and a date led by its weekday (the day of a programme) are left as they were, and so are the dates of a document that heads its sections with them (a monthly report). One benchmark document's cover date stops being a heading; with the entry on section titles below, heading structure on the benchmark stands at 0.837, from 0.835.
-
PDF: the outline names the headings. A PDF's bookmarks are its author's own list of headings, yet of the outline titles of 2,604 real PDFs only 38% were written as headings. A line whose text is the title of an outline entry pointing at its page is now a heading at the entry's depth, whatever its size: 57% are. Against the headings tagged in office PDFs the F1 rises from 0.563 to 0.601 (0.517 to 0.566 on the documents kept apart); the Korean pairs' heading score from 0.825 to 0.859. The public benchmark's PDFs carry no outline and do not move.
-
PDF: section titles at the size of the body are headings. Papers and reports often set their numbered section titles at the size and weight of the body ('I. INTRODUCTION' centred, 'A. Citizens Sourcing and Reporting' in italics), and a title in small capitals was measured at the size of its smaller letters: such titles were read as body text. A one-line section number and short title over its body, set apart by capitals, a slanted or bold face or a place in the middle, is now a heading, and a line in small capitals is measured by its larger letters. Against the headings tagged in 207 office PDFs the F1 rises on both halves (0.558 to 0.563 and 0.516 to 0.517), heading structure on the benchmark from 0.835 to 0.837, and no other scorecard moves.
-
PDF: a slide's ruled table keeps its last row and its column names. Slides draw the rules between columns a little short of the bottom of a last row that has no rule under it, and name the columns on a line over the top rule. The last row became one cell over three columns, its texts read in turn line by line, and the column names fell out as paragraphs. A rule that comes down through most of the last row now divides it, in tables of three columns or more, and a line of short names over the top rule, one per column with white between, becomes the header of a table that has none. On the benchmark table structure rises from 0.822 to 0.831; no other scorecard moves, and of 3,258 real PDFs one changes, for the better.
-
PDF: a table set without rules whose rows stand apart is read as a table. A slide saved as PDF sets its tables so, often over a picture of the grid: the cells wrap over several lines, a row header stands at the middle of its row, and only white tells the rows and columns apart. Such a table was read cell by cell, every short cell a heading. It is now one table, with each wrapped cell joined. It takes a header of one line of short cells, three rows under it starting together, cells that are no bulleted items or sentences, and no running text cut by the row borders: of 3,258 real PDFs none changes, and on the benchmark table structure rises from 0.803 to 0.822 (overall 0.889 to 0.892 with this change; 0.891 with every change of this release).
-
PDF: items keep their amounts in two-column lists and statements. A list of names and numbers whose number column has a header or a unit line over it ('CEC of pure colloid', 'cmolc/kg'), and a statement whose items are indented by level over one right-aligned column of amounts ('Income', 'Event Registration', 'Total Income', '$3,724.00'), had all their items read before all their numbers. Each item is now written with its number ('Event Registration $3,724.00'). Of 3,258 real PDFs, 19 change: in 14, accounts, staff and equipment lists, contents pages, code tables and price lists keep their pairs; in 4 the pairs are kept but a line left out of a group is taken for a heading or a table of numbers is partly reordered; on one contents page the chapter rows further down lose their page numbers. No structure scorecard moves.
Changed
-
PDF: a page with pictures is read once. The clip of each picture was found by interpreting the page a second time; it is now noted in the one reading. The output is the same (653 real PDFs compared: every text, clip and picture), in 3% less time.
-
HTML: what a
<style>rule hides is hidden. An element hidden by a class or an id (.hidden { display: none }) was read as body text, because only thestyleattribute of an element was looked at: the hidden link farm of a hacked page, the trap field of a form, cookie notices, privacy dialogs, 'scroll to top'. A rule that names one element by its class or id and setsdisplay: noneat the top of a style sheet of the screen now hides it, unless another rule of the page could show it again, one of its other classes says it is shown (d-md-block,md:flex), or it holds the main content or as much text as the rest of the page. Rules inside@media, in a print sheet or inside<noscript>hide nothing. A folded answer hidden this way is kept as before. Of 2,300 pages of the web 135 change, 76 of them by losing a hidden link farm, and none is left empty. The pass takes 2.8% of the conversion time of a page. -
PDF: web links are written as
[text](url), as in every other format. The address of a link annotation is written over the text it covers (keep_links, on by default;http,httpsandmailtoonly). A link whose text shows its own address keeps only the text. Of the distinct web addresses of 3,258 real PDFs, 61% were in no output and 25% were after this change (the entry on links in tables, under Fixed, takes it further, counted on the 2,604 of those PDFs that have web addresses). The public benchmark's references hold no links and its evaluator compares link syntax as characters, so its overall score falls from 0.8931 to 0.8908;ConvertOptions(keep_links=False)gives the text as before.
Full list: CHANGELOG.