From 7682cb5ca8f201be74dc12c1388cdd69a6c178bc Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Tue, 24 Nov 2009 20:41:42 +0000 Subject: 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 --- firmware/include/diacritic.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 firmware/include/diacritic.h (limited to 'firmware/include/diacritic.h') 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 -- cgit v1.2.3