I just encountered an interesting problem. The article on Michael Moore mentions Front Row Entertainment, Fahrenheit 9/11's UAE distributor.
How do I italicize "Fahrenheit 9/11" without italicizing the "s" in the possessive (since that's not properly part of the title)?
''Fahrenheit 9/11'''s does horrible things to the text. I thought maybe I could escape the backticks out, but that doesn't work (although it seems like the best solution here).
Should escaping of metacharacters be added, or is there another workaround for this problem?
-Bill Clark
Bill Clark wrote:
I just encountered an interesting problem. The article on Michael Moore mentions Front Row Entertainment, Fahrenheit 9/11's UAE distributor.
How do I italicize "Fahrenheit 9/11" without italicizing the "s" in the possessive (since that's not properly part of the title)?
''Fahrenheit 9/11''<nowiki>'</nowiki>s
Yeah, it's ugly, but there's no way to cleanly work around it with the '' and ''' syntaxes short of special-casing /\S'''s/ and similar.
-- brion vibber (brion @ pobox.com)
Brion Vibber wrote:
Bill Clark wrote:
I just encountered an interesting problem. The article on Michael Moore mentions Front Row Entertainment, Fahrenheit 9/11's UAE distributor.
How do I italicize "Fahrenheit 9/11" without italicizing the "s" in the possessive (since that's not properly part of the title)?
''Fahrenheit 9/11''<nowiki>'</nowiki>s
Yeah, it's ugly, but there's no way to cleanly work around it with the '' and ''' syntaxes short of special-casing /\S'''s/ and similar.
A similar problem is often encountered on fr, where they want to write l'foo where foo is the title of the article and hence should be bold, without bolding the apostrophe. One solution is to use HTML-style tags, i.e. l'<b>foo</b>
-- Tim Starling
On Thu, 15 Jul 2004 15:11:31 +1000, Tim Starling ts4294967296@hotmail.com wrote:
Brion Vibber wrote:
Bill Clark wrote:
I just encountered an interesting problem. The article on Michael Moore mentions Front Row Entertainment, Fahrenheit 9/11's UAE distributor.
How do I italicize "Fahrenheit 9/11" without italicizing the "s" in the possessive (since that's not properly part of the title)?
''Fahrenheit 9/11''<nowiki>'</nowiki>s
Yeah, it's ugly, but there's no way to cleanly work around it with the '' and ''' syntaxes short of special-casing /\S'''s/ and similar.
A similar problem is often encountered on fr, where they want to write l'foo where foo is the title of the article and hence should be bold, without bolding the apostrophe. One solution is to use HTML-style tags, i.e. l'<b>foo</b>
tlh: also has this, e.g. when adding the suffix 'e' to the name of the article in bold.
I usually write '''article''''e', which is ugly but works.
(It gets interesting when the name of the article also ends in ', e.g. when saying something like "A '''musician''' is someone who plays a musical instrument", it becomes "jan chu'bogh vay' ghaH chu'wI''e'", with "chu'wI'" being bold - so it needs to become something like '''chu'wI'''''e' or <b>chu'wI'</b>'e'.)
Cheers, Philip
On Thu, 15 Jul 2004 08:21:09 +0200, Philip Newton philip.newton@gmx.net wrote:
'''chu'wI'''''e' or <b>chu'wI'</b>'e'.)
...and you kiss your mother with that mouth? For shame. :)
-Bill Clark
Brion Vibber wrote:
Bill Clark wrote:
I just encountered an interesting problem. The article on Michael Moore mentions Front Row Entertainment, Fahrenheit 9/11's UAE distributor.
How do I italicize "Fahrenheit 9/11" without italicizing the "s" in the possessive (since that's not properly part of the title)?
''Fahrenheit 9/11''<nowiki>'</nowiki>s
Yeah, it's ugly, but there's no way to cleanly work around it with the '' and ''' syntaxes short of special-casing /\S'''s/ and similar.
We would not normally encourage HTML for italics but I just tried ''Fahrenheit 9/11</i>'s and that works too. Hmm! Amazing that a technical dunce could come up with a solution. =-O Ec
On Thu, 15 Jul 2004, Ray Saintonge wrote:
We would not normally encourage HTML for italics but I just tried ''Fahrenheit 9/11</i>'s and that works too. Hmm! Amazing that a technical dunce could come up with a solution. =-O Ec
It works for now, but I would strongly advise against using mixed syntax like that. If one wants to use html, it's better to write it correctly:
<i>Fahrenheit 9/11</i>'s
This way, a parser that translates '' to something else than <i> will not screw everything up.
Maybe one could also write:
''Fahrenheit 9/11'' 's
(with a space before 's)
Alfio
wikitech-l@lists.wikimedia.org