summaryrefslogtreecommitdiffstats
path: root/firmware/include/diacritic.h
diff options
context:
space:
mode:
authorTomer Shalev <shalev.tomer@gmail.com>2009-11-24 20:41:42 +0000
committerTomer Shalev <shalev.tomer@gmail.com>2009-11-24 20:41:42 +0000
commit7682cb5ca8f201be74dc12c1388cdd69a6c178bc (patch)
treea59dda85dbc95c9dddd69970ee7bcd36cdbba7c0 /firmware/include/diacritic.h
parent640d98de0fe2d7f5447ce2bdaf435108478e451a (diff)
downloadrockbox-7682cb5ca8f201be74dc12c1388cdd69a6c178bc.tar.gz
rockbox-7682cb5ca8f201be74dc12c1388cdd69a6c178bc.zip
FS#10720 - Support for displaying diacritic characters
This commit corrects the display of diacritic characters, which exist in many languages. Hopefully, it will make Rockbox much more usable for users of these languages. Diacritic information (which used to decide whether a given character is diacritic or not) is taken from the Unicode Standard, Version 5.2. This feature does not affect drawing performance much, as the diacritic database is cached (simple MRU mechanism). There may be room for further performance, footprint, and code-reuse wise improvements, that could be worked on in the future. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23742 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/diacritic.h')
-rw-r--r--firmware/include/diacritic.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/firmware/include/diacritic.h b/firmware/include/diacritic.h
new file mode 100644
index 0000000000..ebcb3bb79a
--- /dev/null
+++ b/firmware/include/diacritic.h
@@ -0,0 +1,26 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2009 Tomer Shalev
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+#ifndef _DIACRITIC_H_
+#define _DIACRITIC_H_
+#include "system.h"
+
+int is_diacritic(unsigned short char_code, bool *is_rtl);
+#endif