From 5928bf9538de421e115797782888db9c1763eb5f Mon Sep 17 00:00:00 2001 From: Martin Monperrus Date: Fri, 1 Apr 2011 10:31:08 +0200 Subject: [PATCH] added support for accented i (often specified as `\i) and j --- bibtexbrowser.php | 9 ++++++++- test/input/bibacid-iso8859.bib | 6 ++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index a19e689..2f715a6 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -824,7 +824,14 @@ function latex2html($line) { // handling \url{....} // often used in howpublished for @misc $line = preg_replace('/\\\\url\{(.*)\}/U','\\1', $line); - + + // Friday, April 01 2011 + // added support for accented i + // for instance \`\i + // see http://en.wikibooks.org/wiki/LaTeX/Accents + // " the letters "i" and "j" require special treatment when they are given accents because it is often desirable to replace the dot with the accent. For this purpose, the commands \i and \j can be used to produce dotless letters." + $line = preg_replace('/\\\\([ij])/i','\\1', $line); + $line = char2html($line,"'",'a',"acute"); $line = char2html($line,"'",'e',"acute"); $line = char2html($line,"'",'i',"acute"); diff --git a/test/input/bibacid-iso8859.bib b/test/input/bibacid-iso8859.bib index 6fbae89..b1dff94 100755 --- a/test/input/bibacid-iso8859.bib +++ b/test/input/bibacid-iso8859.bib @@ -189,6 +189,12 @@ MRREVIEWER = {Jean-Fran{\c{c}}ois Clouet}, year = {2011}, } +%% testing the accented i and j +@INPROCEEDINGS {paper000, + title = {Some publication title}, + author = {F\`\irst A\`{\i}thor and S{\`\i}cond Author\`\I}, + year = {2011}, +}