From e047dd5e2d39dc04d0bc484f7d8aa19a1f21b232 Mon Sep 17 00:00:00 2001 From: Federico Poloni Date: Fri, 25 Dec 2015 18:17:45 +0100 Subject: [PATCH] Added another letter transformation (and a test case). Fixes #45. --- bibacid-utf8.bib | 7 +++++-- bibtexbrowser.php | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bibacid-utf8.bib b/bibacid-utf8.bib index 932ff1f..73c1e72 100755 --- a/bibacid-utf8.bib +++ b/bibacid-utf8.bib @@ -218,5 +218,8 @@ MRREVIEWER = {Jean-Fran{\c{c}}ois Clouet}, Url = {http://link.aps.org/doi/10.1103/PhysRevA.90.012110} } - - +@article{croatiantest, + author = "Strabi{\'{c}} Strabi\'{c}", + title = "Fancy accents bug", + year = 2015 +} diff --git a/bibtexbrowser.php b/bibtexbrowser.php index ad89964..fbae493 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -997,6 +997,7 @@ function latex2html($line) { $line = str_replace('\\l','ł',$line); $line = str_replace('\\L','Ł',$line); $line = str_replace('\\k{a}','ą',$line); + $line = str_replace('\\\'{c}','ć',$line); // clean out extra tex curly brackets, usually used for preserving capitals $line = str_replace('}','', $line);