From 4d39449b2cd6b8fb421c5270c4cebed97392fff5 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Fri, 3 Jan 2014 21:37:51 +0000 Subject: [PATCH] Output correct HTML entity for \r{a} MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is an issue with characters å and Å (with ring above). The corresponding HTML entities are å / Å To get this character with latex we'd do: \r{a} or \aa With bibtextbrowser \aa works fine. However, \r{a} doesn't do anything at all. This pull fixes this, we now output the correct HTML for \r{a} and \r{A}. Furthermore, up till now bibtexbrowser will output å if it encounters \.{a}, but this is wrong since this latex is meant to be used to produce an overdot (dot above char) and not "ring above char". Since in practice this is a "spelling error", this behaviour is removed and from now on \.{a} will not get replaced. --- bibtexbrowser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 5f196ff..53dd267 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -879,7 +879,7 @@ function latex2html($line) { $line = char2html($line,'^','o',"circ"); $line = char2html($line,'^','u',"circ"); - $line = char2html($line,'.','a',"ring"); + $line = char2html($line,'r','a',"ring"); $line = char2html($line,'c','c',"cedil"); $line = char2html($line,'v','s',"caron");