/* * GRUB -- GRand Unified Bootloader * Copyright (C) 2010 Free Software Foundation, Inc. * * GRUB 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 3 of the License, or * (at your option) any later version. * * GRUB is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GRUB. If not, see . */ #ifndef GRUB_BIDI_HEADER #define GRUB_BIDI_HEADER 1 #include struct grub_bidi_compact_range { grub_uint32_t start:24; grub_uint32_t end:24; grub_uint8_t type; } __attribute__ ((packed)); enum grub_bidi_type { GRUB_BIDI_TYPE_L = 0, GRUB_BIDI_TYPE_LRE, GRUB_BIDI_TYPE_LRO, GRUB_BIDI_TYPE_R, GRUB_BIDI_TYPE_AL, GRUB_BIDI_TYPE_RLE, GRUB_BIDI_TYPE_RLO, GRUB_BIDI_TYPE_PDF, GRUB_BIDI_TYPE_EN, GRUB_BIDI_TYPE_ES, GRUB_BIDI_TYPE_ET, GRUB_BIDI_TYPE_AN, GRUB_BIDI_TYPE_CS, GRUB_BIDI_TYPE_NSM, GRUB_BIDI_TYPE_BN, GRUB_BIDI_TYPE_B, GRUB_BIDI_TYPE_S, GRUB_BIDI_TYPE_WS, GRUB_BIDI_TYPE_ON }; extern struct grub_bidi_compact_range grub_bidi_compact[]; #define GRUB_BIDI_MAX_CACHED_UNICODE_CHAR 0x20000 /* Unicode mandates an arbitrary limit. */ #define GRUB_BIDI_MAX_EXPLICIT_LEVEL 61 #endif