Last modified: 2014-10-03 06:13:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32634, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30634 - Pdf export doesn't support {{formatnum:}}
Pdf export doesn't support {{formatnum:}}
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 31552
  Show dependency treegraph
 
Reported: 2011-08-30 16:08 UTC by reza1615
Modified: 2014-10-03 06:13 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description reza1615 2011-08-30 16:08:51 UTC
Pdf export doesn't support {{formatnum:}} and {{formatnum: |R}}

in english wiki it doesn't show decimal separators
http://en.wikipedia.org/w/index.php?title=User%3AReza1615%2Fpdf&action=historysubmit&diff=447504296&oldid=447501002

in fa.wiki it has error
http://fa.wikipedia.org/wiki/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Reza1615/pdf2

in it.wiki doesn't show decimal separators
http://it.wikipedia.org/wiki/Utente:Reza1615/pdf
Comment 1 reza1615 2011-08-30 16:27:09 UTC
in it.wiki also it has wrong calculation (third item)
Comment 2 sheac 2012-05-13 19:37:55 UTC
This bug has not been touched in at least six months. With this in mind, I've been asked by the bugmeister to bump this bug's priority down from "High". Concerns can be addressed to mah@everybody.org.
Comment 3 Ralf Schmitt 2012-09-24 18:57:16 UTC
I've implemented a much better formatnum today. the administrators still need to install the needed locales however...english should work pretty good.
Comment 4 Ralf Schmitt 2012-09-25 08:47:05 UTC
locales have been installed. 

our code may still choose the wrong locale, i.e. it uses it_CH-UTF-8 for it.wikipedia.org, since it_IT isn't available. strictly speaking I don't know which locale to use based on the language. the code is guessing and using what's available.
Comment 5 reza1615 2012-09-25 09:41:40 UTC
for fa.wiki it doesn't change still it is not working
Comment 6 Ralf Schmitt 2012-09-25 09:51:20 UTC
Can you tell me exactly what's the input, what's the output mediawiki produces, and what's produced in the pdf? ASCII characters only please.
Comment 7 reza1615 2012-09-25 14:39:22 UTC
in http://fa.wikipedia.org/wiki/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Reza1615/pdf2
the 3th & 4th lines
{{formatnum:{{formatnum:۱۲۳۴|R}}}} =۱٬۲۳۴
{{formatnum:1234}}=۱٬۲۳۴

pdf export should render ۱٬۲۳۴ or 1٬234 (if it doesn't support Persian number at least it should show ٬)

but now it renders 1234
Comment 8 Matthew Flaschen 2013-02-13 05:03:48 UTC
Someone reported this problem on English Wikipedia village pump (https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&oldid=537991822#Insidious_problem_with_pdf_rendering), along with a work-around (moving a period outside formatnum).
Comment 9 reza1615 2014-10-03 04:03:08 UTC
Thanks for new version
Comment 10 Nemo 2014-10-03 06:04:41 UTC
(In reply to reza1615 from comment #9)
> Thanks for new version

To clarify, did you test the output of the new renderer and verify this bug was fixed?
Comment 11 reza1615 2014-10-03 06:13:02 UTC
(In reply to Nemo from comment #10)
> (In reply to reza1615 from comment #9)
> > Thanks for new version
> 
> To clarify, did you test the output of the new renderer and verify this bug
> was fixed?
Yes.
I reported this bug.
I tested http://fa.wikipedia.org/wiki/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Reza1615/pdf2
and
http://it.wikipedia.org/wiki/Utente:Reza1615/pdf
and they are OK

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links