Subject: | TeX::Encode::charmap patch |
Date: | Wed, 23 Jul 2014 01:59:38 +0000 |
To: | "bug-TeX-Encode [...] rt.cpan.org" <bug-TeX-Encode [...] rt.cpan.org> |
From: | Mark Gregson <mark.gregson [...] qut.edu.au> |
The attached diff contains a few additions and a couple of tweaks to the charmap.
Cheers
Mark
Index: TeX/Encode/charmap.pm
===================================================================
--- TeX/Encode/charmap.pm (revision 3673)
+++ TeX/Encode/charmap.pm (revision 3966)
@@ -46,13 +46,21 @@
'<' => "\\ensuremath{<}",
'>' => "\\ensuremath{>}",
'|' => "\\ensuremath{|}",
-chr(0x2014) => "--", # emdash
+chr(0x2014) => "---", # emdash
+'[' => '{[}', # opening argument(s)
+']' => '{]}', # closing argument(s)
+chr(0x2013) => "--", # endash
+chr(0x2018) => '`', # left single quotation mark
+chr(0x2019) => '\'', # right single quotation mark
+chr(0x201c) => '``', # left double quotation mark “
+chr(0x201d) => '\'\'', # right double quotation mark ”
# non-accented
chr(0x00a3) => "\\pounds", # £
chr(0x00a7) => "\\S", # §
chr(0x00a9) => "\\copyright",
chr(0x00b6) => "\\P", # ¶
+chr(0x00b7) => "\\textperiodcentered",
chr(0x00c5) => "\\AA", # Å
chr(0x00c6) => "\\AE", # Æ
chr(0x00d0) => "\\DH", # Ð
@@ -155,7 +165,7 @@
chr(0x0102) => "\\uA", # Ă
chr(0x0226) => "\\\.A", # Ȧ
chr(0x0100) => "\\\=A", # Ā
-chr(0x00c5) => "\\rA", # Å
+chr(0x00c5) => "\\r A", # Å
chr(0x1ea0) => "\\dA", # Ạ
chr(0x0200) => "\\CA", # Ȁ
chr(0x0202) => "\\fA", # Ȃ
Message body is not shown because sender requested not to inline it.