]> git.immae.eu Git - perso/Immae/Projets/Scripts/Public.git/blobdiff - parse_bibtex_html
Update save-gif script
[perso/Immae/Projets/Scripts/Public.git] / parse_bibtex_html
index 5e54729b226f5e9bf9ce99468463fb3c268d4b68..9ee6e8def6f9901917a3351547727fed6e6a4b62 100755 (executable)
@@ -22,6 +22,9 @@
 # THE SOFTWARE.
 
 
+# Feel like tipping/donating? https://www.immae.eu/licenses_and_tipping
+
+
 use BibTeX::Parser;
 use IO::File;
 use utf8;
@@ -103,10 +106,10 @@ sub echap {
 
     $t =~ s/{?\\~n}?/ñ/g;
 
-    $t =~ s/{?\\c{?c}?}? ?/ç/g;
-    $t =~ s/{?\\'{?c}?}? ?/ć/g;
+    $t =~ s/{?\\c\{?c\}?}? ?/ç/g;
+    $t =~ s/{?\\'\{?c\}?}? ?/ć/g;
 
-    $t =~ s/{?\\v{? ?s}?}? ?/š/g;
+    $t =~ s/{?\\v\{? ?s\}?}? ?/š/g;
 
     $t =~ s/{?\^({[^}]+}|.)}?/<sup>$1<\/sup>/g;
     $t =~ s/{(.*)}/$1/g;