| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>General Information about TiConv library</title> |
| 5 | <style type="TEXT/CSS"> |
| 6 | <!-- |
| 7 | BODY {FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; BACKGROUND-COLOR: #FFFFFF; FONT-SIZE: 10pt} |
| 8 | TD {FONT-SIZE: 10pt} |
| 9 | H1 {FONT-SIZE: 18pt} |
| 10 | H3 {FONT-SIZE: 13pt} |
| 11 | PRE {FONT-FAMILY: Courier New; FONT-SIZE: 9pt} |
| 12 | CODE {FONT-FAMILY: Courier New; FONT-SIZE: 9pt} |
| 13 | --> |
| 14 | </style> |
| 15 | <meta name="author" content="Romain Liévin"> |
| 16 | </head> |
| 17 | <body style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 248);" |
| 18 | alink="#ff0000" link="#000099" vlink="#0000ff"> |
| 19 | <h1> General Information about the TiConv library </h1> |
| 20 | <hr> |
| 21 | <pre> <em> </em></pre> |
| 22 | The TiConv library is a part of the <a href="http://www.tilp.info">TiLP</a> |
| 23 | & <a href="http://lpg.ticalc.org/prj_tiemu/index.html">TiEmu</a> |
| 24 | projects and constitutes with the other libraries a complete framework |
| 25 | for developping linking and/or TI files oriented applications.<br> |
| 26 | <h3>Overview </h3> |
| 27 | The ticonv library is a library capable of conversions between TI |
| 28 | charsets and UTF-8 / UTF-16 charsets but uses UTF-16 natively.<br> |
| 29 | The library provides a complete API which is very easy to use and makes |
| 30 | things easier.<br> |
| 31 | <br> |
| 32 | The library supports all the currently available calculators:<br> |
| 33 | - TI8x calculators: TI73, 82, 83, TI83+, 85 and 86,<br> |
| 34 | - TI9x calculators: TI89, 92, 92+ and V200PLT,<br> |
| 35 | - built-in USB calculators: TI84+ and Titanium.<br> |
| 36 | <br> |
| 37 | Why this library? <br> |
| 38 | Kevin is interested in the ability to directly use in a C program (e.g. KTIGCC) |
| 39 | some characters from the TI charset.<br> |
| 40 | I (Romain) need to do some particular conversions at many stages in the |
| 41 | TiLP framework and TiLP/TiEmu itself.<br> |
| 42 | This is needed because the name of variable (varname, for short):<br> |
| 43 | - may be tokenized on some calcs (TI8x),<br> |
| 44 | - use a charset dependant of the calculator model,<br> |
| 45 | <br> |
| 46 | Some vocabulary:<br> |
| 47 | - GFE : GLib Filename Encoding, the encoding used by GLib for filenames,<br> |
| 48 | - LVE : Linking Varname Encoding, the encoding used by hand-helds in |
| 49 | the |
| 50 | transfer protocol (also known as 'native'),<br> |
| 51 | - TVE : TI-File Varname Encoding, the encoding used by hand-helds |
| 52 | (except built-in USB ones) and TI files (also known as 'raw'); <br> |
| 53 | |
| 54 | LVE and TVE are the same except for USB,<br> |
| 55 | - TI8X or TI9X charset: maps of characters internally stored in the |
| 56 | hand-held and used usually for varnames,<br> |
| 57 | - TI-UTF-8 charset: the charset used by TI for built-in USB hand-helds. |
| 58 | This charset is not a fully compliant UTF-8 charset. Some chars need to |
| 59 | be re-mapped to be displayed fine.<br> |
| 60 | <br> |
| 61 | The varname need to be converted into:<br> |
| 62 | - valid UTF-8 to be displayed correctly by GTK,<br> |
| 63 | - valid 'GLib Filename Encoding' to be saved correctly,<br> |
| 64 | - raw varname to be used in TI files.<br> |
| 65 | <br> |
| 66 | The following charsets are supported for varnames:<br> |
| 67 | - TI8x: raw/TI-8X (may be tokenized),<br> |
| 68 | - TI9x: TI-9x ,<br> |
| 69 | - USB calcs: TI-UTF-8.<br> |
| 70 | <br> |
| 71 | To sum up:<br> |
| 72 | <table style="width: 100%; text-align: left;" border="0" cellpadding="2" |
| 73 | cellspacing="2"> |
| 74 | <tbody> |
| 75 | <tr> |
| 76 | <td style="vertical-align: top;"><span |
| 77 | style="font-family: courier new,courier,monospace;"> |
| 78 | detokenized |
| 79 | (TI8x) |
| 80 | (char maps)<br> |
| 81 | </span><span style="font-family: courier new,courier,monospace;">raw |
| 82 | varname -</span><span |
| 83 | style="font-family: courier new,courier,monospace;">---------------------> |
| 84 | TI8X charset --+------------+-> UTF-8 or UTF-16 for |
| 85 | display<br> |
| 86 | |
| 87 | |
| 88 | |
| 89 | | <br> |
| 90 | |
| 91 | copied (TI9x) |
| 92 | |
| 93 | | <br> |
| 94 | raw varname ----------------------> TI9X charset |
| 95 | --+ <br> |
| 96 | |
| 97 | </span><span style="font-family: courier new,courier,monospace;"> |
| 98 | |
| 99 | | </span><br> |
| 100 | <span style="font-family: courier new,courier,monospace;"> |
| 101 | copied (USB) |
| 102 | |
| 103 | |
| 104 | |<br> |
| 105 | raw varname ----------------------> TIUTF8 charset --+<br> |
| 106 | |
| 107 | |</span><span style="font-family: courier new,courier,monospace;"> |
| 108 | (switch case)</span><br> |
| 109 | <span style="font-family: courier new,courier,monospace;"> |
| 110 | +----------------> Glib Filename Encoding for filenames<br> |
| 111 | <br> |
| 112 | <br> |
| 113 | (char |
| 114 | maps) |
| 115 | tokenized (TI8x)<br> |
| 116 | TI-UTF-8 -------------> TI-8X/9X charset -+------------------+-> |
| 117 | TI-file varname encoding for TI files contents<br> |
| 118 | |
| 119 | |
| 120 | | |
| 121 | |<br> |
| 122 | |
| 123 | | copied (TI9x) |<br> |
| 124 | |
| 125 | +------------------+<br> |
| 126 | </span></td> |
| 127 | </tr> |
| 128 | </tbody> |
| 129 | </table> |
| 130 | <br> |
| 131 | If you want to look at the TI charsets, you will find them in the |
| 132 | docs/charset <a href="../charsets">folder</a> of the ticonv archive or |
| 133 | in the TI Link Guide or below :<br> |
| 134 | <table style="width: 100%; text-align: left;" border="1" cellpadding="2" |
| 135 | cellspacing="2"> |
| 136 | <tbody> |
| 137 | <tr> |
| 138 | <td style="vertical-align: top; text-align: center;">TI82<br> |
| 139 | </td> |
| 140 | <td style="vertical-align: top; text-align: center;">TI85<br> |
| 141 | </td> |
| 142 | <td style="vertical-align: top; text-align: center;">TI86<br> |
| 143 | </td> |
| 144 | <td style="vertical-align: top; text-align: center;">TI9x<br> |
| 145 | </td> |
| 146 | </tr> |
| 147 | <tr> |
| 148 | <td style="vertical-align: top; text-align: center;"><img alt="" |
| 149 | src="../charsets/ti82.png" style="width: 192px; height: 256px;"></td> |
| 150 | <td style="vertical-align: top; text-align: center;"><img alt="" |
| 151 | src="../charsets/ti85.png" style="width: 192px; height: 256px;"></td> |
| 152 | <td style="vertical-align: top; text-align: center;"><img alt="" |
| 153 | src="../charsets/ti86.png" style="width: 192px; height: 256px;"></td> |
| 154 | <td style="vertical-align: top;"><img alt="" |
| 155 | src="../charsets/ti9x.png" style="width: 240px; height: 128px;"></td> |
| 156 | </tr> |
| 157 | <tr> |
| 158 | <td style="vertical-align: top; text-align: center;">TI73<br> |
| 159 | </td> |
| 160 | <td style="vertical-align: top; text-align: center;">TI83<br> |
| 161 | </td> |
| 162 | <td style="vertical-align: top; text-align: center;">TI83+/84+<br> |
| 163 | </td> |
| 164 | <td style="vertical-align: top;"><br> |
| 165 | </td> |
| 166 | </tr> |
| 167 | <tr> |
| 168 | <td style="vertical-align: top; text-align: center;"><img alt="" |
| 169 | src="../charsets/ti73.png" style="width: 192px; height: 256px;"></td> |
| 170 | <td style="vertical-align: top; text-align: center;"><img alt="" |
| 171 | src="../charsets/ti83.png" style="width: 192px; height: 256px;"></td> |
| 172 | <td style="vertical-align: top; text-align: center;"><img alt="" |
| 173 | src="../charsets/ti83p.png" style="width: 192px; height: 256px;"></td> |
| 174 | <td style="vertical-align: top;"><br> |
| 175 | </td> |
| 176 | </tr> |
| 177 | </tbody> |
| 178 | </table> |
| 179 | TI8x images are courtesy of Benjamin Moody. Thanks !<br> |
| 180 | <h3></h3> |
| 181 | <h3>Requirements </h3> |
| 182 | This library is dependent on GLib 2.x.<br> |
| 183 | <ul> |
| 184 | </ul> |
| 185 | <h3> Bug Reports </h3> |
| 186 | There may still be some bugs in the library, please send an email to |
| 187 | TiLP development <a href="mailto:[email protected]">mailing |
| 188 | list</a>.<br> |
| 189 | <h3> Copyright </h3> |
| 190 | <blockquote> |
| 191 | <pre>Copyright (C) 2006-2009 the TiLP team |
| 192 | See AUTHORS for detailed authorship information. |
| 193 | |
| 194 | This library is free software; you can redistribute it and/or modify it under |
| 195 | the terms of the <a href="gnugpl.html">GNU General Public License</a> as published by the Free Software |
| 196 | Foundation; either version 2 of the License, or (at your option) any later |
| 197 | version. |
| 198 | |
| 199 | This library is distributed in the hope that it will be useful, but WITHOUT ANY |
| 200 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 201 | PARTICULAR PURPOSE. See the GNU General Public License for more details. |
| 202 | |
| 203 | You should have received a copy of the GNU General Public License along with |
| 204 | this library (in the COPYING file); if not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>.</pre> |
| 205 | </blockquote> |
| 206 | <h3><a href="index.html">Return to the main index</a> </h3> |
| 207 | </body> |
| 208 | </html> |