1start = 2 element texmap { 3 element maps { 4 # CSV list of sets 5 attribute set { text }, 6 attribute type { "accents" | "letters" | "diacritics" | "punctuation" | "symbols" | "negatedsymbols" | "superscripts" | "cmdsuperscripts" | "dings" | "greek" }, 7 map+ 8 }+, 9 element encode_exclude { 10 element char { text }+ 11 } 12 } 13 14 15map = element map { 16 element from { 17 attribute preferred {"1"}?,# preferred encoding form if more than one 18 attribute raw {"1"}?,# use the encoding form "as is" in replacement - no extra envs/braces etc. 19 text 20 }, 21 element to { 22 attribute hex { text }, 23 text } 24} 25# Copyright 2009-2015 François Charette and Philip Kime, all rights reserved. 26 27# This code is free software. You can redistribute it and/or 28# modify it under the terms of the Artistic License 2.0. 29 30# This program is distributed in the hope that it will be useful, 31# but without any warranty; without even the implied warranty of 32# merchantability or fitness for a particular purpose. 33