diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/FontMapper.1.py b/docs/sphinx/rest_substitutions/snippets/python/converted/FontMapper.1.py new file mode 100644 index 00000000..fcdb408b --- /dev/null +++ b/docs/sphinx/rest_substitutions/snippets/python/converted/FontMapper.1.py @@ -0,0 +1,12 @@ + + if not wx.FontMapper.Get().IsEncodingAvailable(enc, facename): + success, alt = wx.FontMapper.Get().GetAltForEncoding(enc, facename, False) + if success: + convFrom = wx.FontMapper.Get().GetEncodingName(enc) + convTo = wx.FontMapper.Get().GetEncodingName(alt) + text = text.decode(convFrom).encode(convTo) + + else: + # ...failure (or we may try iso8859-1/7bit ASCII)... + + # ...display text... diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/Locale.1.py b/docs/sphinx/rest_substitutions/snippets/python/converted/Locale.1.py new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/docs/sphinx/rest_substitutions/snippets/python/converted/Locale.1.py @@ -0,0 +1 @@ + diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/Locale.2.py b/docs/sphinx/rest_substitutions/snippets/python/converted/Locale.2.py new file mode 100644 index 00000000..e69de29b