📄 fribidi_char_sets.c
字号:
/* FriBidi - Library of BiDi algorithm * Copyright (C) 1999 Dov Grobgeld * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */#include "fribidi.h"#define ISO_ALEF 224#define ISO_TAV 250/* The following are proposed extensions to iso-8859-8. */#define ISO_8859_8_LRM 253#define ISO_8859_8_RLM 254#define ISO_8859_8_LRE 251#define ISO_8859_8_RLE 252#define ISO_8859_8_PDF 221#define ISO_8859_8_LRO 219#define ISO_8859_8_RLO 220#define UNI_ALEF 0x05D0#define UNI_TAV 0x05EA#define UNI_LRM 0x200E#define UNI_RLM 0x200F#define UNI_LRE 0x202a#define UNI_RLE 0x202b#define UNI_PDF 0x202c#define UNI_LRO 0x202d#define UNI_RLO 0x202e#define CP1255_SHEVA 0xC0#define UNI_SHEVA 0x05B0#define CP1255_SOF_PASUQ 0xD3#define UNI_SOF_PASUQ 0x05C3#define CP1255_DOUBLE_VAV 0xD4#define UNI_DOUBLE_VAV 0x05F0#define CP1255_GERSHAYIM 0xD8#define UNI_GERSHAYIM 0x05F4#define ISO_HAMZA 0xc1#define ISO_SUKUN 0xf2#define UNI_HAMZA 0x0621#define UNI_SUKUN 0x0652#define CP1256_DAD 0xD6#define UNI_DAD 0x0636FriBidiCharfribidi_iso8859_8_to_unicode_c(guchar ch){ /* optimization */ if (ch < ISO_8859_8_LRO) return ch; else if (ch >= ISO_ALEF && ch <= ISO_TAV) return ch-ISO_ALEF+UNI_ALEF; switch(ch) { case ISO_8859_8_RLM: return UNI_RLM; case ISO_8859_8_LRM: return UNI_LRM; case ISO_8859_8_RLO: return UNI_RLO; case ISO_8859_8_LRO: return UNI_LRO; case ISO_8859_8_RLE: return UNI_RLE; case ISO_8859_8_LRE: return UNI_LRE; case ISO_8859_8_PDF: return UNI_PDF; default: return '?'; /* This shouldn't happen! */ }}gucharfribidi_unicode_to_iso8859_8_c(FriBidiChar uch){ if (uch<128) return uch; if (uch >= UNI_ALEF && uch <= UNI_TAV) return (guchar)(uch-UNI_ALEF+ISO_ALEF); switch (uch) { case UNI_RLM: return ISO_8859_8_RLM; case UNI_LRM: return ISO_8859_8_LRM; case UNI_RLO: return ISO_8859_8_RLO; case UNI_LRO: return ISO_8859_8_LRO; case UNI_RLE: return ISO_8859_8_RLE; case UNI_LRE: return ISO_8859_8_LRE; case UNI_PDF: return ISO_8859_8_PDF; } return '
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -