| 1 | // Copyright 2014-2017 The html5ever Project Developers. See the |
| 2 | // COPYRIGHT file at the top-level directory of this distribution. |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
| 5 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
| 6 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your |
| 7 | // option. This file may not be copied, modified, or distributed |
| 8 | // except according to those terms. |
| 9 | //! Data that is known at compile-time and hard-coded into the binary. |
| 10 | use phf::Map; |
| 11 | |
| 12 | /// The spec replaces most characters in the ISO-2022 C1 control code range |
| 13 | /// (U+0080 through U+009F) with these characters, based on Windows 8-bit |
| 14 | /// codepages. |
| 15 | pub static C1_REPLACEMENTS: [Option<char>; 32] = [ |
| 16 | Some(' \u{20ac}' ), |
| 17 | None, |
| 18 | Some(' \u{201a}' ), |
| 19 | Some(' \u{0192}' ), |
| 20 | Some(' \u{201e}' ), |
| 21 | Some(' \u{2026}' ), |
| 22 | Some(' \u{2020}' ), |
| 23 | Some(' \u{2021}' ), |
| 24 | Some(' \u{02c6}' ), |
| 25 | Some(' \u{2030}' ), |
| 26 | Some(' \u{0160}' ), |
| 27 | Some(' \u{2039}' ), |
| 28 | Some(' \u{0152}' ), |
| 29 | None, |
| 30 | Some(' \u{017d}' ), |
| 31 | None, |
| 32 | None, |
| 33 | Some(' \u{2018}' ), |
| 34 | Some(' \u{2019}' ), |
| 35 | Some(' \u{201c}' ), |
| 36 | Some(' \u{201d}' ), |
| 37 | Some(' \u{2022}' ), |
| 38 | Some(' \u{2013}' ), |
| 39 | Some(' \u{2014}' ), |
| 40 | Some(' \u{02dc}' ), |
| 41 | Some(' \u{2122}' ), |
| 42 | Some(' \u{0161}' ), |
| 43 | Some(' \u{203a}' ), |
| 44 | Some(' \u{0153}' ), |
| 45 | None, |
| 46 | Some(' \u{017e}' ), |
| 47 | Some(' \u{0178}' ), |
| 48 | ]; |
| 49 | |
| 50 | include!(concat!(env!("OUT_DIR" ) , "/named_entities.rs" )); |
| 51 | |