mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-14 06:22:24 +00:00
craft-rtf and craft-dxf each carried tables for DOS 437, 737, 850, 852 and 857 (and craft-rtf one for 866). They are now one set in craft-codepage, which takes craft-rtf's codepage module (Windows and Mac tables, OEM glyphs, font charsets) and craft-dxf's DOS tables. craft_rtf::codepage re-exports it unchanged; craft-dxf keeps its $DWGCODEPAGE names and Decoder and looks the DOS tables up there. Every byte of every code page either crate decodes is unchanged: the public decoders of both crates were dumped over all 256 bytes of each page (and the East Asian pairs) before and after, and the dumps are identical. craft-mime now reads the DOS pages by their IANA names (IBM437, cp850, ibm-852, 857...), which it read as UTF-8 before.
7 lines
387 B
Rust
7 lines
387 B
Rust
//! The code pages of 8-bit RTF text, from [`craft_codepage`]: Windows-1252 and the other
|
|
//! single-byte Windows code pages RTF files name with `\ansicpg` or a font's `\fcharset`, Mac OS
|
|
//! Roman (10000, RTF `\mac`), the DOS code pages, and the East Asian multibyte code pages (932,
|
|
//! 936, 949, 950), whose bytes decode as runs rather than one at a time.
|
|
|
|
pub use craft_codepage::*;
|