Jump to content

Reading/Web/PDF Functionality/ru: Difference between revisions

From mediawiki.org
Content deleted Content added
Created page with "Sewer"
Tag: Reverted
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
(21 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<span id="Update_on_PDF_rendering,_July_15_2019"></span>
== Обновление PDF-рендеринга, 15 июля 2019 г. ==
== Обновление PDF-рендеринга, 15 июля 2019 г. ==


Запущен новый PDF-рендеринг. Просматривая обратную связь, не видели каких-либо существенных проблем. Мы могли бы включить некоторые предложения, но стоит отметить, что это не является текущим проектом с непрерывным развитием. Другими словами, теперь, когда он развёрнут и доказал свою работу, новый рендеринг переведён в режим обслуживания. Страница обсуждения не будет заброшена, но это может занять некоторое время, прежде чем кто-то отреагирует, потому что есть ещё много пожеланий.
Запущен новый PDF-рендеринг. Просматривая обратную связь, не видели каких-либо существенных проблем. Мы могли бы включить некоторые предложения, но стоит отметить, что это не является текущим проектом с непрерывным развитием. Другими словами, теперь, когда он развёрнут и доказал свою работу, новый рендеринг переведён в режим обслуживания. Страница обсуждения не будет заброшена, но это может занять некоторое время, прежде чем кто-то отреагирует, потому что есть ещё много пожеланий.


Что касается книг, мы оставили их в руках разработчиков-добровольцев и PediaPress. Мы будем рады обратиться к ним с вопросами, но не планируем никакого участия в плане технической реализации.
<div lang="en" dir="ltr" class="mw-content-ltr">
In terms of books, we've left it in the hands of volunteer developers and PediaPress. We'll be glad to reach out to them with questions, but we're not planning any involvement in terms of the technical implementation.
</div>


<span id="Update_on_PDF_rendering,_June_4,_2019"></span>
<div lang="en" dir="ltr" class="mw-content-ltr">
== Update on PDF rendering, June 4, 2019 ==
== Обновление PDF-рендеринга, 4 июня 2019 г. ==
</div>
<span lang="en" dir="ltr" class="mw-content-ltr">We have deployed the new renderer for single-article PDFs for all projects.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">We have deployed the new renderer for single-article PDFs for all projects.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">We hope this will resolve the issues associated with the Electron renderer, which was often unable to generate PDFs as expected.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">We hope this will resolve the issues associated with the Electron renderer, which was often unable to generate PDFs as expected.</span>
Line 18: Line 16:
== Update on PDF rendering, March 18 2019 ==
== Update on PDF rendering, March 18 2019 ==
</div>
</div>
<span lang="en" dir="ltr" class="mw-content-ltr">We're getting close to the deployment of our new renderer, [[Proton]], with only a few tasks remaining as blockers (as can be seen in the task graph in [[phab:T181084]]).</span>
Sewer
Мы опубликуем ещё одно обновление после того, как будет назначена дата развёртывания.
Мы опубликуем ещё одно обновление после того, как будет назначена дата развёртывания.
<span lang="en" dir="ltr" class="mw-content-ltr">This renderer will replace the electron renderer as the default PDF renderer for single-page PDFs.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">This renderer will replace the electron renderer as the default PDF renderer for single-page PDFs.</span>


<span id="Update_on_books,_August_17_2018"></span>
<div lang="en" dir="ltr" class="mw-content-ltr">
== Update on books, August 17 2018 ==
== Новости о книгах, 17 августа 2018 г. ==
</div>
[[File:Amphibious_aircrafts.pdf|thumb|<span lang="en" dir="ltr" class="mw-content-ltr">Sample book from PediaPress</span>]]
[[File:Amphibious_aircrafts.pdf|thumb|<span lang="en" dir="ltr" class="mw-content-ltr">Sample book from PediaPress</span>]]
<span lang="en" dir="ltr" class="mw-content-ltr">Here is an [[:File:Amphibious_aircrafts.pdf|updated and more comprehensive sample]] of the new book renderer.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">Here is an [[:File:Amphibious_aircrafts.pdf|updated and more comprehensive sample]] of the new book renderer.</span>
Line 31: Line 28:
<span lang="en" dir="ltr" class="mw-content-ltr">The export still has a number of significant issues: page breaks, infoboxes, tables, and math formulas need to be improved substantially.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">The export still has a number of significant issues: page breaks, infoboxes, tables, and math formulas need to be improved substantially.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">This [[:File:I18n_math.pdf|sample file focusing on international scripts and math formulas]] reveals some of the problems that still need to be solved.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">This [[:File:I18n_math.pdf|sample file focusing on international scripts and math formulas]] reveals some of the problems that still need to be solved.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">Math formulas are currently rendered using MathML - switching to LaTeX should lead to significant improvements.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">Math formulas are currently rendered using MathML switching to LaTeX should lead to significant improvements.</span>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
Line 54: Line 51:
<span lang="en" dir="ltr" class="mw-content-ltr">They then plan to work on a new HTML-to-PDF renderer afterwards, based on feedback on the first implementation.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">They then plan to work on a new HTML-to-PDF renderer afterwards, based on feedback on the first implementation.</span>


<span id="Update_January_2018"></span>
== Обновление в январе 2018 ==
== Обновление в январе 2018 ==


Line 60: Line 58:
</div>
</div>


<span id="Update_September_2017"></span>
== Обновление в сентябре 2017 ==
== Обновление в сентябре 2017 ==
<span lang="en" dir="ltr" class="mw-content-ltr">Our current PDF rendering service, the [[offline content generator]] (OCG), is no longer maintainable.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">Our current PDF rendering service, the [[offline content generator]] (OCG), is no longer maintainable.</span>
Line 85: Line 84:
</div>
</div>


* <span lang="en" dir="ltr" class="mw-content-ltr">Release of full-featured renderer for single articles (print to pdf) – Oct 1, 2017</span>
* <span lang="en" dir="ltr" class="mw-content-ltr">Release of full-featured renderer for single articles (print to pdf)</span>{{ymd|2017|10|1}}
* <span lang="en" dir="ltr" class="mw-content-ltr">Pausing book PDF rendering Oct 1, 2017</span>
* <span class="mw-translate-fuzzy">Приостановка рендеринга книги в формате PDF — 1 октября 2017 г.</span> – {{ymd|2017|10|1}}
* <span lang="en" dir="ltr" class="mw-content-ltr">Sunsetting of OCG renderer – Oct 1, 2017</span>
* <span lang="en" dir="ltr" class="mw-content-ltr">Sunsetting of OCG renderer</span>{{ymd|2017|10|1}}
* <span lang="en" dir="ltr" class="mw-content-ltr">Release of new PDF renderer – Jan, 2018 (tentative based on research results into alternative rendering systems)</span>
* <span lang="en" dir="ltr" class="mw-content-ltr">Release of new PDF renderer – Jan, 2018 (tentative based on research results into alternative rendering systems)</span>


Line 102: Line 101:
</div>
</div>


<span id="Introduction"></span>
== Введение ==
== Введение ==
<span lang="en" dir="ltr" class="mw-content-ltr">Our current PDF rendering service, the [[offline content generator]], is no-longer maintainable.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">Our current PDF rendering service, the [[offline content generator]], is no-longer maintainable.</span>
Line 109: Line 109:


<span lang="en" dir="ltr" class="mw-content-ltr">Additionally, it does not support a number of rendering requests from the community, the main one being [[w:Wikipedia talk:Offline Content Generator|the ability to render tables]].</span>
<span lang="en" dir="ltr" class="mw-content-ltr">Additionally, it does not support a number of rendering requests from the community, the main one being [[w:Wikipedia talk:Offline Content Generator|the ability to render tables]].</span>
<span lang="en" dir="ltr" class="mw-content-ltr">We have selected a new service, the [[Special:MyLanguage/Extension:ElectronPdfService|electron rendering service]], as a suitable replacement.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">We have selected a new service, the [[Special:MyLanguage/Extension:ElectronPdfService|Electron rendering service]], as a suitable replacement.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">Our next step is to duplicate the functionality provided by OCG using the electron rendering service.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">Our next step is to duplicate the functionality provided by OCG using the Electron rendering service.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">Below, we will describe the main portions of the functionality we have identified as necessary.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">Below, we will describe the main portions of the functionality we have identified as necessary.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">We would like to invite conversation around what is missing or what is superfluous in the provided list.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">We would like to invite conversation around what is missing or what is superfluous in the provided list.</span>
<div lang="en" dir="ltr" class="mw-content-ltr">
<span lang="en" dir="ltr" class="mw-content-ltr">We would also like to highlight over our future plans for PDF rendering to gather initial feedback.</span>
We would also like to highlight over our future plans for PDF rendering to gather initial feedback.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
== Known Issues ==
== Known issues ==
</div>
</div>
* <span lang="en" dir="ltr" class="mw-content-ltr">There is currently a [[phab:T174955|bug]] within Firefox (upstream) that affects the styling of infoboxes displayed across multiple pages. Progress from Mozilla can be tracked here:</span> https://bugzilla.mozilla.org/show_bug.cgi?id=688556.
* <span lang="en" dir="ltr" class="mw-content-ltr">There is currently a [[phab:T174955|bug]] within Firefox (upstream) that affects the styling of infoboxes displayed across multiple pages. Progress from Mozilla can be tracked here:</span> https://bugzilla.mozilla.org/show_bug.cgi?id=688556.
Line 244: Line 242:
</div>
</div>


<span id="History"></span>
== История ==
== История ==


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* Rendering PDF articles and books from Wikipedia pages is handled by a service called [[Offline_content_generator|OCG]]. When rendering "books" through the book creator, it uses [[Offline_content_generator|OCG]] as embedded within the [[Extension:Collection|Collection]] extension. [[phab:maniphest/query/L14GjuqVpn7v/#R|OCG has multiple issues]], especially [[phab:T73808|with tables]].
* Rendering PDF articles and books from Wikipedia pages is handled by a service called [[Special:MyLanguage/Offline content generator|OCG]].
</div> <span lang="en" dir="ltr" class="mw-content-ltr">When rendering "books" through the book creator, it uses [[Special:MyLanguage/Offline content generator|OCG]] as embedded within the {{ll|Extension:Collection|Collection}} extension.</span> <span lang="en" dir="ltr" class="mw-content-ltr">[[phab:maniphest/query/L14GjuqVpn7v/#R|OCG has multiple issues]], especially [[phab:T73808|with tables]].</span>
</div>
* <span lang="en" dir="ltr" class="mw-content-ltr">Multiple issues with OCG are identified, including complaints from the community around OCG's inability to render tables.</span>
* <span lang="en" dir="ltr" class="mw-content-ltr">Multiple issues with OCG are identified, including complaints from the community around OCG's inability to render tables.</span>
* <span lang="en" dir="ltr" class="mw-content-ltr">Rendering of tables ranks as number 9 on the German-speaking Community Technical Wishlist.</span>
* <span lang="en" dir="ltr" class="mw-content-ltr">Rendering of tables ranks as number 9 on the German-speaking Community Technical Wishlist.</span>
Line 275: Line 274:
** <span lang="en" dir="ltr" class="mw-content-ltr">Include/exclude images versions</span>
** <span lang="en" dir="ltr" class="mw-content-ltr">Include/exclude images versions</span>
** <span lang="en" dir="ltr" class="mw-content-ltr">Modifiable margins</span>
** <span lang="en" dir="ltr" class="mw-content-ltr">Modifiable margins</span>
** <span lang="en" dir="ltr" class="mw-content-ltr">print by section - allows you to remove references, paragraphs you don’t want, index, etc</span>
** <span lang="en" dir="ltr" class="mw-content-ltr">print by section allows you to remove references, paragraphs you don’t want, index, etc</span>
** <span lang="en" dir="ltr" class="mw-content-ltr">allowing configurable text size</span>
** <span lang="en" dir="ltr" class="mw-content-ltr">allowing configurable text size</span>


Line 310: Line 309:
{| class="wikitable"
{| class="wikitable"
!
!
!<span lang="en" dir="ltr" class="mw-content-ltr">OCG</span>
! <span lang="en" dir="ltr" class="mw-content-ltr">OCG</span>
!Новый сервис
! Новый сервис
!Заметки
! Заметки
|-
|-
|<span lang="en" dir="ltr" class="mw-content-ltr">Rendering individual articles</span>
| <span lang="en" dir="ltr" class="mw-content-ltr">Rendering individual articles</span>
|{{yes}}
|Да
|{{yes}}
|Да
|
|
|-
|-
|<span lang="en" dir="ltr" class="mw-content-ltr">Rendering multiple articles using the book creator</span>
| <span lang="en" dir="ltr" class="mw-content-ltr">Rendering multiple articles using the book creator</span>
|{{yes}}
|Да
|{{yes}}
|Да
|
|
|-
|-
|<span lang="en" dir="ltr" class="mw-content-ltr">Contains table of contents for multiple articles</span>
| <span lang="en" dir="ltr" class="mw-content-ltr">Contains table of contents for multiple articles</span>
|{{yes}}
|Да
|{{yes}}
|Да
|
|
|-
|-
|<span lang="en" dir="ltr" class="mw-content-ltr">Renders tables</span>
| <span lang="en" dir="ltr" class="mw-content-ltr">Renders tables</span>
|{{no}}
|Нет
|{{yes}}
|Да
|
|
|-
|-
|<span lang="en" dir="ltr" class="mw-content-ltr">Attribution</span>
| <span lang="en" dir="ltr" class="mw-content-ltr">Attribution</span>
|{{yes}}
|Да
|{{yes}}
|Да
|<span lang="en" dir="ltr" class="mw-content-ltr">Open question: location of attribution within the new service</span>
| <span lang="en" dir="ltr" class="mw-content-ltr">Open question: location of attribution within the new service</span>
|-
|-
|Оформление
| Оформление
|Latex
| Latex
|Новые стили
| Новые стили
|
|
|-
|-
|<span lang="en" dir="ltr" class="mw-content-ltr">N-column layout</span>
| <span lang="en" dir="ltr" class="mw-content-ltr">N-column layout</span>
|{{yes}}
|Да
|{{no}}
|Нет
|
|
|-
|-
|<span lang="en" dir="ltr" class="mw-content-ltr">Default 2-column layout</span>
| <span lang="en" dir="ltr" class="mw-content-ltr">Default 2-column layout</span>
|{{yes}}
|Да
|<span lang="en" dir="ltr" class="mw-content-ltr">Tentative</span>
| <span lang="en" dir="ltr" class="mw-content-ltr">Tentative</span>
|<span lang="en" dir="ltr" class="mw-content-ltr">Default one column or two-column layout will be chosen based on feedback and quantitative and/or qualitative testing</span>
| <span lang="en" dir="ltr" class="mw-content-ltr">Default one column or two-column layout will be chosen based on feedback and quantitative and/or qualitative testing</span>
|-
|-
|Формат вывода
| Формат вывода
|PDF, простой текст
| PDF, простой текст
|Только PDF
| Только PDF
|
|
|}
|}


<span id="Design"></span>
=== Дизайн ===
=== Дизайн ===


Line 367: Line 367:


<gallery widths="250" heights="350">
<gallery widths="250" heights="350">
File:Moon.pdf|<span lang="en" dir="ltr" class="mw-content-ltr">Examples of new PDF output - Styles will be updated based on feedback from the ongoing consultation</span>
File:Moon.pdf|<span lang="en" dir="ltr" class="mw-content-ltr">Examples of new PDF output Styles will be updated based on feedback from the ongoing consultation</span>
File:PDF screenshot of charter typeface.pdf|
File:PDF screenshot of charter typeface.pdf|
</gallery>
</gallery>



<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
Line 389: Line 390:
# Август 2017 — Сентябрь 2017
# Август 2017 — Сентябрь 2017
## <span lang="en" dir="ltr" class="mw-content-ltr">Additional changes made if necessary</span>
## <span lang="en" dir="ltr" class="mw-content-ltr">Additional changes made if necessary</span>
# Октябрь 2017
# {{ym|2017|10}}
## <span lang="en" dir="ltr" class="mw-content-ltr">Second iteration launched without OCG on all projects</span>
## <span lang="en" dir="ltr" class="mw-content-ltr">Second iteration launched without OCG on all projects</span>


<span id="Single_Articles"></span>
=== Отдельные статьи ===
=== Отдельные статьи ===


Line 414: Line 416:
<span lang="en" dir="ltr" class="mw-content-ltr">The project page will display any recent updates for all tasks related to PDFs.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">The project page will display any recent updates for all tasks related to PDFs.</span>


<span id="Books"></span>
=== Книги ===
=== Книги ===


Line 444: Line 447:
</div>
</div>


<span id="Alternative"></span>
== Альтернативы ==
== Альтернативы ==


Существует альтернативный способ экспорта MediaWiki в LaTeX, PDF, ODT и EPUB:
Существует альтернативный способ экспорта MediaWiki в LaTeX, PDF, ODT и EPUB:


http://mediawiki2latex.wmflabs.org/
https://mediawiki2latex.wmcloud.org/


Вычислительные ресурсы на сервере ограничены.
Вычислительные ресурсы на сервере ограничены.


Если работаете в Ubuntu Linux и хотите результаты быстрее, то можете установить <code>m2l-pyqt</code> или <code>mediawiki2latex packages</code>.
Если работаете в Ubuntu Linux и хотите результаты быстрее, то можете установить <code>m2l-pyqt</code> или <code>mediawiki2latex</code>.


[[Category:Offline{{#translation:}}]]
[[Category:Offline{{#translation:}}]]

Latest revision as of 22:02, 19 July 2026

Обновление PDF-рендеринга, 15 июля 2019 г.

Запущен новый PDF-рендеринг. Просматривая обратную связь, не видели каких-либо существенных проблем. Мы могли бы включить некоторые предложения, но стоит отметить, что это не является текущим проектом с непрерывным развитием. Другими словами, теперь, когда он развёрнут и доказал свою работу, новый рендеринг переведён в режим обслуживания. Страница обсуждения не будет заброшена, но это может занять некоторое время, прежде чем кто-то отреагирует, потому что есть ещё много пожеланий.

Что касается книг, мы оставили их в руках разработчиков-добровольцев и PediaPress. Мы будем рады обратиться к ним с вопросами, но не планируем никакого участия в плане технической реализации.

Обновление PDF-рендеринга, 4 июня 2019 г.

We have deployed the new renderer for single-article PDFs for all projects. We hope this will resolve the issues associated with the Electron renderer, which was often unable to generate PDFs as expected. Please feel free to try out the new renderer and let us know if you have questions or come across any bugs or other issues.

Update on PDF rendering, March 18 2019

We're getting close to the deployment of our new renderer, Proton, with only a few tasks remaining as blockers (as can be seen in the task graph in phab:T181084). Мы опубликуем ещё одно обновление после того, как будет назначена дата развёртывания. This renderer will replace the electron renderer as the default PDF renderer for single-page PDFs.

Новости о книгах, 17 августа 2018 г.

Sample book from PediaPress

Here is an updated and more comprehensive sample of the new book renderer. The layout changed quite a from the first version presented at Wikimania. Thanks for all the feedback. The export still has a number of significant issues: page breaks, infoboxes, tables, and math formulas need to be improved substantially. This sample file focusing on international scripts and math formulas reveals some of the problems that still need to be solved. Math formulas are currently rendered using MathML – switching to LaTeX should lead to significant improvements.

Update on books, August 8 2018

We have been working with PediaPress on generating and styling the new books. They have provided us with a sample of the current output, which will be very similar to the final version. We discussed points of improvement with the PediaPress team, which they are addressing currently. If you have any feedback or other comments on these samples, please let us know on the talk page.

Update on books, April 2018

Books functionality will be returning via PediaPress. After investigating the new renderer in depth, we realized that core features of the original book creator (such as page numbers and table of contents) would be very difficult to implement using the new renderer. In addition, we had significant issues with our concatenation code. Thus, we had to look for alternatives in terms of bringing back the PDF books functionality on Wikimedia projects. We reached out to PediaPress, who were the original patrons of books on Wikipedia to see if they would be interested in taking up PDF rendering for books once again. They have agreed and we are currently working on the details and schedule. They will start by working on a temporary solution based on an older technology that has previously been used to create PDF. This might have some drawbacks when it comes to graphical elements, such as maps, but will mean a faster working solution. They then plan to work on a new HTML-to-PDF renderer afterwards, based on feedback on the first implementation.

Обновление в январе 2018

We're currently preparing performance tests of the PDF to book function. We should know more in early February.

Обновление в сентябре 2017

Our current PDF rendering service, the offline content generator (OCG), is no longer maintainable. Simply put, it's breaking down. The Reading team at the Wikimedia Foundation has been working towards replacing it for months. OCG has been running on outdated code which may introduce security vulnerabilities and other major issues in the future. Over the last three months, we’ve had banners on the PDF creation page asking for feedback on the prototype for our new renderer. The new renderer will have improved capabilities from OCG – it will be able to print tables and infoboxes and will contain styling focused on better readability. We've gathered a lot of good feedback on the prototype and are working on making the required updates to our new PDFs.

Later addendum: Turning PDF book rendering OFF for the short term

Unfortunately, major issues with our old renderer (OCG) will require us to remove it as a rendering option prior to completing the necessary updates for the books feature. This is earlier than we wanted. By the time we remove OCG, the work for rendering of single articles will be completed. However, the rendering of books will be paused while we evaluate and complete the necessary work. Our initial choice of renderer for the replacement, the Electron rendering service, is not capable of supporting PDFs of larger sizes and fails when attempting to render a book with multiple articles. We will be working to select a new rendering system for books which can handle the size of the files and support our requirements. This is not how we planned to do this. We never aimed to temporarily remove the book PDF functionality.

Timeline:

  • Release of full-featured renderer for single articles (print to pdf)
  • Приостановка рендеринга книги в формате PDF — 1 октября 2017 г.
  • Sunsetting of OCG renderer
  • Release of new PDF renderer – Jan, 2018 (tentative based on research results into alternative rendering systems)

Functionality:

For a full list of current and upcoming functionality, see below.

In addition to this page being updated, this will be communicated in a banner on PDF creation page, in Tech News and on some Wikimedia mailing lists.

Введение

Our current PDF rendering service, the offline content generator, is no-longer maintainable. Simply put, it's breaking down. Originally created by a third party, it currently runs on outdated code which may introduce security vulnerabilities and other major issues in the future. If we're to have the PDF functionality, we unfortunately have to replace it, or we might suddenly find ourselves in a situation where we'd have to take it down without having planned to do so.

Additionally, it does not support a number of rendering requests from the community, the main one being the ability to render tables. We have selected a new service, the Electron rendering service, as a suitable replacement. Our next step is to duplicate the functionality provided by OCG using the Electron rendering service. Below, we will describe the main portions of the functionality we have identified as necessary. We would like to invite conversation around what is missing or what is superfluous in the provided list. We would also like to highlight over our future plans for PDF rendering to gather initial feedback.

Known issues

Userbase

The following table shows a sample of traffic to the Electron "Download as PDF" service for over a 6 hour period. The traffic is broken down by operating system (OS), browser, and the browser major version (e.g. Windows 7, Chrome v61.*). Note well that the majority of our traffic appears to come from Windows based machines.

OS Браузер Browser Major Version % запросов 
Другая Другой - 14.38
Windows 7 Chrome 61 12.42
Windows 10 Chrome 61 8.83
Windows 7 IE 11 7.33
Windows 7 Firefox 56 6.59
Windows 10 Firefox 56 3.82
Windows 10 Edge 15 3.24
Windows 8.1 Chrome 61 3.07
Windows XP Chrome 49 2.2
Windows 10 Chrome 59 1.53
Windows 10 IE 11 1.51
Windows 8.1 Firefox 56 1.31
Windows XP Firefox 52 1.22
Windows 8 Chrome 61 1.15
Windows 8.1 IE 11 1.15
Mac OS X Safari 11 0.9
Windows 7 Firefox 53 0.89
Windows 7 Firefox 52 0.78
Ubuntu Firefox 56 0.78
Windows XP IE 6 0.7
Windows 7 Chrome 55 0.68
Windows 7 Firefox 55 0.62
Mac OS X Chrome 61 0.62
Android UC Browser 11 0.6
Windows 10 Edge 14 0.59
Windows 7 Opera 48 0.53
Android Chrome Mobile 61 0.49
Windows 10 Opera 48 0.44
Windows 7 Chrome 60 0.4
Windows Vista Chrome 49 0.39
Windows 7 Yandex Browser 17 0.37
Windows 10 Firefox 55 0.37
Mac OS X Safari 10 0.36
Windows 10 Chrome 50 0.34
Android Android 4 0.33
Mac OS X Firefox 56 0.33
Windows 10 Chrome 60 0.32
Windows 8.1 Chrome 43 0.3
Android Amazon Silk 60 0.29
Windows 7 Sogou Explorer 1 0.27
Windows 8 IE 10 0.26
Windows 7 IE 8 0.26
Windows 7 IE 9 0.25
Windows 8 Opera 12 0.25
Linux Firefox 52 0.25
Mac OS X Firefox 53 0.24
Windows 7 Firefox 45 0.24
Windows 10 Firefox 57 0.24
Windows 7 Firefox 38 0.22
Windows 10 Firefox 47 0.21

Current Functionality Requirements

The following is a list of the current requirements for PDF rendering for single-article PDF's and for books. The requirements different from the current implementation are displayed in bold.

История

  • Rendering PDF articles and books from Wikipedia pages is handled by a service called OCG.

When rendering "books" through the book creator, it uses OCG as embedded within the Collection extension. OCG has multiple issues, especially with tables.

  • Multiple issues with OCG are identified, including complaints from the community around OCG's inability to render tables.
  • Rendering of tables ranks as number 9 on the German-speaking Community Technical Wishlist.
  • Wikimedia Deutschland begins on working on a solution for rendering tables in PDF's, and introduces Electron. They do this planning to run it alongside OCG, not to replace it.
  • At the same time as Wikimedia Deutschland is working on the Electron service, the responsible maintainers of the OCG service at the Wikimedia Foundation come to the conclusion that OCG has to be replaced.
  • The WMF Reading Team takes over the responsibility for the long term maintenance of PDF rendering and begins plans for implementing table rendering across all projects.
  • The Reading team launches a community consultation for gathering feedback on Electron.
  • The Reading Infrastructure and Web teams begin scoping the working necessary to port OCG functionality over to the Electron service.

Update After Consultation

Proposed PDF and print styles based on feedback from consultation

We launched a consultation on the current implementation of the PDF renderer in early June, 2017. After reviewing the consultation responses, we have made the following observations:

  • A larger number of users preferred the single-column format over the double column format
  • Users which prefered the double-column format highlighted that their preference was based in the styling and look and feel of double columns. Some users also expressed concerns with font size and wasting paper when printing PDF's in the single-column option
  • The following feature requests were made:
    • Functional hyperlinks
    • Date and url, 'this page downloaded [date] from [URL]'
    • Customizable css for layout, title, TOC
    • Option for 2 column format
    • Include/exclude images versions
    • Modifiable margins
    • print by section – allows you to remove references, paragraphs you don’t want, index, etc
    • allowing configurable text size

Based on the feedback, we have incorporated the following into our new print styles:

  • гиперссылки
  • article information
  • smaller font and book-like styling

The remainder of the requests above will be postponed until the second iteration of the PDF renderer, in which we plan to build a settings mode that will allow for customization of the available options.

Proposal

The following is a proposal for the scope of functionality necessary for PDF rendering:

  • Individual articles will be rendered to PDF using the "Download as PDF" link in the sidebar
  • Multiple articles will be rendered to PDF using the Book Creator tool
  • All articles will contain attribution for text and images
  • All PDFs rendered will be able to print tables
    • Users will be able to customize the layout of their PDF (optional)

Differences between current and future implementation

OCG Новый сервис Заметки
Rendering individual articles Да Да
Rendering multiple articles using the book creator Да Да
Contains table of contents for multiple articles Да Да
Renders tables Нет Да
Attribution Да Да Open question: location of attribution within the new service
Оформление Latex Новые стили
N-column layout Да Нет
Default 2-column layout Да Tentative Default one column or two-column layout will be chosen based on feedback and quantitative and/or qualitative testing
Формат вывода PDF, простой текст Только PDF

Дизайн

The new PDF styles will be designed for increased readability. Based on community feedback and qualitative or quantitative testing, support for a 2-column layout may be built for the book creator and/or for individual PDFs.


Development and Deployment Roadmap

The following is a rough outline of the development and deployment roadmap. It is subject to change.

  1. Апрель - Май 2017:
    1. The Reading team builds back-end support for functionality identified above
    2. Communities are consulted on expanding or shrinking proposed functionality
    3. Qualitative test performed for styling
  2. Июнь - Июль 2017:
    1. New styles implemented
    2. First iteration is launched along with OCG on all projects and performance is compared
    3. Iterations based on consultations and identified edge cases
  3. Август 2017 — Сентябрь 2017
    1. Additional changes made if necessary
  4. октябрь 2017
    1. Second iteration launched without OCG on all projects

Отдельные статьи

  • A PDF for a single article will be created by selecting the "Download as PDF" link
  • Upon selecting "Download as PDF", the PDF file will be generated. To download the file, users will select the "Download the file link"
  • Each PDF file will contain the following:
    • Article title and text
    • Карточка (если есть)
    • Таблица (если есть)
    • Single-column layout
    • Номер страницы
    • All article images and captions
    • Links to pages linked from the article (blue links and external links)
    • Text and image sources, contributors, and licenses

Phabricator Tracking

All PDF-related changes including sunsetting OCG, replacing the Electron PDF renderer, and any updates to books or the collections extension are tracked under the phabricator project Proton. The project page will display any recent updates for all tasks related to PDFs.

Книги

Functionality available in October, 2017

Note: no changes will be made to the current book creator workflow at this time

  • User will launch the books creator by selecting "Create a book"
  • This will navigate to the current book creation page
  • To download a book, users will select the "download" link from the books page
  • Пользователи могут только скачивать книги в формате PDF
  • Books will contain all elements from single article format as well as:
    • Book title page
    • The references for each article from the book will appear at the end of the article
    • Каждая статья будет начинаться с новой страницы
    • A single section for text and image sources, contributors, and licenses, that contains the collected contributions from all articles

Functionality available in November - December, 2017

  • Books will contain a table of contents with page numbers
    • Selecting a section from the table of contents will navigate the user to the corresponding section within the book

Styles for books will be updated for improved readability

Альтернативы

Существует альтернативный способ экспорта MediaWiki в LaTeX, PDF, ODT и EPUB:

https://mediawiki2latex.wmcloud.org/

Вычислительные ресурсы на сервере ограничены.

Если работаете в Ubuntu Linux и хотите результаты быстрее, то можете установить m2l-pyqt или mediawiki2latex.