Last modified: 2011-09-13 21:49:29 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 T29324, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27324 - Need a way to enter euro (currencies?) symbol(s?)
Need a way to enter euro (currencies?) symbol(s?)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-11 12:10 UTC by Pietro Battiston
Modified: 2011-09-13 21:49 UTC (History)
1 user (show)

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


Attachments

Description Pietro Battiston 2011-02-11 12:10:36 UTC
Hello, I hope that's the right place to ask.

Currently there is - I'd appreciate if you showed me I'm wrong - no way to insert the "€" symbol inside formulae.

This can be a problem - for the case I ran into, see page "Ellsberg paradox", which has lots of dollar signs in formulae (in translating to Italian, I wrote for each "</math>€<math>", but that also wouldn't work for more complex formulae).

In normal TeX/LaTeX, importing the package "eurosym" is sufficient... that said, I have no idea what would be the appropriate fix for Wikipedia (and also ignore if this should/could be done on a language-per-language basis, and if every other currency symbol requires a TeX package by itself...).

thanks

Pietro Battiston
Comment 1 Nicholas Longo 2011-05-02 19:31:35 UTC
This functionality is now available in r87284.  Now the command <math>\euro</math> will now load the eurosym package and generate the LaTeX code \mbox{\euro}.  The other variants of the eurosymbol introduced by the eurosym package are similarly defined.
Comment 2 Brion Vibber 2011-09-13 21:49:29 UTC
Reapplied with a slight tweak and parser test cases in r97007.

I went ahead and changed \euro to let it render straight through to conservative HTML output (so eg <math>\euro 200</math> renders out as &#8364;200 in output, nice and clean!)

Note that the commit includes tweaks to HTML output of a few other characters, which seem to be legit. These aren't included in the test cases as they don't change what's supported.

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


Navigation
Links