diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2009-11-24 20:41:42 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2009-11-24 20:41:42 +0000 |
commit | 7682cb5ca8f201be74dc12c1388cdd69a6c178bc (patch) | |
tree | a59dda85dbc95c9dddd69970ee7bcd36cdbba7c0 /firmware/include/diacritic.h | |
parent | 640d98de0fe2d7f5447ce2bdaf435108478e451a (diff) | |
download | rockbox-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.h | 26 |
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 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2009 Tomer Shalev | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | #ifndef _DIACRITIC_H_ | ||
22 | #define _DIACRITIC_H_ | ||
23 | #include "system.h" | ||
24 | |||
25 | int is_diacritic(unsigned short char_code, bool *is_rtl); | ||
26 | #endif | ||