<p dir="ltr">Hi, </p>
<p dir="ltr">This problem was completely fixed renaming images and correcting filenames in the wikitext. Now the first letter of files is capitalized.  Sorry for the late report. </p>
<p dir="ltr">Bye<br>
Davide </p>
<br><div class="gmail_quote"><div dir="ltr">Il ven 25 mar 2016 17:00 Riccardo Iaconelli <<a href="mailto:riccardo@kde.org">riccardo@kde.org</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
recently (in the past month or so) we decided to allow people to upload images<br>
whose name starts with a lowercase letter.<br>
<br>
This seemed an innocuous change, but there is a nasty bug with OCG, namely,<br>
something in the chain of software that leads to the generation of PDFs expect<br>
all files to start with an uppercase letter. With the current setup, whenever<br>
a lowercase image is inserted, OCG either picks a random file from Wikimedia<br>
commons, or displays nothing at all. The web version shows images the right<br>
way, so the user doesn't notice the bug until the PDF is downloaded, and this<br>
leads to inconsistencies.<br>
<br>
I see two ways out of this:<br>
<br>
1) (best way) we tame and fix the OCG bug, this requires some coordination to<br>
find out whether it's in the latex writer, in the bundler, in Parsoid, in<br>
Mediawiki Core, a configuration or in the Collection extension<br>
<br>
2) we comment out the line which allows this behiavour<br>
($wgCapitalLinkOverrides[ NS_FILE ] = false;), we run a bot to change the<br>
names to all uploaded files on pool and to fix all the references in the<br>
website (it's many changes, but it should be easy enough to do), dropping the<br>
support for lower-case images. Note that this leads to a slightly inconsistent<br>
behiavour, if the user wants to upload a file by inserting in the text a<br>
lower-cased red link first (she will create the link, upload the image (which<br>
will automatically get capitalized), come back to the document and figure out<br>
the "link" is still broken).<br>
<br>
This is a rather urgent issue as users are complaining a lot about this, and<br>
it's very hard for them to understand what is going on. What route would you<br>
like to follow?<br>
<br>
RFC Phabricator task: <a href="https://phabricator.kde.org/T1937" rel="noreferrer" target="_blank">https://phabricator.kde.org/T1937</a><br>
<br>
Bye,<br>
-Riccardo<br>
<br>
_______________________________________________<br>
WikiToLearn-Tech mailing list<br>
<a href="mailto:WikiToLearn-Tech@kde.org" target="_blank">WikiToLearn-Tech@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/wikitolearn-tech" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/wikitolearn-tech</a><br>
</blockquote></div>