summaryrefslogtreecommitdiff
path: root/doc/openi18n
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2003-06-16 21:10:03 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2003-06-16 21:10:03 +0000
commite4291049ee75670265a55cc77d131ac279f8072e (patch)
treec621ab6af354bfe3414cca990c22ffb06264f6d8 /doc/openi18n
parentb887842b0b284cf111b9bff435e2b50e2d05a3dd (diff)
- add sample text from the openi18n web site
Diffstat (limited to 'doc/openi18n')
-rw-r--r--doc/openi18n/Makefile2
-rw-r--r--doc/openi18n/UTF-8.txt18
-rw-r--r--doc/openi18n/cursor.c57
-rw-r--r--doc/openi18n/wrap.txt1
4 files changed, 78 insertions, 0 deletions
diff --git a/doc/openi18n/Makefile b/doc/openi18n/Makefile
new file mode 100644
index 0000000..39ced80
--- /dev/null
+++ b/doc/openi18n/Makefile
@@ -0,0 +1,2 @@
+cursor:
+ $(CC) -o cursor cursor.c
diff --git a/doc/openi18n/UTF-8.txt b/doc/openi18n/UTF-8.txt
new file mode 100644
index 0000000..8dd2fea
--- /dev/null
+++ b/doc/openi18n/UTF-8.txt
@@ -0,0 +1,18 @@
+02: LATIN-1 SUPPLEMENT (0x00A0 - 0x00FF) | ¥µÅ
+04: LATIN EXTENDED-B (0x0180 - 0x024F) | ƅƕƥ
+05: IPA EXTENSIONS (0x0250 - 0x02AF) | ɕɥɵ
+08: BASIC GREEK (0x0370 - 0x03CF) | ͵΅Ε
+10: CYRILLIC (0x0400 - 0x04FF) | Ѕҵӕ
+11: ARMENIAN (0x0530 - 0x058F) | ԵՅՕ
+27: BASIC GEORGIAN (0x10D0 - 0x10FF) | ვქჵ
+30: LATIN EXTENDED ADDITIONAL (0x1E00 - 0x1EFF)| ḅḕḥ
+31: GREEK EXTENDED (0x1F00 - 0x1FFF) | ἅἕἥ
+34: CURRENCY SYMBOLS (0x20A0 - 0x20CF) | ₠₤€
+36: LETTERLIKE SYMBOLS (0x2100 - 0x214F) | ℅℈↠
+38: ARROWS (0x2190 - 0x21FF) | ↕↥↵
+39: MATHEMATICAL OPERATORS (0x2200 - 0x22FF) | ∅∕∥
+40: MISCELLANEOUS TECHNICAL (0x2300 - 0x23FF) | ⌅⌕⌥
+44: BOX DRAWING (0x2500 - 0x257F) | ┅┕┥
+50: HIRAGANA (0x3040 - 0x309F) | ぅさづ
+60: CJK UNIFIED IDEOGRAPHS (0x4E00 - 0x9FFF) | 严弥漥
+71: HANGUL EXTENDED (0xAC00 - 0xD7A3) | 갅강갥
diff --git a/doc/openi18n/cursor.c b/doc/openi18n/cursor.c
new file mode 100644
index 0000000..d5491c4
--- /dev/null
+++ b/doc/openi18n/cursor.c
@@ -0,0 +1,57 @@
+/* cursor test for terminal emulator */
+/*
+ NOTE: This escape sequences come from vt100
+ So it is very likey that this program doesn't work
+ on non vt100 compliant terminal emulator
+ */
+#include <stdio.h>
+#include <unistd.h>
+#include <termios.h>
+
+int main(int argc, char *argv[])
+{
+ int c;
+ struct termios tty, tty_back;
+
+ tcgetattr(STDIN_FILENO,&tty);
+
+ tty_back = tty;
+ tty.c_lflag &= ~ICANON;
+ tty.c_lflag &= ~ECHO;
+
+ tcsetattr(STDIN_FILENO,TCSANOW,&tty);
+
+ while(1)
+ {
+ c = getchar();
+ switch(c)
+ {
+ case 'h':
+ printf("");
+ break;
+ case 'j':
+ printf("");
+ break;
+ case 'k':
+ printf("");
+ break;
+ case 'l':
+ printf("");
+ break;
+ case 'q':
+ goto out;
+ break;
+ default:
+ /* do nothing */
+ break;
+ }
+ fflush(stdout);
+ }
+ out:
+ tcsetattr(STDIN_FILENO,TCSANOW,&tty_back);
+
+ printf("");
+ printf("");
+ fflush(stdout);
+ return 0;
+}
diff --git a/doc/openi18n/wrap.txt b/doc/openi18n/wrap.txt
new file mode 100644
index 0000000..8cf9d75
--- /dev/null
+++ b/doc/openi18n/wrap.txt
@@ -0,0 +1 @@
+123456789|123456789|123456789|123456789|123456789|123456789|123456789|123456789あ